|
@ -35,9 +35,16 @@ class LogicTest { |
|
|
{1, 0, 0, 0, 0, 0}, |
|
|
{1, 0, 0, 0, 0, 0}, |
|
|
{1, 0, 0, 0, 0, 0}, |
|
|
{1, 0, 0, 0, 0, 0}, |
|
|
{1, 0, 0, 0, 0, 0}}; |
|
|
{1, 0, 0, 0, 0, 0}}; |
|
|
|
|
|
int[][] playfield2 = {{0, 0, 0, 0, 0, 0}, |
|
|
|
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
|
|
|
{0, 0, 0, 1, 0, 0}, |
|
|
|
|
|
{0, 0, 0, 1, 0, 0}, |
|
|
|
|
|
{0, 0, 0, 1, 0, 0}, |
|
|
|
|
|
{0, 0, 0, 1, 0, 0}}; |
|
|
return Stream.of( |
|
|
return Stream.of( |
|
|
Arguments.of("emptyField", new int[6][6], 1, false), |
|
|
Arguments.of("emptyField", new int[6][6], 1, false), |
|
|
Arguments.of("4 in 1st column player1", playfield1, 1, true) |
|
|
|
|
|
|
|
|
Arguments.of("4 in column1 player1", playfield1, 1, true), |
|
|
|
|
|
Arguments.of("4 in a column player1", playfield2, 1, true) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|