jdmonin / JSettlers2

Java Settlers project home, downloads, and GPLv3 source code. To download the latest version as a JAR, see https://github.com/jdmonin/JSettlers2/releases/latest .
http://nand.net/jsettlers/
GNU General Public License v3.0
157 stars 63 forks source link

long timeouts when bot cant move #47

Closed kotc closed 5 years ago

kotc commented 5 years ago

problem: bot cant move -> giving up eventually, but happens again next turn. possible solution: shorten safety timeouts needed? 3-4s max for ai? or remembering the inability to move and just skipping the bot for the rest of the game?

jdmonin commented 5 years ago

Good point. I think it makes sense to remember recent inability to move, and shorten that particular bot's timeout after it gives up a couple of times. Could add a new field to SOCPlayer and check or increment it in SOCServer.checkForExpiredTurns, for example.