I recently started to program in Scala and I thought Ultimate Tic Tac Toe would be a good way to learn. The problem is that I often get the following cryptic bug/issue/feature:
Standard Output Stream:
> PONG
Game Summary:
MathJason eliminated: Invalid output.
Nowhere did I specify PONG as an output. Also any debugging code I wrote doesn’t get displayed. It happens 100% of the time when my bot plays against itself. Right now my game logic is trivial, but I have a lot of classes, so it must be the compilation is taking too long.
What does PONG mean?
If it is the compilation is taking too long, since I am new to Scala, how can I speed up my compilation time?
Actually, this PONG stuff happens even with the default Scala code. If I play the default code against itself in the CodinGame IDE, then the above bug always happens. (Tried two browsers as well.)
Upon further debugging, this seems to be a bug in most, if not all, of the Multiplayer games. I reproduced it on every one I tried, including Ultimate TicTacToe, Botters of the Galaxy, and Great Escape (to try an old game).
Same here, encountered today while was adapting my BotG contest code to multiplayer game. But never had it earlier.
I catch this also with league boss but not with other bots.
I had a “bug” when used various online C++ compilers, could see program output of other users when it was supposed to be a segfault. Maybe something similar here, just a guess.
@TwoSteps, thanks for looking into this, however it is not just Scala vs Scala. While it always happens with Scala vs Scala, it sometimes happens with Scala vs Other.
For example, I just tried to submit the simplest bot in the UTTT bronze league. The bot just takes the last valid move (from the provided inputs) and plays that. It is only 5 lines of code different from the default Scala code stub. It should not reasonably time out. Here are the times when I get PONG in competition. None of them were Scala. (Because I didn’t played against any Scala bots in Bronze).
Totals: 11 PONGs in 220 games Opponents: 1 Python3, 1 JavaScript, 9 Java