CodinGame / SpringChallenge2021

29 stars 71 forks source link

Fix error "error: can't find main(String[]) method in class: Cell" #39

Closed Totox64 closed 3 years ago

Totox64 commented 3 years ago

When running locally the java starter AI as it is, it produces an error : "error: can't find main(String[]) method in class: Cell" during the first step of the game. Since there is multiple classes in the starter.java file, the main fonction must be in the first class of the file to be detected. So the player class has to be moved to be the first class of the file.