schrum2 / MM-NEATv2

MM-NEAT version 2.0 is no longer supported. Please get MM-NEAT 3+ from https://github.com/schrum2/MM-NEAT
Other
11 stars 5 forks source link

Othello: pass on no moves #408

Closed schrum2 closed 7 years ago

schrum2 commented 7 years ago

I was messing with Othello and the following state registered as Game Over:

image

While it is true that White cannot move, Black can. According to this site, http://www.ultraboardgames.com/othello/game-rules.php, "When a player has no valid moves, he pass (sic) his turn and the opponent continues."

Fix the problem and set up unit tests to test for it.

DarwinJohnson commented 7 years ago

The new JUnit Tests for this given State now pass; the Passing mechanics in OthelloState have been changed. This bug should no longer occur.