Quote:
|
Originally Posted by god
you have to make it know every possibility.. but i have another idea in mind, if you know the method by which you never lose (u always win or get tied if the other person knows it) you can make the program check for the position the user gave, and choose one of 2 or 3 good moves to make.. a.k.a badak t3allmo kel el moves, ma fi yfakkir la7alo.. ella eza badak tektob chi ktir sa3b :P W unwritable in c++ w vb w hek osas..
|
god make it know every possibility is like if else conditions.
usually games like tic tac toe use simple AI like minimax
which means the enemy ealuates ur best move, then starts a loop to give like the best move possible with little loss. then he does it. depending how much u go in the tree it will result in a harder enemy.
this is what u get tought in basic ai classes anyways :P