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

Function main

battlecode-engine/examples/runner.rs:98–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98fn main() {
99 let args = env::args().collect::<Vec<String>>();
100 if args.len() != 4 {
101 println!("usage: runner P1 P2 DELAYMS");
102 return;
103 }
104 let p1 = match &args[1][..] {
105 "examplefuncsplayer" => examplefuncsplayer,
106 "nothingbot" => nothingbot,
107 _ => panic!("unknown bot")
108 };
109 let p2 = match &args[2][..] {
110 "examplefuncsplayer" => examplefuncsplayer,
111 "nothingbot" => nothingbot,
112 _ => panic!("unknown bot")
113 };
114 let delay = args[3].parse::<u32>().unwrap();
115 run_game_ansi(p1, p2, 1000, delay);
116}

Callers

nothing calls this directly

Calls 1

run_game_ansiFunction · 0.85

Tested by

no test coverage detected