fix spread being called before square capacity exceeds.

This commit is contained in:
Andrea Blankenstijn 2021-07-07 21:24:02 +02:00
parent 548e83c025
commit df747aadd5
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ Boards game::logic::play(Board& b, const Coordinate& c, const Player p)
square.owner = p;
square.value++;
if (square.value >= logic::square_capacity(b, c))
if (square.value > logic::square_capacity(b, c))
state_transitions = spread(b, c);
return state_transitions;