()
| 96 | } |
| 97 | |
| 98 | fn 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 | } |
nothing calls this directly
no test coverage detected