I really don't know what to change here :(
package com.codegym.task.task21.task2113;
import java.util.ArrayList;
import java.util.List;
public class Hippodrome {
static Hippodrome game;
public static void main(String[] args) {
Hippodrome.game = new Hippodrome();
game.horses = new ArrayList<>();
Horse h1 = new Horse("BlackBerry", 3, 0);
Horse h2 = new Horse("BlackBerry", 3, 0);
Horse h3 = new Horse("BlackBerry", 3, 0);
game.getHorses().add(h1);
game.getHorses().add(h2);
game.getHorses().add(h3);
}
private List<Horse> horses;
public List<Horse> getHorses() {
return horses;
}
public Hippodrome() {
}
public Hippodrome(List<Horse> horses) {
this.horses = horses;
}
public void move (){
for (Horse h : game.getHorses())
{
h.move();
}
}
public void run (){
for (int i = 0; i < 100; i++) {
game.move();
game.print();
try {
Thread.sleep(200);
}
catch (InterruptedException e) {
e.printStackTrace();
}
}
}
public void print (){
}
}