dreignier / cg-brutaltester

A local arena for codingame multiplayer puzzles
GNU General Public License v3.0
208 stars 45 forks source link

Add compatible referee for SpringChallenge2022 #37

Closed johnpage-agixis closed 2 years ago

raxkin commented 2 years ago

I have been testing the referee with my code and i get this error:

java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2
    at com.codingame.game.Referee.initPlayers(Referee.java:209)
    at com.codingame.game.Referee.init(Referee.java:98)
    at com.codingame.gameengine.core.GameManager.start(GameManager.java:111)
    at com.codingame.gameengine.core.RefereeMain.start(RefereeMain.java:67)
    at com.codingame.gameengine.runner.RefereeAgent$1.run(RefereeAgent.java:68)

This is my command: java -jar C:\Users\alber\development\cg-brutaltester\target\cg-brutaltester-1.0.0-SNAPSHOT.jar -r "java -Dleague.level=3 -jar C:\Users\alber\development\SpringChallenge2022\target\spider-attack-spring-2022-1.0-SNAPSHOT.jar" -p1 codingame-scala-kit.bat -p2 codingame-scala-kit.bat -n 100 -t 6

Where codingame-scala-kit.bat is a batch file that runs the compiled java and works fine if i execute it manaually and accept inputs.

raxkin commented 2 years ago

Was using a old commit, you did a fix after my pull. Works fine now!