Halite
Halite copied to clipboard
Timeout bot limiting not working
We won't actually stop playing games with the bots that timeout alot. This query is flawed:
SELECT * FROM User WHERE isRunning = 1 and (userID in (SELECT gu.userID FROM GameUser gu GROUP BY gu.userID HAVING AVG(gu.didTimeout) < 1) or numGames < 5) order by rand()*-pow(sigma, 2) LIMIT 1;
Doesn't take into account versionNumber.