|
@ -131,10 +131,17 @@ class LogicTest { |
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
{1, 1, 1, 2, 2, 2}}; |
|
|
{1, 1, 1, 2, 2, 2}}; |
|
|
|
|
|
int[][] playfield3 = {{0, 0, 0, 0, 0, 0}, |
|
|
|
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
|
|
|
{1, 1, 2, 2, 1, 2}, |
|
|
|
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
|
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
|
|
|
{1, 1, 1, 2, 2, 2}}; |
|
|
return Stream.of( |
|
|
return Stream.of( |
|
|
Arguments.of("emptyField", new int[6][6], 1, 1000), |
|
|
Arguments.of("emptyField", new int[6][6], 1, 1000), |
|
|
Arguments.of("9 chips played", playfield1, 1, 1090), |
|
|
Arguments.of("9 chips played", playfield1, 1, 1090), |
|
|
Arguments.of("first row filled", playfield2, 1, 1120) |
|
|
|
|
|
|
|
|
Arguments.of("first row filled", playfield2, 1, 1120), |
|
|
|
|
|
Arguments.of("2 rows filled", playfield3, 1, 1240) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|