Smash the Code: Bug in game result when a player fails to give correct output

There is an important bug in the way the winner is chosen after the end of a game. If one of the players fails to give correct output, ie:

invalid input. Expected 'position rotation' but found ''

the result is still computed using the scores (this is, a player is able to win a game after bad output if him happens to have higher score by that time, even if the game doesn’t end).

PROOF:


In this game, PepeBzH is winner just after his wrong output.

Please, fix the bug asap!

Ooops, you’re right, it’s fixed!

1 Like

Thank you!