I wrote exactly what it tells me to do, and if you run, the snake doesn't move properly.
If I write the right thing, and the game works fine, it doesn't checks either.
package com.codegym.games.snake;
import com.codegym.engine.cell.*;
public class Apple extends GameObject {
public boolean isAlive = true;
private static final String APPLE_SIGN = "💸";
//💰
public Apple(int x, int y) {
super(x, y);
}
public void draw(Game game){
game.setCellValueEx(x,y, Color.NONE,APPLE_SIGN,Color.GREEN,75);
}
}