fix spread being called before square capacity exceeds.
This commit is contained in:
parent
548e83c025
commit
df747aadd5
2
game.cpp
2
game.cpp
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue