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