|
@ -196,13 +196,17 @@ class GameLogicTest { |
|
|
{'-', '-', '-'}}), |
|
|
{'-', '-', '-'}}), |
|
|
Arguments.of("check a draw for player 2", 'o', false, new char[][] |
|
|
Arguments.of("check a draw for player 2", 'o', false, new char[][] |
|
|
{{'o', 'o', 'x'}, |
|
|
{{'o', 'o', 'x'}, |
|
|
{'o', 'o', 'x'}, |
|
|
|
|
|
|
|
|
{'o', 'x', 'x'}, |
|
|
{'x', 'x', 'o'}}), |
|
|
{'x', 'x', 'o'}}), |
|
|
Arguments.of("check a draw for player 1", 'x', false, new char[][] |
|
|
Arguments.of("check a draw for player 1", 'x', false, new char[][] |
|
|
{{'o', 'o', 'x'}, |
|
|
{{'o', 'o', 'x'}, |
|
|
{'o', 'o', 'x'}, |
|
|
{'o', 'o', 'x'}, |
|
|
{'x', 'x', 'o'}}) |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
{'x', 'x', 'o'}}), |
|
|
|
|
|
Arguments.of("check diagonal left win for player 1", 'x', true, new char[][] |
|
|
|
|
|
{{'x', 'o', 'x'}, |
|
|
|
|
|
{'x', 'x', 'o'}, |
|
|
|
|
|
{'o', 'o', 'x'}}) |
|
|
|
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |