A card game engine for TCGs, primarily Magic: The Gathering but with support for others
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Adding phase data structure

+8
+8
src/game.rs
··· 6 6 pub struct ZoneId(Uuid); 7 7 pub struct CardDefId(Uuid); 8 8 9 + pub enum Phase { 10 + Beginning(PlayerId), 11 + PreCombatMain(PlayerId), 12 + Combat(PlayerId), 13 + PostCombatMain(PlayerId), 14 + End(PlayerId) 15 + } 16 + 9 17 pub struct GameState { 10 18 players: HashMap<PlayerId, Player>, 11 19 cards: HashMap<CardId, CardInstance>,