@ -90,6 +90,7 @@ public class GameLogic {
public boolean checkEndOfGame() {
if (checkForWin('x')) return true;
if (checkForWin('o')) return true;
return false;
}
@ -230,7 +230,11 @@ class GameLogicTest {
Arguments.of("end of game with win for player 1", true, new char[][]
{{'x', 'o', 'x'},
{'x', 'x', 'o'},
{'x', 'o', 'o'}})
{'x', 'o', 'o'}}),
Arguments.of("end of game with win for player 2", true, new char[][]
{{'x', 'x', 'o'},
{'o', 'o', 'o'},
{'x', 'o', 'x'}})
);