Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- choices = ["Rock", "Paper", "Scissors"]
- bestChoice = np.argmax(trainer.get_average_strategy())
- bestChoiceP = trainer.get_average_strategy()
- print("The best choice against your opponent is {0}: {1}".format(choices[bestChoice], bestChoiceP[bestChoice]))
- print("All choices are as follows:")
- for i in range(len(choices)):
- print("{0} - {1}".format(choices[i], bestChoiceP[i]))
- print("\nHere is the probability distribution of your opponent:")
- for i in range(len(choices)):
- print("{0} - {1}".format(choices[i], trainer.opp_strategy[i]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement