From 35181658965820aaebb23ce8e38a775f7e90d929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Bergstr=C3=B6m?= <davbe125@student.liu.se> Date: Mon, 25 Jun 2018 16:37:39 +0200 Subject: [PATCH] Remove run function from Python library --- library.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/library.cpp b/library.cpp index d4195c3eb..657490b4c 100644 --- a/library.cpp +++ b/library.cpp @@ -2,22 +2,6 @@ namespace py = pybind11; -void run() -{ - Coordinator coordinator; - - IDABot bot; - coordinator.SetParticipants({ - CreateParticipant(sc2::Race::Terran, &bot), - sc2::CreateComputer(sc2::Race::Zerg) - }); - - coordinator.LaunchStarcraft(); - coordinator.StartGame("InterloperTest.SC2Map"); - - while (coordinator.Update()) { - } -} PYBIND11_MODULE(library, m) { @@ -59,6 +43,4 @@ PYBIND11_MODULE(library, m) m.def("CreateParticipant", &sc2::CreateParticipant, "Create participant from agent"); m.def("CreateComputer", &sc2::CreateComputer, "Create participant from built-in Starcraft computer"); - - m.def("run", &run, "Start Starcraft 2"); } -- GitLab