I’m working on the Rock-Paper-Scissors project in the Python Machine Learning certification. My project is here:
Project
[edited, screwed up the link the first time]
Here’s my issue:
If I go into the main.py file and uncomment one opponent at a time (it is currently set to only play abbey), my code beats each player individually. However, if I uncomment all four players or run the unit tests through the test module, I at most beat two of the four players.
My player observes the first few turns and uses those turns to decide on a strategy. It seems like what’s happening is that my player continues using the same strategy it uses against the first player it plays on the next three, which would explain why it can beat any player individually but not when it plays them consecutively. But I can’t figure out why it is doing that, or how to reset opponent_history after each match. Any ideas?
Thanks!