Commit graph

17 commits

Author SHA1 Message Date
e1ff2a0a35
types: Add generic derives
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-19 12:02:42 +02:00
2659afd476
types: impl Display for Color returns short version
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-19 11:54:36 +02:00
c65de4bfca
types: impl From<Digit> for u8
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-19 11:54:03 +02:00
8f1e63b108
Use log/env_logger
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-09 22:24:45 +02:00
f0e921ebfd
cargo fmt
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-09 18:31:01 +02:00
c2b609ba55
parser: use parse_slot instead of custom code
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-09 18:29:17 +02:00
098ce3a1d8
types: PlayCard and DropCard now require Card and Slot
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-09 18:28:16 +02:00
3762856813
Allow shortname for colors
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-09 18:25:36 +02:00
557ac79537
Write header to recording file
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-08 22:19:14 +02:00
c52bd7512c
types: more docstrings
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-08 22:18:04 +02:00
ebabf90ba6 Record actions in file
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-08 10:21:35 +02:00
5a057a49e6 Remove Slot newtype and fix recursion issue in Slots
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-08 10:21:35 +02:00
8a5ba57a42 Cargo.toml: update desc
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-07 22:01:07 +02:00
b51c0faed8 Add ReplAction alongside GameAction
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-07 22:01:07 +02:00
a5b7d1d862 impl fmt::Display for GameAction
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-07 22:01:07 +02:00
67fc8583a9 Rename Action to GameAction
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-07 21:54:06 +02:00
f51c9fe6da Initial commit; parse game actions
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-07 21:54:06 +02:00