|
|
@ -17,15 +17,22 @@ public class Game |
|
|
|
for (int i = 0; i < Figure.fieldLength; i++) // row |
|
|
|
{ |
|
|
|
if (i == Game.whiteRowOther |
|
|
|
|| i == Game.whiteRowFarmer |
|
|
|
|| i == Game.blackRowOther |
|
|
|
|| i == Game.blackRowFarmer) |
|
|
|
|| i == Game.blackRowOther) |
|
|
|
{ |
|
|
|
for (int j = 0; j < Figure.fieldLength; j++) // col |
|
|
|
{ |
|
|
|
mField[i * Figure.fieldLength + j] = new Figure(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (i == Game.whiteRowFarmer |
|
|
|
|| i == Game.blackRowFarmer) |
|
|
|
{ |
|
|
|
for (int j = 0; j < Figure.fieldLength; j++) // col |
|
|
|
{ |
|
|
|
mField[i * Figure.fieldLength + j] = new FigureFarmer(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |