Компилятор не нашел конструктор "GameObject(int,int,boolean)" в классе "com.javarush.games.minesweeper.part05.GameObject"; Требуемые параметры: int,int,boolean Найденные параметры: int,int Проверьте правильность переданных параметров. Возможно, вы забыли импортировать нужный класс.. пишет вот это.
package com.javarush.games.minesweeper;
import com.javarush.engine.cell.*;
public class MinesweeperGame extends Game {
private static final int SIDE = 9;
private GameObject[][] gameField = new GameObject [SIDE][SIDE];
private void createGame(){
for (int x = 0; x < SIDE; x++){
for (int y = 0; y < SIDE; y++){
gameField[y][x] = new GameObject (x, y);
setCellColor(x, y, Color.BLUE);
if (getRandomNumber (10) == 0){
gameField [x][y] = GameObject(x, y, true);
countMinesOnField++;
setCellColor(x, y, Color.BLUE);
}
else{
gameField [x][y] = GameObject(x, y, fals);
setCellColor(x, y, Color.RED);
}
}
System.out.println(countMinesOnField);
}
}
public void initialize() {
setScreenSize(SIDE, SIDE);
createGame();
}
}