dannyhammer / TwoPlayerGames

Undergraduate research into the mechanics of simple two-player games.
3 stars 2 forks source link

Fix random CPU playing the same move over and over #38

Closed dannyhammer closed 3 years ago

dannyhammer commented 3 years ago

Currently, a random CPU-playing has the chance of playing the same move twice even when it has other valid moves. This will cause the Referee to think the CPU has given up, ending its turn and declaring its opponent as the winner. This needs to be reworked so that the CPU will not play the same move twice.