| 18 | }; |
| 19 | |
| 20 | virtual void OnStep() final { |
| 21 | uint32_t game_loop = Observation()->GetGameLoop(); |
| 22 | |
| 23 | if (game_loop % 100 == 0) { |
| 24 | sc2::Units units = Observation()->GetUnits(sc2::Unit::Alliance::Self); |
| 25 | for (auto& it_unit : units) { |
| 26 | sc2::Point2D target = sc2::FindRandomLocation(Observation()->GetGameInfo()); |
| 27 | Actions()->UnitCommand(it_unit, sc2::ABILITY_ID::SMART, target); |
| 28 | } |
| 29 | } |
| 30 | }; |
| 31 | |
| 32 | virtual void OnGameEnd() final { |
| 33 | ++restarts_; |
nothing calls this directly
no test coverage detected