| 317 | // |
| 318 | |
| 319 | bool TestObservationInterface(int argc, char** argv) { |
| 320 | Coordinator coordinator; |
| 321 | if (!coordinator.LoadSettings(argc, argv)) { |
| 322 | return false; |
| 323 | } |
| 324 | |
| 325 | // Add the custom bot, it will control the players. |
| 326 | TestObservationBot bot; |
| 327 | |
| 328 | coordinator.SetParticipants({ |
| 329 | CreateParticipant(sc2::Race::Terran, &bot), |
| 330 | }); |
| 331 | |
| 332 | // Start the game. |
| 333 | coordinator.LaunchStarcraft(); |
| 334 | coordinator.StartGame(sc2::kMapEmpty); |
| 335 | |
| 336 | // Step forward the game simulation. |
| 337 | while (!bot.IsFinished()) { |
| 338 | coordinator.Update(); |
| 339 | } |
| 340 | |
| 341 | return bot.Success(); |
| 342 | } |
| 343 | |
| 344 | } |
| 345 |
nothing calls this directly
no test coverage detected