Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. choices = ["Rock", "Paper", "Scissors"]
  2. bestChoice = np.argmax(trainer.get_average_strategy())
  3. bestChoiceP = trainer.get_average_strategy()
  4. print("The best choice against your opponent is {0}: {1}".format(choices[bestChoice], bestChoiceP[bestChoice]))
  5. print("All choices are as follows:")
  6. for i in range(len(choices)):
  7. print("{0} - {1}".format(choices[i], bestChoiceP[i]))
  8. print("\nHere is the probability distribution of your opponent:")
  9. for i in range(len(choices)):
  10. print("{0} - {1}".format(choices[i], trainer.opp_strategy[i]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement