Commit Graph

6 Commits

Author SHA1 Message Date
Aryadev Chavali
b26c06fff3 Make suit->int and int->suit complete inverses 2025-02-24 23:37:01 +00:00
Aryadev Chavali
a80b64b045 Make card a structure
Card is a structure instead of just a type.  Stronger type checking,
automatic constructor, destructors and existence check.
2025-02-22 23:00:17 +00:00
Aryadev Chavali
2323b5e0ed Small changes 2025-02-15 15:04:59 +00:00
Aryadev Chavali
395cd9357e Rework $ operator to take a capture variable
In case operators require use of a variable, we should let the caller
provide the symbol so we don't fall into weird package issues.
2025-02-15 15:04:00 +00:00
Aryadev Chavali
8f23358d3e Rework card< comparator to make Jokers the top of the hierarchy 2025-02-14 23:24:16 +00:00
Aryadev Chavali
334ece1ee7 Split source code into different modules for cleanliness 2025-02-14 21:46:43 +00:00