-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
44 lines (34 loc) · 889 Bytes
/
main.cpp
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
// main.cpp
#include "provided.h"
#include <string>
#include <iostream>
using namespace std;
int main()
{
Scaffold s(3, 2); //Cols, Levels
/*
Player* adam = new HumanPlayer("Adam");
//cout << adam->name()<<endl; //Human Player spits out name properly
adam->chooseMove(s,4,RED);
*/
Player* comp = new BadPlayer("BadComp");
if (s.makeMove(1, RED))
s.display();
cerr << comp->chooseMove(s, 10, RED)<<endl;
if (s.makeMove(1, RED))
s.display();
cerr << comp->chooseMove(s, 10, RED) << endl;
if (s.makeMove(2, RED))
s.display();
cerr << comp->chooseMove(s, 10, RED) << endl;
if (s.makeMove(2, RED))
s.display();
cerr << comp->chooseMove(s, 10, RED) << endl;
if (s.makeMove(3, RED))
s.display();
cerr << comp->chooseMove(s, 10, RED) << endl;
if (s.makeMove(3, RED))
s.display();
cerr << comp->chooseMove(s, 10, RED) << endl;
cin.ignore(1000, '\n');
}