Skip to content

Deductions and endgame#11

Open
felixbauckholt wants to merge 2 commits into
WuTheFWasThat:masterfrom
felixbauckholt:deductions-and-endgame
Open

Deductions and endgame#11
felixbauckholt wants to merge 2 commits into
WuTheFWasThat:masterfrom
felixbauckholt:deductions-and-endgame

Conversation

@felixbauckholt

Copy link
Copy Markdown
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
Copy Markdown
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