MCPcopy Create free account
hub / github.com/battlecode/battlecode-2018 / winning_team

Method winning_team

battlecode-engine/src/controller/mod.rs:1156–1162  ·  view source on GitHub ↗

DO NOT CALL THIS FUNCTION UNLESS YOU ARE THE MANAGER!

(&self)

Source from the content-addressed store, hash-verified

1154
1155 /// DO NOT CALL THIS FUNCTION UNLESS YOU ARE THE MANAGER!
1156 pub fn winning_team(&self) -> Result<Team, Error> {
1157 if let Some(team) = self.is_game_over() {
1158 Ok(team)
1159 } else {
1160 bail!("Game is not finished");
1161 }
1162 }
1163
1164 pub fn manager_viewer_message(&self) -> String {
1165 let earth_map = &self.world.planet_maps[&Earth];

Callers 1

run_gameFunction · 0.80

Calls 1

is_game_overMethod · 0.45

Tested by

no test coverage detected