pub fn kill(&mut self, player_idx: usize, night: bool) {
        if night {
            if !self.heals.contains(&player_idx) {
                self.kills.push(player_idx);
            }
        } else {
            self.alive[player_idx] = false;
        }
    }
/// Utility method to properly handle killing a player depending on day/night, healed status, etc.
Utility method to properly handle killing a player depending on day/night, healed status, etc.
Utility method to properly handle killing a player depending on day / night healed status etc .
pub fn kill(&mut self, player_idx: usize, night: bool) {
        if night {
            if !self.heals.contains(&player_idx) {
                self.kills.push(player_idx);
            }
        } else {
            self.alive[player_idx] = false;
        }
    }
pub fn kill ( & mut self , player_idx : usize , night : bool ) { if night { if ! self . heals . contains ( & player_idx ) { self . kills . push ( player_idx ) ; } } else { self . alive [ player_idx ] = false ; } }
Utility method to properly handle killing a player depending on day/night, healed status, etc.
Utility method to properly handle killing a player depending on day / night healed status etc .
&mut self
player_idx
usize
night
bool
&mut self
player_idx
usize
night
bool