Tic-Tac-Toe:Part 2:The code


Tic Tac Toe

This one is a draw game

The program is a 630 line code.

On any button click, it first disables the button so it can’t be clicked. Then it checks to see whether the winning criteria has been met or not. If it has been met then it display the winner. At the end, it checks whether the game has ended in a draw or not.

The code has also been uploaded on pastebin.com

The url is http://pastebin.com/GQ634xM1.


					
Advertisements

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s