pub fn add_player(&mut self) -> (bool, usize) {
        if self.players.len() < self.max_players as usize {
            let id = Uid::new_numerical(4) as usize;
            let new_player = Player::new(id);
            self.players.push(new_player);
            return (true, id);
        }
        (false, 0)
    }
/// Add a player to the game
Add a player to the game
Add a player to the game
pub fn add_player(&mut self) -> (bool, usize) {
        if self.players.len() < self.max_players as usize {
            let id = Uid::new_numerical(4) as usize;
            let new_player = Player::new(id);
            self.players.push(new_player);
            return (true, id);
        }
        (false, 0)
    }
pub fn add_player ( & mut self ) -> ( bool , usize ) { if self . players . len ( ) < self . max_players as usize { let id = Uid :: new_numerical ( 4 ) as usize ; let new_player = Player :: new ( id ) ; self . players . push ( new_player ) ; return ( true , id ) ; } ( false , 0 ) }
Add a player to the game
Add a player to the game
&mut self
&mut self