Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deductions and endgame #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

felixbauckholt
Copy link
Collaborator

6720f33 makes some mild improvements by implementing some straightforward endgame optimizations.

e76722e marks down weights of cards in other places once they've become determined in one place. This requires us to track whether we already did this for each card; this is somewhat ugly in the current architecture, sorry! Maybe if we do expose some sort of "card ID" for each card to the strategy, this could look nicer.

(Sorry for the lack of detail here, the commits are almost a week old so I forgot about them.)

This just tweaks the "risky plays" part of `decide_wrapped()` to take
much more risk once the deck ran out.

Also, once the deck runs out, if there is exactly one card that might be
playable, we can deduce that the card is playable and play it. I just
hardcoded this (but we can take out that chuck of code and only incur a
tiny penalty).
… other places

This is currently somewhat hacky, but I don't see a way to make it less
hacky.
@WuTheFWasThat
Copy link
Owner

these changes look good. the extra boolean is awkward but not too bad - why would card ID help?

in general though, I'm starting to get wary of making the strategy too complicated for small gains. would be interested in brainstorming ways we might get more big gains before we local-optimize too much! (i don't think it's too much a risk with these changes though!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants