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.
I have been testing the referee with my code and i get this error:
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.