Commit Graph

8 Commits

Author SHA1 Message Date
Aryadev Chavali
b66c1c7706 card: add rank and suit destructors
They're Option since card may be a joker, but this is supremely
helpful.
2026-04-01 06:20:22 +01:00
Aryadev Chavali
dfc5761246 card: make Card::PlayingCard variant struct-like for more clarity. 2026-04-01 06:20:22 +01:00
Aryadev Chavali
7009d14965 derive partialeq for rank and suit (obvious impl) 2026-04-01 06:20:22 +01:00
Aryadev Chavali
cea30e0173 rustfmt: the only rule that matters 2026-04-01 06:20:22 +01:00
Aryadev Chavali
7f2b950602 added an issue tracking document 2026-04-01 06:20:22 +01:00
Aryadev Chavali
3259448dca card: a sufficient API for cards
The mathematical result that underpins this is a bijective map between
the positive integers and a unique playing card.
2026-04-01 06:20:22 +01:00
Aryadev Chavali
f112f9ed0c cleanup gitignore 2026-04-01 06:20:22 +01:00
Aryadev Chavali
520311cf9c Hello, world! 2026-03-31 15:31:36 +01:00