Commit Graph

56 Commits

Author SHA1 Message Date
f8b6b6b376
Start implementing Deck as a distinct type.
Deck does enough stuff it should be its own thing; its internal representation might change to make multiple insertions not quadratic, among other reasons. Currently it just does the obvious stuff, though. Allows inserting cards in random or specific slots and drawing cards. Shuffling a range of the deck comes later.
2023-04-01 11:50:39 -07:00
8153a7c083
Card.Then
Add a callback to the Card interface to be invoked after an option is selected. This will most frequently be used for cards that always want to shuffle themselves back into the deck regardless of the Option selected.
2023-03-27 20:21:57 -07:00
b672dfa9ec
Update readme with basic notes 2023-03-27 00:20:54 -07:00
8a2664c305
Delay rules updates during rule execution.
Any RuleCollection change while the rule collection is running a turn is now delayed until all rules are evaluated. This gives consistent semantics for when rule changes invoked my rules themselves are applied.
2023-03-27 00:08:56 -07:00
45bbfe4e8f
Initial commit.
No tests. Not complete.
2023-03-26 23:40:44 -07:00
d820204e7f Initial commit 2023-03-27 06:38:10 +00:00