|
|
@ -47,11 +47,18 @@ class LogicTest { |
|
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
|
{1, 1, 1, 1, 0, 0}}; |
|
|
|
int[][] playfield4 = {{0, 0, 0, 0, 0, 0}, |
|
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
|
{1, 0, 0, 0, 0, 0}, |
|
|
|
{1, 1, 0, 0, 0, 0}, |
|
|
|
{2, 2, 1, 0, 0, 0}, |
|
|
|
{2, 2, 2, 1, 0, 0}}; |
|
|
|
return Stream.of( |
|
|
|
Arguments.of("emptyField", new int[6][6], 1, false), |
|
|
|
Arguments.of("4 in column1 player1", playfield1, 1, true), |
|
|
|
Arguments.of("4 in a column player1", playfield2, 1, true), |
|
|
|
Arguments.of("4 in a row player1", playfield3, 1, true) |
|
|
|
Arguments.of("4 in a row player1", playfield3, 1, true), |
|
|
|
Arguments.of("4 diagonal right player1", playfield4, 1, true) |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|