jonthysell / Mzinga

Open-source software to play the board game Hive.
MIT License
82 stars 9 forks source link

Auto-play should check if it can pass before running AI #38

Closed jonthysell closed 8 years ago

jonthysell commented 8 years ago

If we know we only have one move:

if it's a Pass, we should disable finding the bestmove by button

If it's not a pass, we should run findbestmove anyway, let the engine be responsible for being fast

When auto-playing, we should pass only if the best move is a pass.

P.S. we should cache the direct result of FindBestMove in the Viewer (but reset it if the user selects a new target)