Two of the requirements are not getting satisfied. Can anyone please tell me where I made the mistake?
package com.codegym.games.snake;
import com.codegym.engine.cell.*;
public class SnakeGame extends Game{
public static final int WIDTH = 15, HEIGHT = 15;
private Snake snake;
public void initialize()
{
setScreenSize(WIDTH,HEIGHT);
createGame();
}
private void createGame()
{
snake = new Snake(WIDTH/2,HEIGHT/2);
drawScene();
//Apple apple = new Apple(7,7);
//apple.draw(this);
}
private void drawScene()
{
for(int x=0;x<WIDTH;x++)
{
for(int y=0;y<HEIGHT;y++)
{
setCellColor(x,y,Color.DARKSEAGREEN);
}
}
snake.draw(this);
}
}