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

Method get_arrays_mut

battlecode-engine/src/team_array.rs:47–53  ·  view source on GitHub ↗
(&mut self, planet: Planet)

Source from the content-addressed store, hash-verified

45 }
46
47 fn get_arrays_mut(&mut self, planet: Planet) -> &mut VecDeque<TeamArray> {
48 if let Some(array) = self.history.get_mut(&planet) {
49 array
50 } else {
51 unreachable!();
52 }
53 }
54
55 /// Filters the team array history such that the new history does not store
56 /// any intermediate arrays, and only the arrays that can be accessed on

Callers 2

writeMethod · 0.80
end_roundMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected