Please sign in to comment.
Improve performance of checking whether a buy causes a loss
Before cloning the game state, we first check to see if buying the card in question would cause a pile to empty, and whether the current player would be in the lead after gaining it. This cuts the total Dominiate execution time nearly in half.
- Loading branch information...