- Created Sunday, July 20th 2014 @ 20:11:28
- Created Monday, July 21st 2014 @ 19:57:40
JS starter bot doesn't work either.
I've tried logging all the input the bot receives, and I'm fairly certain that the test never sends the command 'Action player1 [[time]]', so there's nothing for my bot to respond to.
If I output anything, my bot passes the input test and runs the test match, but the engine uses that first output as my bot's first move, which seems undesirable.
DeveloperUpdated Tuesday, July 22nd 2014 @ 09:05:43
- Created Tuesday, July 22nd 2014 @ 21:39:19
I have been having the same issue with a C++ bot.
Everything up to and including the first "Match amountToCall 10\n" is recieved just fine.
Then i tried logging the inputstream one character at a time and found out that the "Action player1 5000" is in fact received but the end of line code \n is missing. Nothing else arrives until the stream closes and i get the EOF.
DeveloperCreated Wednesday, July 23rd 2014 @ 09:42:55
This should be correct. For the test, it just sets up a game and only asks for output one time. This is to make sure your bot outputs anything at all. If your bot doesn't output anything it fails the test, otherwise it will play a test match, which is a normal match against our test bot.
I've checked your error and you DO get the "Action player1 5000" input, so if you fail the test, that is because your bot doesn't respond to it.
- Created Wednesday, July 23rd 2014 @ 11:41:37
Ok i see your point. I was parsing the input line by line which fails since i never got an end of line after "Action player1 5000". I fixed it by explicitly checking for EOF as well :D
Still i guess it would be nice to add an end of line to test script in case other people make the same mistake.