Everything is as per requirements still not passing. It keeps saying to call move(0,-1) in case SnakeDirection.UP and other requirements which I am satisfying. Only three requirements pass.
I am adding this code in Snake class, as requirement says.
public void move(){
if(isAlive()){
if(getDirection().equals(SnakeDirection.UP)) move(0,-1);
else if(getDirection().equals(SnakeDirection.RIGHT)) move(1,0);
else if(getDirection().equals(SnakeDirection.DOWN)) move(0,1);
else if(getDirection().equals(SnakeDirection.LEFT)) move(-1,0);
}
}
public void move(int a, int b){
}