diff --git a/Board.cpp b/Board.cpp index 2ad164b..0571348 100755 --- a/Board.cpp +++ b/Board.cpp @@ -1,5 +1,9 @@ +#include +#include #include "Board.h" +using namespace std; + Board::Board() { for (int i = 0; i < 2; ++i) { for (int j = 0; j < 8; ++j) { @@ -82,7 +86,7 @@ void Board::changeTurns() else turn = 'O'; } -void BoarddisplayBoard() +void Board::displayBoard() { cout<<"\n\n"; cout<<" A B C D E F G H"< +#include + using namespace std; struct moves { diff --git a/a.out b/a.out index 32beef9..02b0976 100755 Binary files a/a.out and b/a.out differ diff --git a/test.cpp b/test.cpp new file mode 100755 index 0000000..4d6518a --- /dev/null +++ b/test.cpp @@ -0,0 +1,42 @@ +#include +#include +#include +#include +#include "Board.h" + +using namespace std; + +int main() +{ + cout<<"Welcome to Breakthrough\n"<>move; + b.move(move); + } + + + vector possibleMoves = b.viewPossibleMoves(); + //displayPossibleMoves(possibleMoves); for debugging purposes - AI + + + b.easyAI(); + + gameOver = b.isGameOver(); + } + +}