Skip to content

Commit

Permalink
Updated exe
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshayGoelTech committed Jun 3, 2016
1 parent d4821ef commit f10a228
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Binary file modified AI_TicTacToe.exe
Binary file not shown.
1 change: 1 addition & 0 deletions AI_TicTacToe/Displays.cpp
Expand Up @@ -112,6 +112,7 @@ void Displays::menu()
case '0':p_symb = 'O';
c_symb = 'X';
askAgain = false;
break;
default: askAgain = true;
break;
}
Expand Down
8 changes: 0 additions & 8 deletions AI_TicTacToe/Strategy.cpp
Expand Up @@ -39,52 +39,44 @@ void Strategy::computerMove(char pos[][3], int turn)
moveDone = winMove(pos);
if (moveDone)
{
cout << "\nwinMove returned true"; _getch();
return;
}

moveDone = winBlock(pos);
if (moveDone)
{
cout << "\nwinBlock returned true"; _getch();
return;
}

moveDone = blockFork2(pos);
if (moveDone)
{
cout << "\nBlockFork2 returned true"; _getch();
return;
}

moveDone = makeFork1(pos);
if (moveDone)
{
cout << "\makeFork1 returned true"; _getch();
return;
}

moveDone = blockFork1(pos, turn);
if (moveDone) {
cout << "\nblockfork1 returned true"; _getch();
return;
}

moveDone = strategyAlpha(pos);
if (moveDone) {
cout << "\nStrategy Alpha returned true"; _getch();
return;
}

moveDone = strategyBeta(pos, turn);
if (moveDone) {
cout << "\nStrategy Beta returned true"; _getch();
return;
}

moveDone = strategyGamma(pos);
if (moveDone) {
cout << "\nStrategy Gamma returned true"; _getch();
return;
}

Expand Down

0 comments on commit f10a228

Please sign in to comment.