MCPcopy Index your code
hub / github.com/battlecode/battlecode-2018 / test_map

Method test_map

battlecode-engine/src/map/mod.rs:86–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85
86 pub fn test_map() -> GameMap {
87 let seed = 1;
88 let mars_map = PlanetMap::test_map(Planet::Mars);
89 GameMap {
90 seed: seed,
91 earth_map: PlanetMap::test_map(Planet::Earth),
92 mars_map: mars_map.clone(),
93 asteroids: AsteroidPattern::random(seed, &mars_map),
94 orbit: OrbitPattern::new(50, 100, 100),
95 }
96 }
97
98 pub fn parse_text_map(map: &str) -> Result<GameMap, Error> {
99 self::mapparser::parse_text_map(map)

Callers 3

test_controllerFunction · 0.80
get_mapFunction · 0.80
start_gameFunction · 0.80

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected