Repository navigation
Adding grumpy.py - #11
Conversation
|
Hi @JasYoung314 thanks a lot for the pull request: the grumpy strategy looks cool (thanks also for the tests!). I note that the strategy keeps another attribute (the state: grumpy or not). This is something that will need to be reset at every repetition of a duel in the tournament. I've actually just changed how reset works with this commit: 3d06104 Could you add a specific reset method to the |
|
(this commit also: 376d9cf) |
same as the parent class but will reset state to be the same as in init
|
Thanks @drvinceknight I have made the change to the grumpy player class you requested. |
|
Nice: could you just add a test for the reset method in the grumpy class? Once you've done that I'll merge! |
|
@drvinceknight the reset method is now tested for grumpy |
Adding grumpy.py
Adding grumpy. This strategy chooses a strategy based on two thresholds which depend on the history of the opponent.