Computer Science Canada

Tic Tac Toe

Author:  Aange10 [ Tue Dec 20, 2011 2:27 pm ]
Post subject:  Tic Tac Toe

I got to choose between BattleShip and Tic Tac Toe. I dislike BattleShip, so I chose Tic Tac Toe.

Here's my work!(:

There are five boards, and three AI modes. You may change these settings by winning one game against the AI. (By default is on 'Easy')

The Hard AI is not 'impossible'.

Author:  Aange10 [ Tue Dec 20, 2011 7:27 pm ]
Post subject:  RE:Tic Tac Toe

No takers? Dx

Author:  chipanpriest [ Wed Dec 21, 2011 12:36 pm ]
Post subject:  RE:Tic Tac Toe

I cant download it at school. can you post the code instead?

Author:  Aange10 [ Wed Dec 21, 2011 1:43 pm ]
Post subject:  RE:Tic Tac Toe

It won't work without the pictures/music =/

Author:  chipanpriest [ Wed Dec 21, 2011 4:25 pm ]
Post subject:  RE:Tic Tac Toe

13mb? holy shit

Author:  chipanpriest [ Wed Dec 21, 2011 4:30 pm ]
Post subject:  RE:Tic Tac Toe

thats a huge program and its pretty good tbh

Author:  Aange10 [ Wed Dec 21, 2011 5:09 pm ]
Post subject:  RE:Tic Tac Toe

I'm glad you like, thanks Smile. And 12mb of that is the background music, the other 1mb is just the pics.

Author:  Sur_real [ Wed Dec 21, 2011 8:02 pm ]
Post subject:  RE:Tic Tac Toe

Hey, found a bug Very Happy
http://i.imgur.com/aWja9.png

Not really sure how it happened but it was after losing a game. I pressed the continue button and immediately started with a X on the lower right position (3,3) Maybe I pressed twice really fast? small bug nonetheless.

Good program (also, is it possible to win if hard comp goes first?)

Author:  Aange10 [ Wed Dec 21, 2011 9:24 pm ]
Post subject:  RE:Tic Tac Toe

It is indeed. The AI only detects a single turn, if you use and L shape, you are able to beat the AI if it is first. The AI also has a chance to 'mess up', so that is a variable to consider aswell. Lasltly, due to a glitch (now fixed) in my program, the AI might also decide to block you, instead of winning for itself, which would also increase your chances of winning.


Due to me not really being able to understand how Turing's buttonmoved works, I can't detect a click. (Well, I could with a timer of sorts, but I didn't in this program.) Rather, I detect the state. So if you hold down the mouse key, it is the same as clicking. You probably had the mouse button held down (There is a 1.5 second delay in switching menus) when the board appeared.


Glad you enjoy the program.


: