riddlesio / issues

Bug reports and starter bot submissions for the Riddles.io platform
0 stars 0 forks source link

MsHackMan - My bot sends "right" action but Test Game I/O tells I didn't send anything #70

Closed logisin closed 6 years ago

logisin commented 6 years ago

I have made a bot for the MsHackMan game using C++14 and Visual Studio 2017. When I ran the log of the game to my PC up to round 71 the bot sends the move "right" but Test Game log says that I haven't sent anything. Maybe there is a bug. Please help, I've send the code and the game.log. Project1.zip

JimVanEeden commented 6 years ago

This is most likely a bug in your bot. But it's hard for me to help you as I really don't know much about C++. Maybe you can ask on the forum of Ms. Hack-man and somebody can help you.

tombsar commented 6 years ago

@logisin It looks to me as though your bot is crashing (segfault) during the processing of round 45. It seems Visited::setElementXY might be trying to access an element of a std::vector that doesn't exist, but I didn't take the time to investigate further.

@JimVanEeden This relates to something I was thinking about creating a new issue for. If the user's bot terminates for whatever reason, the engine seems to ignore it and keep going regardless. It would be nice if the match was forfeited at that point, and a useful error message printed to the log.

nikovanmeurs commented 6 years ago

@tombsar sounds good, a separate issue on the topic is certainly welcome. I'll be closing this issue as it's not a bug in the platform or the engine.