2
Topic: (Tic Tac Toe Help)
Hi,
I need help with creating a computer opponent that will make a winning move when there is a chance to win. I already have a method to do this, but the computer takes all the empty slots.
I just want someone to tell me how to limit the computer move to 1, then check if the move is a win; if its not, check the next empty slot.
Note: The computer moves with the left mouse click. You have to click on an unoccupied slot to allow the computer to make the move.
You can download the source + necessary files in the following link.
http://askavenger.250free.com/downloads/GameProgramming/tictac.rar