-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPentest.cpp
More file actions
43 lines (36 loc) · 1012 Bytes
/
Copy pathPentest.cpp
File metadata and controls
43 lines (36 loc) · 1012 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
#include <vector>
#include <fstream>
#include <cstdlib>
#include <cstdio>
#include <cctype>
#include <stdexcept>
#include "wlm.hpp"
#include "Pente.hpp"
using namespace std;
int main() {
Pente board;
int certD=0, certT=0, certQ=0;
int wx[10] = {0,0,0,2,2,3,3,4,4,5};
int wy[10] = {0,1,4,7,8,6,8,5,8,8};
int bx[11] = {0,1,1,2,3,3,3,5,5,5,5};
int by[11] = {2,2,4,5,0,1,2,3,4,5,6};
for(int i=0;i<11;i++)
board.fillCell(bx[i], by[i], 'B');
for(int i=0;i<10;i++)
board.fillCell(wx[i], wy[i], 'W');
cout << "B Cap: " << board.getCaptures('B') << endl;
cout << "W Cap: " << board.getCaptures('W') << endl;
board.getCertain(certD, certT, certQ, 'B');
cout << "BCertD: " << certD << endl
<< "BCertT: " << certT << endl
<< "BCertQ: " << certQ << endl;
board.getCertain(certD, certT, certQ, 'W');
cout << "WCertD: " << certD << endl
<< "WCertT: " << certT << endl
<< "WCertQ: " << certQ << endl;
return 0;
}