validation fails with the following error message:
The createGame() method must assign the created Snake object to the snake field.
Isn't that what line 21 (snake.draw(this);) is supposed to accomplish?
package com.codegym.games.snake;
import com.codegym.engine.cell.*;
public class Apple extends GameObject
{
private static final String APPLE_SIGN = "\uD83C\uDF4E";
public Apple(int x, int y)
{
super(x, y);
}
public void draw(Game game)
{
game.setCellValueEx(x,y,Color.NONE,APPLE_SIGN,Color.LAVENDERBLUSH,75);
}
}