forked from yanntm/YoBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathYoBotMain.cpp
More file actions
59 lines (52 loc) · 1.73 KB
/
YoBotMain.cpp
File metadata and controls
59 lines (52 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include <iostream>
#include "sc2api/sc2_api.h"
#include "sc2lib/sc2_lib.h"
#include "sc2utils/sc2_manage_process.h"
#include "sc2utils/sc2_arg_parser.h"
#include "YoBot.h"
#include "LadderInterface.h"
#ifdef DEBUG
int main(int argc, char* argv[])
{
YoBot bot;
YoBot bot2;
sc2::Coordinator coordinator;
if (!coordinator.LoadSettings(argc, argv))
{
std::cout << "Unable to find or parse settings." << std::endl;
return 1;
}
coordinator.SetStepSize(1);
coordinator.SetRealtime(false);
coordinator.SetMultithreaded(true);
coordinator.SetParticipants({
CreateParticipant(sc2::Race::Protoss, &bot),//CreateParticipant(sc2::Race::Protoss, &bot2)
//sc2::PlayerSetup(sc2::PlayerType::Observer,Util::GetRaceFromString(enemyRaceString)),
CreateComputer(sc2::Race::Terran, sc2::Difficulty::VeryHard)
});
// Start the game.
coordinator.LaunchStarcraft();
//"AcidPlantLE Interloper LE" 16BitLE
//Redshift DarknessSanctuary 16BitLE.SC2Map"; InterloperLE
//Season6Ladder: 16BitLE AcidPlantLE CatalystLE DreamCatcherLE LostAndFoundLE FractureLE BlueShiftLE CeruleanFallLE //notUsed:MechDepotLD RedshiftLE //4player bad: DarknessSanctuary
auto map = "F:\\StarCraft II\\Maps\\CeruleanFallLE.SC2Map";
//coordinator.StartGame();
// coordinator.StartGame("16-Bit LE");
if (coordinator.StartGame(map)) {
// Step forward the game simulation.
while (coordinator.Update())
{
}
}
else {
std::cout << "There was a problem loading the map : " << map << std::endl;
}
}
#else
//*************************************************************************************************
int main(int argc, char* argv[])
{
RunBot(argc, argv, new YoBot(), sc2::Race::Protoss);
return 0;
}
#endif