You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
499 B
23 lines
499 B
package de.fd.fh;
|
|
|
|
public class Game
|
|
{
|
|
public Figure[] mField;
|
|
|
|
public void initNewGame()
|
|
{
|
|
mField = new Figure[Figure.fieldLength * Figure.fieldLength];
|
|
|
|
// Figuren platzieren
|
|
for (int i = 0; i < 8; i++) // row
|
|
{
|
|
if (i == 0 || i == 1 || i == 6 || i == 7)
|
|
{
|
|
for (int j = 0; j < 8; j++) // col
|
|
{
|
|
mField[i * 8 + j] = new Figure();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|