Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Tic Tac Toe
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Aange10




PostPosted: 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'.



T3.rar
 Description:

Download
 Filename:  T3.rar
 Filesize:  13.2 MB
 Downloaded:  3405 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Aange10




PostPosted: Tue Dec 20, 2011 7:27 pm   Post subject: RE:Tic Tac Toe

No takers? Dx
chipanpriest




PostPosted: 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?
Aange10




PostPosted: Wed Dec 21, 2011 1:43 pm   Post subject: RE:Tic Tac Toe

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




PostPosted: Wed Dec 21, 2011 4:25 pm   Post subject: RE:Tic Tac Toe

13mb? holy shit
chipanpriest




PostPosted: Wed Dec 21, 2011 4:30 pm   Post subject: RE:Tic Tac Toe

thats a huge program and its pretty good tbh
Aange10




PostPosted: 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.
Sur_real




PostPosted: 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?)
Sponsor
Sponsor
Sponsor
sponsor
Aange10




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 9 Posts ]
Jump to:   


Style:  
Search: