Commit Graph

14 Commits

Author SHA1 Message Date
Aryadev Chavali
d9cc67d3d1 modes:single:tests: refactor 2026-04-05 04:45:51 +01:00
Aryadev Chavali
6119410496 card: new -> make_joker and make_playing-card
Always better to be explicit with our constructor names.
2026-04-05 04:45:51 +01:00
Aryadev Chavali
40046fa98c modes:single:tests: Full stops on // TEST comments. 2026-04-05 04:45:51 +01:00
Aryadev Chavali
27f9f79416 modes:mod:Hand: is_proper and is_improper indicator functions
A "proper" hand is one that has no wild cards - an "improper" hand is
one that does have at least one wild card.

~is_proper~ should be implemented for any Hand - ~is_improper~ falls
out for free.

Implemented for Single and Pair.
2026-04-05 04:45:51 +01:00
Aryadev Chavali
b76ad869ea modes:single:tests: commentary, reflexive testing on differing decks 2026-04-05 04:45:51 +01:00
Aryadev Chavali
994ebea678 modes:single: rename some tests 2026-04-05 04:45:51 +01:00
Aryadev Chavali
6a86f7d62b modes:single|pair: Use square brackets instead of braces for display
Helps distinguish from the Debug print.
2026-04-05 04:45:51 +01:00
Aryadev Chavali
a24d85572d modes:single|pair: make fields of Single and Pair public
So strange that this isn't default for tuple-like constructors.  I can
kinda get it for record-like constructors, but not for this.  Better
safe than sorry I guess?
2026-04-05 04:45:51 +01:00
Aryadev Chavali
da60b41b97 modes:*: doc strings 2026-04-05 04:45:51 +01:00
Aryadev Chavali
71f644043a modes:mod|single: fix issue with footstool not taking other by reference 2026-04-05 04:45:51 +01:00
Aryadev Chavali
e46ece2622 modes:singles: refactor tests using the generic non_reflexive test. 2026-04-05 04:45:51 +01:00
Aryadev Chavali
9c5ee74639 modes:single: tests for footstooling and invalid singles 2026-04-05 04:45:51 +01:00
Aryadev Chavali
d2075cd000 modes:single: implement Hand for Singles
Really trivial implementation.
2026-04-05 04:45:51 +01:00
Aryadev Chavali
ca07536b37 modes: new crate representing the API for different round types
Single is our first one - trivial really.  Only thing we need to check
is that the single isn't made up of a joker.
2026-04-05 04:45:51 +01:00