diff --git a/src/CAHd_game.rs b/src/CAHd_game.rs index 866c98c..94e62ac 100644 --- a/src/CAHd_game.rs +++ b/src/CAHd_game.rs @@ -163,7 +163,10 @@ impl CAHGame { /// Create a new player and add them to the game. pub fn create_player(&mut self, mut player: CAHPlayer) -> Result<()> { - println!("Creating player {} as {:?}", &player.player_name, &player.role); + println!( + "Creating player {} as {:?}", + &player.player_name, &player.role + ); let mut hand_buf = vec![]; for _ in 0..10 { @@ -176,4 +179,17 @@ impl CAHGame { Ok(()) } + + pub fn game_start(&mut self) -> Result<()> { + self.game_active = true; + println!("Game Active!"); + + if let Some(black) = &self.current_black { + println!("{}", black.text); + } else { + println!("YOU DONE FUCKED UP (no current black card)"); + } + + Ok(()) + } } diff --git a/src/main.rs b/src/main.rs index 13686d3..69a0cf9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,6 +45,7 @@ fn main() -> Result<()> { // ready player 1 let _ = games[0].create_player(test_player1); - + // start round + let _ = games[0].game_start(); Ok(()) }