Hey guys,

Yes this is related to my single player TTT game that still tortures me. OK - I have 9 labels in a control array like this:

0 1 2
3 4 5
6 7 8

I already have the code in place so that whenever you click on a label, it checks to see if it is available or not. What I need now is a loop or 3 to determine what move the computer is going to make next.

I already have the basics planned out - there are 3 difficulty levels:

Easy -
1. AI trys for the center square first - lblMove(4) becuase it is in 4 of the 8 possible Win lines (012, 345, 678, 036, 147, 258, 048, & 246).

2. Then it randomly tries for on of the 4 corners (0, 2, 6, 8) - they have 3 possible win lines.

3. Finally it randomly chooses one of the four remaing squares (1, 3, 5, 7).

Medium -
AI looks for one of the 24 possible eminent human player wins along the 8 win lines (12x, 69x, 57x, etc) and attempts to block it. If there are no eminent human wins, the AI moves on to the Easy level moves.

Hard -
AI looks for one of the 24 possible eminent Computer player wins along the 8 win lines and attempts to win. If there are no eminent computer wins, the AI moves on to the Medium level moves.

I have attached my current form. The game is basically complete except for the AI moves and the wincheck loop. I already know how to approach that, I just need to get this other part in first.

please please PLEASE help me if you think you can!

Thank you!!!

-Justin