forgot to remove a comment
This commit is contained in:
parent
7a2436159a
commit
2146af2581
1 changed files with 1 additions and 9 deletions
10
Engine.cpp
10
Engine.cpp
|
@ -56,20 +56,12 @@ void Engine::easyAI()
|
||||||
{
|
{
|
||||||
vector<moves> listOfMoves = b->viewPossibleMoves();
|
vector<moves> listOfMoves = b->viewPossibleMoves();
|
||||||
|
|
||||||
cout << listOfMoves[0].row << "\n";
|
|
||||||
cout << listOfMoves[0].column << "\n";
|
|
||||||
cout << listOfMoves[0].moveType << "\n\n";
|
|
||||||
b->move(listOfMoves[0]);
|
|
||||||
b->changeTurns();
|
|
||||||
/*
|
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
int randomChoice = rand() % (listOfMoves.size()-1) - 0; // choose a move betwen listOfMoves[0] to last element
|
int randomChoice = rand() % (listOfMoves.size()-1) - 0;
|
||||||
|
|
||||||
//3) execute movement
|
|
||||||
int temp = randomChoice;
|
int temp = randomChoice;
|
||||||
b->move(listOfMoves[randomChoice]);
|
b->move(listOfMoves[randomChoice]);
|
||||||
b->changeTurns();
|
b->changeTurns();
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Engine::AI(){
|
void Engine::AI(){
|
||||||
|
|
Reference in a new issue