-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
24 lines (22 loc) · 751 Bytes
/
test.cpp
File metadata and controls
24 lines (22 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "suzero_interface.h"
#include "suzero_state_5dcengine.h"
#include <memory>
#include <iostream>
#include <unordered_set>
using namespace std;
int main()
{
std::shared_ptr<SuZeroState> s = SuZeroState_5dcengine::getNewTurnZeroAIMode();
unordered_set<StateForAI> a;
cout << s->getStateHash() << endl;
cout << s->getAllLegalAction().canSwitchPlayer << endl;
s = s->selectMovePosition({0,1,0,1});
cout << s->getStateHash() << endl;
cout << s->getAllLegalAction().canSwitchPlayer << endl;
s = s->selectMovePosition({0,1,0,2});
cout << s->getStateHash() << endl;
cout << s->getAllLegalAction().canSwitchPlayer << endl;
s = s->switchActivePlayer();
cout << s->getStateHash() << endl;
return 0;
}