createMouse method don't pass the verification
package com.codegym.task.task23.task2312;
public class Room {
private int width, height;
private Snake snake;
private Mouse mouse;
public int getWidth(){return width;}
public int getHeight(){return height;}
public Snake getSnake(){return snake;}
public Mouse getMouse(){return mouse;}
public void setWidth(int w){this.width = w;}
public void setHeight(int h){this.height = h;}
public void setSnake(Snake s){this.snake = s;}
public void setMouse(Mouse m){this.mouse = m;}
public Room(int w, int h, Snake s){
this.width = w;
this.height = h;
this.snake = s;
}
static Room game;
void run(){}
void print(){}
void createMouse(){
int x = (int)(Math.random() * game.width);
int y = (int)(Math.random() * game.height);
setMouse(new Mouse(x, y));
}
void eatMouse(){createMouse();}
public static void main(String[] args){
Snake snake = new Snake(50, 25);
game = new Room(100, 50, snake);
game.getSnake().setDirection(SnakeDirection.DOWN);
}
}