Added a few updates:
- All the score/play/draw zones have been added which means all zones and cards are now done. Interactions may still not be quite correct or cause issues with the bots.
- Updated normal turn 'Change History' to be Change History *or* Move.
- When the game ends the final game state remains on the page along with the chat
Next up I want to try and improve the bots - anyone suggest some good 'rules of thumb' that the bots could use?
My bots are quite dumb the way that they make decisions, but it's something:
If they have enough money to score any card in their hand, they go to Time 1.
Otherwise, if they have any cards in hand, they go to Time 3.
Otherwise, they go to Time 2.
They actually use some real intelligence to decide which crowns to move when they score, based on which zones care about ruling or not, and which times they can rule.
Donald once sent me a heuristic for assigning a value to the game state, based on score, money, number of cards in hand, etc. The idea was to just have the bots "check" the result of every possible move, and then choose the one that results in the highest valued game state. But I never got around to doing it; the way mine is set up made it difficult to loop through all possible choices.