Valid bot fails input test
- Updated Tuesday, May 10th 2016 @ 08:13:54
My most recent bot, which I have verified as functional in a normal game, fails the input test. I programmed the bot to only provide a move when it is fed both a field and a macroboard first to prevent making two moves when it goes overtime on the first move. I suppose I could find another solution to the issue, but I have to wonder what the purpose of the input test is. Won't the test game expose any real problem that the input test would?
Edit: this was for my version 17 upload
- Created Tuesday, May 10th 2016 @ 08:50:44
For the input test your bot gets input up to the request of the first action. If it doesn't respond there the bot will be faulty in all cases. We don't want to waste precious resources on bots that do nothing at all, so that's why we have the input test.
As for why it doesn't respond. There must be some bug in your bot, hopefully you'll be able to find it :)
- Updated Wednesday, May 11th 2016 @ 05:48:12
Correct me if I'm wrong, but the test input asks for a move multiple times without making an opponent's move.
a sample output from a successful input test: Running testcase /opt/aigames/etc/teststictactoe/testtictactoe.txt...
Testing Bot with setup input...
... finished testcase in 10.1399999969 seconds
place_move 4 4
place_move 5 3
place_move 6 2
Bot has output, creating full testgame...
It would be impossible to move in the center, have an opponent move, and then move in the center board. But, my bot did so, it moved at 4, 4 and then at 5, 3, meaning there was no opponent's move. My v17 bot required an opponent's move to function, and so it failed the input test. So, the bot is functional in real matches, but not in the input test.
- Created Wednesday, May 11th 2016 @ 08:53:53
Here is the input test, this might help
settings timebank 10000 settings time_per_move 500 settings player_names player1,player2 settings your_bot player1 settings your_botid 1 update game round 1 update game move 1 update game macroboard -1,-1,-1,-1,-1,-1,-1,-1,-1 update game field 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 action move 10000
- Created Wednesday, May 11th 2016 @ 11:51:01
If that's the case, I wonder why it always prints several moves when there's only one move prompt. Anyway I changed it to not require an opponent's move in quite the same way, so it passes the input test now. Thanks for your help though.