This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
breakthroughpine64backup/Board.h

37 lines
751 B
C
Raw Normal View History

2015-10-19 15:36:20 -05:00
#pragma once
using namespace std;
2015-10-19 15:45:41 -05:00
struct moves {
int row;
char column;
string moveType;
moves(int linea, int columna, string m) {
row = linea;
column = columna;
moveType = m;
}
};
2015-10-19 15:36:20 -05:00
class Board {
char boardArray [8][8];
char turn = 'O';
public:
Board();
moves parse(string input);
char getTurn() { return turn; }
bool isGameOver();
void changeTurns();
void displayBoard();
2015-10-19 15:45:41 -05:00
int charToIntColumn(char input);
char intToCharColumn(int input);
void move(string inputMove);
void move(moves jugada);
bool isThisMovePossible(int r, int c, string moveType);
vector<moves> viewPossibleMoves();
string myToUpper(string input);
void displayPossibleMoves(vector<moves> input);
void easyAI();
2015-10-19 15:36:20 -05:00
};