#include #include #include #include #include "Board.h" using namespace std; int main() { cout<<"WELCOME\n"; cout<<"1. Play against AI?\n"; cout<<"2. Play against a human?\n"; //cout<<"CHANGE THIS TO PARSE THINGS\n"; cout<<"Enter choice: \n"; int choice; cin >> choice; cout << "OK" << endl; Board b; string move; bool gameOver = false; vector record; b.snapshot(record,b); while (gameOver != true) { gameOver = b.isGameOver(); while(b.getTurn() == 'O' ) { b.displayBoard(); cout<<"\nEnter command: "; cin>>move; b.interpret(move,b); } vector possibleMoves = b.viewPossibleMoves(); if (choice == 1) { b.easyAI(); } else { while(b.getTurn() == 'X' ) { b.displayBoard(); cout<<"\nEnter command: "; cout<<"OK\n"; cin>>move; b.interpret(move,b); } } //b.snapshot(); gameOver = b.isGameOver(); b.snapshot(record,b); } //for debugging purposes cout<<"Record:"<