|
|
@ -24,16 +24,20 @@ class GameTest |
|
|
|
g.initNewGame(); |
|
|
|
|
|
|
|
for (int i = 0; i < Figure.fieldLength; i++) // row |
|
|
|
{ |
|
|
|
for (int j = 0; j < Figure.fieldLength; j++) // col |
|
|
|
{ |
|
|
|
if (i == Game.whiteRowOther |
|
|
|
|| i == Game.whiteRowFarmer |
|
|
|
|| i == Game.blackRowOther |
|
|
|
|| i == Game.blackRowFarmer) |
|
|
|
{ |
|
|
|
for (int j = 0; j < Figure.fieldLength; j++) // col |
|
|
|
{ |
|
|
|
assertNotEquals(null, g.mField[i * Figure.fieldLength + j]); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
assertEquals(null, g.mField[i * Figure.fieldLength + j]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |