MA Beaudet [Sat, 6 Nov 2021 12:02:18 +0000 (13:02 +0100)]
feat: add evaluator and hand structs (WIP)
Evaluation should be done using these structs. I will probably let some
functions available freely for wasm builds.
Hand should probably be changed to `struct Hand(Vec<Card>) where Card is
`struct Card(u32)` that impl `std::str::FromStr`, `std::fmt::Display`,
PartialEq`, `PartialOrd` and others...
MA Beaudet [Fri, 5 Nov 2021 14:37:28 +0000 (15:37 +0100)]
feat: eval_from_str split in two functions
`eval_from_str` was doing too much. Now `parse_cards` parses the cards
and `eval_hand` wraps over `eval_5hand` and `eval_7hand`.
Both functions are available through wasm_bindgen