# Tick Tack Toe

I am making a Tick Tack Toe game and I would like to know how I would go about thinking about that. I am trying to program the game so the computer actually knows what it is doing rather than just having it put a bunch of random "O's" all the place. If anyone has a good suggestion of how I should think about this it would be greatly appreaciated
James
James98765
[email protected]
http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
«1

• Well without laying down any code here I would say if you want your program to take an intelligent approach at playing tic tac toe...

You have 9 boxes to work with if I am thinking the right game,

So make a Counter or something like
cMove = 0, Or you can do a For/Next Loop 500 times
So first go to box 1 and

Do
If box1 = " " then
If box2 = " " or box2 = "O" then
If box3 = " " or Box3 = "O" then
If randomnumber > whatever then
Box1 = "O"
Exit Loop
End If
End If
End If
End If
If box1 = " " then
If box4 = " " or box2 = "O" then
If box7 = " " or Box3 = "O" then
If randomnumber > whatever then
Box1 = "O"
Exit Loop
End If
End If
End If
End If
If box1 = " " then
If box5 = " " or box2 = "O" then
If box9 = " " or Box3 = "O" then
If randomnumber > whatever then
Box1 = "O"
Exit Loop
End If
End If
End If
End If
If box2 = " " then
If box1 = " " or box2 = "O" then
If box3 = " " or Box3 = "O" then
If randomnumber > whatever then
Box2 = "O"
Exit Loop
End If
End If
End If
End If
If box2 = " " then
If box5 = " " or box2 = "O" then
If box8 = " " or Box3 = "O" then
If randomnumber > whatever then
Box2 = "O"
Exit Loop
End If
End If
End If
End If
If box3 = " " then
If box2 = " " or box2 = "O" then
If box1 = " " or Box3 = "O" then
If randomnumber > whatever then
Box3 = "O"
Exit Loop
End If
End If
End If
End If
If box3 = " " then
If box5 = " " or box2 = "O" then
If box7 = " " or Box3 = "O" then
If randomnumber > whatever then
Box3 = "O"
Exit Loop
End If
End If
End If
End If
If box3 = " " then
If box6 = " " or box2 = "O" then
If box9 = " " or Box3 = "O" then
If randomnumber > whatever then
Box3 = "O"
Exit Loop
End If
End If
End If
End If
If box4 = " " then
If box1 = " " or box2 = "O" then
If box7 = " " or Box3 = "O" then
If randomnumber > whatever then
Box4 = "O"
Exit Loop
End If
End If
End If
End If
If box4 = " " then
If box5 = " " or box2 = "O" then
If box6 = " " or Box3 = "O" then
If randomnumber > whatever then
Box4 = "O"
Exit Loop
End If
End If
End If
End If
If box5 = " " then
If box4 = " " or box2 = "O" then
If box6 = " " or Box3 = "O" then
If randomnumber > whatever then
Box5 = "O"
Exit Loop
End If
End If
End If
End If
If box5 = " " then
If box2 = " " or box2 = "O" then
If box8 = " " or Box3 = "O" then
If randomnumber > whatever then
Box5 = "O"
Exit Loop
End If
End If
End If
End If
If box6 = " " then
If box5 = " " or box2 = "O" then
If box4 = " " or Box3 = "O" then
If randomnumber > whatever then
Box6 = "O"
Exit Loop
End If
End If
End If
End If
If box6 = " " then
If box3 = " " or box2 = "O" then
If box9 = " " or Box3 = "O" then
If randomnumber > whatever then
Box6 = "O"
Exit Loop
End If
End If
End If
End If
If box7 = " " then
If box8 = " " or box2 = "O" then
If box9 = " " or Box3 = "O" then
If randomnumber > whatever then
Box7 = "O"
Exit Loop
End If
End If
End If
End If
If box7 = " " then
If box4 = " " or box2 = "O" then
If box1 = " " or Box3 = "O" then
If randomnumber > whatever then
Box7 = "O"
Exit Loop
End If
End If
End If
End If
If box8 = " " then
If box7 = " " or box2 = "O" then
If box9 = " " or Box3 = "O" then
If randomnumber > whatever then
Box8 = "O"
Exit Loop
End If
End If
End If
End If
If box8 = " " then
If box5 = " " or box2 = "O" then
If box2 = " " or Box3 = "O" then
If randomnumber > whatever then
Box8 = "O"
Exit Loop
End If
End If
End If
End If
If box9 = " " then
If box8 = " " or box2 = "O" then
If box7 = " " or Box3 = "O" then
If randomnumber > whatever then
Box9 = "O"
Exit Loop
End If
End If
End If
End If
If box9 = " " then
If box6 = " " or box2 = "O" then
If box3 = " " or Box3 = "O" then
If randomnumber > whatever then
Box9 = "O"
Exit Loop
End If
End If
End If
End If
cMove = c If box1 = " " then
If box2 = " " or box2 = "O" then
If box3 = " " or Box3 = "O" then
If randomnumber > whatever then
Box1 = "O"
MovePlayed = True
Exit Loop
End If
End If
End If
End If
cMove = cMove + 1
If cMove > 500 then
If box1 = " " then
box1 = "O"
Exit Loop
end If
If box2 = " " then
box2 = "O"
Exit Loop
end If
If box3 = " " then
box3 = "O"
Exit Loop
end If
If box4 = " " then
box4 = "O"
Exit Loop
end If
If box5 = " " then
box5 = "O"
Exit Loop
end If
If box6 = " " then
box6 = "O"
Exit Loop
end If
If box7 = " " then
box7 = "O"
Exit Loop
end If
If box8 = " " then
box8 = "O"
Exit Loop
end If
If box9 = " " then
box9 = "O"
Exit Loop
end If
Print ("Cat's Game")
End
End If
Loop

All of these if/then statements can be combined alot more, but to save horizontal space I split them up. Basicaly you would replace the box# with whatever control name you are using and go through them one by one. You can also assign your boxes to an array of data or something and then you could go through the data with a loop and would cut down on your code by alot. It just depends on your style I guess. But what this loop here does is goes through each box and sees if there is a possible solution for that box, if so then if a random number is greater then whatever number you set then it will place a marker there and exit the loop. If no solution is found after 500 passes then it places a marker in the first open box. Otherwise it says "Cats Game"

Did that help? or is this too out of the box for ya :P

><//~Psightoplasm`~

• : Well without laying down any code here I would say if you want your program to take an intelligent approach at playing tic tac toe...
:
: You have 9 boxes to work with if I am thinking the right game,
:
:
: So make a Counter or something like
: cMove = 0, Or you can do a For/Next Loop 500 times
: So first go to box 1 and
:
: Do
: If box1 = " " then
: If box2 = " " or box2 = "O" then
: If box3 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box1 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box1 = " " then
: If box4 = " " or box2 = "O" then
: If box7 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box1 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box1 = " " then
: If box5 = " " or box2 = "O" then
: If box9 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box1 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box2 = " " then
: If box1 = " " or box2 = "O" then
: If box3 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box2 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box2 = " " then
: If box5 = " " or box2 = "O" then
: If box8 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box2 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box3 = " " then
: If box2 = " " or box2 = "O" then
: If box1 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box3 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box3 = " " then
: If box5 = " " or box2 = "O" then
: If box7 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box3 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box3 = " " then
: If box6 = " " or box2 = "O" then
: If box9 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box3 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box4 = " " then
: If box1 = " " or box2 = "O" then
: If box7 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box4 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box4 = " " then
: If box5 = " " or box2 = "O" then
: If box6 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box4 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box5 = " " then
: If box4 = " " or box2 = "O" then
: If box6 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box5 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box5 = " " then
: If box2 = " " or box2 = "O" then
: If box8 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box5 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box6 = " " then
: If box5 = " " or box2 = "O" then
: If box4 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box6 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box6 = " " then
: If box3 = " " or box2 = "O" then
: If box9 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box6 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box7 = " " then
: If box8 = " " or box2 = "O" then
: If box9 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box7 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box7 = " " then
: If box4 = " " or box2 = "O" then
: If box1 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box7 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box8 = " " then
: If box7 = " " or box2 = "O" then
: If box9 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box8 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box8 = " " then
: If box5 = " " or box2 = "O" then
: If box2 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box8 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box9 = " " then
: If box8 = " " or box2 = "O" then
: If box7 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box9 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box9 = " " then
: If box6 = " " or box2 = "O" then
: If box3 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box9 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: cMove = c If box1 = " " then
: If box2 = " " or box2 = "O" then
: If box3 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box1 = "O"
: MovePlayed = True
: Exit Loop
: End If
: End If
: End If
: End If
: cMove = cMove + 1
: If cMove > 500 then
: If box1 = " " then
: box1 = "O"
: Exit Loop
: end If
: If box2 = " " then
: box2 = "O"
: Exit Loop
: end If
: If box3 = " " then
: box3 = "O"
: Exit Loop
: end If
: If box4 = " " then
: box4 = "O"
: Exit Loop
: end If
: If box5 = " " then
: box5 = "O"
: Exit Loop
: end If
: If box6 = " " then
: box6 = "O"
: Exit Loop
: end If
: If box7 = " " then
: box7 = "O"
: Exit Loop
: end If
: If box8 = " " then
: box8 = "O"
: Exit Loop
: end If
: If box9 = " " then
: box9 = "O"
: Exit Loop
: end If
: Print ("Cat's Game")
: End
: End If
: Loop
:
:
: All of these if/then statements can be combined alot more, but to save horizontal space I split them up. Basicaly you would replace the box# with whatever control name you are using and go through them one by one. You can also assign your boxes to an array of data or something and then you could go through the data with a loop and would cut down on your code by alot. It just depends on your style I guess. But what this loop here does is goes through each box and sees if there is a possible solution for that box, if so then if a random number is greater then whatever number you set then it will place a marker there and exit the loop. If no solution is found after 500 passes then it places a marker in the first open box. Otherwise it says "Cats Game"
:
:
: Did that help? or is this too out of the box for ya :P
:
: ><//~Psightoplasm`~
:
: Thanks that helped a lot I have been able to base my game on that Thanks again

James
James98765
[email protected]
http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=

• : Well without laying down any code here I would say if you want your program to take an intelligent approach at playing tic tac toe...
:
: You have 9 boxes to work with if I am thinking the right game,
:
:
: So make a Counter or something like
: cMove = 0, Or you can do a For/Next Loop 500 times
: So first go to box 1 and
:
: Do
: If box1 = " " then
: If box2 = " " or box2 = "O" then
: If box3 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box1 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box1 = " " then
: If box4 = " " or box2 = "O" then
: If box7 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box1 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box1 = " " then
: If box5 = " " or box2 = "O" then
: If box9 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box1 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box2 = " " then
: If box1 = " " or box2 = "O" then
: If box3 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box2 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box2 = " " then
: If box5 = " " or box2 = "O" then
: If box8 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box2 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box3 = " " then
: If box2 = " " or box2 = "O" then
: If box1 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box3 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box3 = " " then
: If box5 = " " or box2 = "O" then
: If box7 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box3 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box3 = " " then
: If box6 = " " or box2 = "O" then
: If box9 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box3 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box4 = " " then
: If box1 = " " or box2 = "O" then
: If box7 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box4 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box4 = " " then
: If box5 = " " or box2 = "O" then
: If box6 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box4 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box5 = " " then
: If box4 = " " or box2 = "O" then
: If box6 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box5 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box5 = " " then
: If box2 = " " or box2 = "O" then
: If box8 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box5 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box6 = " " then
: If box5 = " " or box2 = "O" then
: If box4 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box6 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box6 = " " then
: If box3 = " " or box2 = "O" then
: If box9 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box6 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box7 = " " then
: If box8 = " " or box2 = "O" then
: If box9 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box7 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box7 = " " then
: If box4 = " " or box2 = "O" then
: If box1 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box7 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box8 = " " then
: If box7 = " " or box2 = "O" then
: If box9 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box8 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box8 = " " then
: If box5 = " " or box2 = "O" then
: If box2 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box8 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box9 = " " then
: If box8 = " " or box2 = "O" then
: If box7 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box9 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: If box9 = " " then
: If box6 = " " or box2 = "O" then
: If box3 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box9 = "O"
: Exit Loop
: End If
: End If
: End If
: End If
: cMove = c If box1 = " " then
: If box2 = " " or box2 = "O" then
: If box3 = " " or Box3 = "O" then
: If randomnumber > whatever then
: Box1 = "O"
: MovePlayed = True
: Exit Loop
: End If
: End If
: End If
: End If
: cMove = cMove + 1
: If cMove > 500 then
: If box1 = " " then
: box1 = "O"
: Exit Loop
: end If
: If box2 = " " then
: box2 = "O"
: Exit Loop
: end If
: If box3 = " " then
: box3 = "O"
: Exit Loop
: end If
: If box4 = " " then
: box4 = "O"
: Exit Loop
: end If
: If box5 = " " then
: box5 = "O"
: Exit Loop
: end If
: If box6 = " " then
: box6 = "O"
: Exit Loop
: end If
: If box7 = " " then
: box7 = "O"
: Exit Loop
: end If
: If box8 = " " then
: box8 = "O"
: Exit Loop
: end If
: If box9 = " " then
: box9 = "O"
: Exit Loop
: end If
: Print ("Cat's Game")
: End
: End If
: Loop
:
:
: All of these if/then statements can be combined alot more, but to save horizontal space I split them up. Basicaly you would replace the box# with whatever control name you are using and go through them one by one. You can also assign your boxes to an array of data or something and then you could go through the data with a loop and would cut down on your code by alot. It just depends on your style I guess. But what this loop here does is goes through each box and sees if there is a possible solution for that box, if so then if a random number is greater then whatever number you set then it will place a marker there and exit the loop. If no solution is found after 500 passes then it places a marker in the first open box. Otherwise it says "Cats Game"
:
:
: Did that help? or is this too out of the box for ya :P
:
: ><//~Psightoplasm`~
:
: I am having some problems with the code that I am doing. The first one is the problem with the random number:

[Code]: If randomnumber > whatever then[/Code]

Also,

[Code]Exit Loop[/Code]

Also,

[Code]cMove[/Code]

Also,

[Code]MovePlayed[/Code]

Also,

[Code]Exit Loop[/Code]

That's it well thanks for the help and I would appreciate it if you have futher advice
James
James98765
[email protected]
http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=

• : I am making a Tick Tack Toe game and I would like to know how I would go about thinking about that. I am trying to program the game so the computer actually knows what it is doing rather than just having it put a bunch of random "O's" all the place. If anyone has a good suggestion of how I should think about this it would be greatly appreaciated
: James
: James98765
: [email protected]
: http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
: http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
:

There is an algorithm called "minimax searching" which is used for games like tic tac toe and chess.

http://www.vbdotnetheaven.com/Code/Jun2003/2062.asp
• I sent you my version of Tic-Tac-Toe when you first put up this post - Did you receive it? If not, I put it on this site (It might not be up yet... But it should be (soon)) so you can download it. It has an AI so it should help you. If you did dload it, did it help?

Relman
• : I sent you my version of Tic-Tac-Toe when you first put up this post - Did you receive it? If not, I put it on this site (It might not be up yet... But it should be (soon)) so you can download it. It has an AI so it should help you. If you did dload it, did it help?
:
: Relman
:
I am also trying to create a Tic-Tac-Toe game for School. I was wondering if you could help me by sending me that version of Tic-Tac-Toe so I can see where I am making my mistakes. Thanks, Brian
• : I sent you my version of Tic-Tac-Toe when you first put up this post - Did you receive it? If not, I put it on this site (It might not be up yet... But it should be (soon)) so you can download it. It has an AI so it should help you. If you did dload it, did it help?
:
: Relman
: Thanks it did help

James
James98765
[email protected]
http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=

• : : I am making a Tick Tack Toe game and I would like to know how I would go about thinking about that. I am trying to program the game so the computer actually knows what it is doing rather than just having it put a bunch of random "O's" all the place. If anyone has a good suggestion of how I should think about this it would be greatly appreaciated
: : James
: : James98765
: : [email protected]
: : http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
: : http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
: :

: There is an algorithm called "minimax searching" which is used for games like tic tac toe and chess.
:
:
: http://www.vbdotnetheaven.com/Code/Jun2003/2062.asp
: : Thanks it did help

James
James98765
[email protected]
http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=

• With all of this tictactoe talk, I made a simple one. It's a little messy because I was tinkering with the decision making in it, and I didn't use the minimax method, but that sounds like probably the best way to do it...

Never the less if you want a copy of it, it is mostly just alot of if, then statements telling it where the best place to put it's marker in every situation. It uses no API's, nothing fancy, just hard core VB programming. I've still found a few ways to trick it that I couldn't figure out how to stop. If you want it, send me an E-Mail to [email protected] This is my junk E-Mail address, so be sure to put "Programmers Heaven TicTacToe code" or something like that in the subject, or something that will catch my eye when I am deleting.

><//~Psightoplasm`~

• Yea I made the game too. Was realy fun. Still improveing the game. I to just have a 2 player game. I don't have the computer playing against you. Still don't understand how to be able to get the computer to play.
Thanks
Rustbuckets4

: With all of this tictactoe talk, I made a simple one. It's a little messy because I was tinkering with the decision making in it, and I didn't use the minimax method, but that sounds like probably the best way to do it...
:
: Never the less if you want a copy of it, it is mostly just alot of if, then statements telling it where the best place to put it's marker in every situation. It uses no API's, nothing fancy, just hard core VB programming. I've still found a few ways to trick it that I couldn't figure out how to stop. If you want it, send me an E-Mail to [email protected] This is my junk E-Mail address, so be sure to put "Programmers Heaven TicTacToe code" or something like that in the subject, or something that will catch my eye when I am deleting.
:
: ><//~Psightoplasm`~
:
:

• : : I sent you my version of Tic-Tac-Toe when you first put up this post - Did you receive it? If not, I put it on this site (It might not be up yet... But it should be (soon)) so you can download it. It has an AI so it should help you. If you did dload it, did it help?
: :
: : Relman
: :
: I am also trying to create a Tic-Tac-Toe game for School. I was wondering if you could help me by sending me that version of Tic-Tac-Toe so I can see where I am making my mistakes. Thanks, Brian
:

Relman
• [b][red]This message was edited by iwilld0it at 2004-1-21 5:39:41[/red][/b][hr]
: : : I sent you my version of Tic-Tac-Toe when you first put up this post - Did you receive it? If not, I put it on this site (It might not be up yet... But it should be (soon)) so you can download it. It has an AI so it should help you. If you did dload it, did it help?
: : :
: : : Relman
: : :
: : I am also trying to create a Tic-Tac-Toe game for School. I was wondering if you could help me by sending me that version of Tic-Tac-Toe so I can see where I am making my mistakes. Thanks, Brian
: :
:
: Sorry that I took so long to reply, I've been away and didn't have access to email. You can get my Tic-Tac-Toe from Programmers heaven at: http://www.programmersheaven.com/search/Download.asp?FileID=31060
:
: Relman
:
It says file is unavailable.

• : [b][red]This message was edited by iwilld0it at 2004-1-21 5:39:41[/red][/b][hr]
: : : : I sent you my version of Tic-Tac-Toe when you first put up this post - Did you receive it? If not, I put it on this site (It might not be up yet... But it should be (soon)) so you can download it. It has an AI so it should help you. If you did dload it, did it help?
: : : :
: : : : Relman
: : : :
: : : I am also trying to create a Tic-Tac-Toe game for School. I was wondering if you could help me by sending me that version of Tic-Tac-Toe so I can see where I am making my mistakes. Thanks, Brian
: : :
: :
: : Sorry that I took so long to reply, I've been away and didn't have access to email. You can get my Tic-Tac-Toe from Programmers heaven at: http://www.programmersheaven.com/search/Download.asp?FileID=31060
: :
: : Relman
: :
: It says file is unavailable.
:

It is because immediately after posting that message, I updated it with my latest version of it so you may have to wait a day or two, but it will be up soon.

It took about a week before it got on.

Relman
• : I am making a Tick Tack Toe game and I would like to know how I would go about thinking about that. I am trying to program the game so the computer actually knows what it is doing rather than just having it put a bunch of random "O's" all the place. If anyone has a good suggestion of how I should think about this it would be greatly appreaciated
: James
: James98765
: [email protected]
: http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
: http://www.programmersheaven.com/c/msgboard/wwwboard.asp?Board=935&Setting=
:
I have written a tic tac toe game with 4 different difficulty settings, from REALLY easy to IMPoSSIBLE TO BEAT. If you'd like the scource, email me at [email protected]