CodinGame / codingame-game-engine

CodinGame Engine
https://www.codingame.com
MIT License
113 stars 41 forks source link

test.html: Output and error always shown at player 0 #24

Closed eulerscheZahl closed 4 years ago

eulerscheZahl commented 4 years ago

Regarding the local test page http://localhost:8888/test.html: on turn-based games (with only a single player getting executed each turn), the SDK always shows the output and error stream at the first player. This bug was introduced somewhere between v3.6 and v3.7, it's working properly on the older version.

jay-ng-mc commented 4 years ago

Hello, we were unable to reproduce the bug. Can you show us in detail how you were able to get it to happen?

EDIT: I was testing this on an old game. I will check if this happens in the new versions of game engine tomorrow.

eulerscheZahl commented 4 years ago

Hello, this is the project causing problems for me: Onitama. Works fine with SDK version 3.6 but not with the latest one. An online version is here on CodinGame, it's playing fine on the website.

image image

jay-ng-mc commented 4 years ago

The client code wasn't handling the players' output correctly. It has been fixed in the latest release.

CGjupoulton commented 4 years ago

Fixed in v3.10.0

eulerscheZahl commented 4 years ago

Thanks, much better indeed. But now this line is spamming my console :stuck_out_tongue: