fn game_over(&self, night: bool) -> bool {
        self.alive.iter().all(|alive| !alive) ||
        (!night && self.alive.iter().filter(|&&alive| alive).count() < 2) ||
        (!night && self.factions.iter().any(|faction| faction.wincon(self)))
    }
/// Checks if the game has ended.
Checks if the game has ended.
Checks if the game has ended .
fn game_over(&self, night: bool) -> bool {
        self.alive.iter().all(|alive| !alive) ||
        (!night && self.alive.iter().filter(|&&alive| alive).count() < 2) ||
        (!night && self.factions.iter().any(|faction| faction.wincon(self)))
    }
fn game_over ( & self , night : bool ) -> bool { self . alive . iter ( ) . all ( | alive | ! alive ) || ( ! night && self . alive . iter ( ) . filter ( | & & alive | alive ) . count ( ) < 2 ) || ( ! night && self . factions . iter ( ) . any ( | faction | faction . wincon ( self ) ) ) }
Checks if the game has ended.
Checks if the game has ended .
&self
night
bool
&self
night
bool