I have one stupid question: how could I replace Scanner with BufferedReader in this method:
public Coordinates getShot() {
Scanner scanner = new Scanner(System.in);
int x,y;
do {
System.out.print("Enter Х: ");
x = Integer.parseInt(scanner.nextLine());
System.out.print("Enter Y: ");
y = Integer.parseInt(scanner.nextLine());
System.out.printf("\nYou entered: [%d,%d]\n", x, y);
if(!Coordinates.checkCoordinates(x, y))
System.out.println("Error");
} while(!Coordinates.checkCoordinates(x ,y));
Coordinates shot = new Coordinates(x, y);
return shot;
}