Although I match the requirement, it gives error.
Part(4/18) - Requirement: In the initialize() method, the drawScene() method must be called last.
package com.codegym.games.game2048;
import com.codegym.engine.cell.*;
public class Game2048 extends Game {
private static final int SIDE = 4;
private int[][] gameField = new int[SIDE][SIDE];
@Override
public void initialize(){
this.setScreenSize(SIDE, SIDE);
this.createGame();
this.drawScene();
}
private void createGame(){
}
private void drawScene(){
for(int x = 0; x < SIDE; x++){
for(int y = 0; y < SIDE; y++){
setCellColor(x, y, Color.GRAY);
}
}
}
}