The text of this article is not in this database — only its details are. Read it on the old site: Creating Tic Tac Toe - Step by Step
31 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Creating Tic Tac Toe - Step by Step
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Cseh GergőPosted Apr 21, 2018, 6:00 AM
I have a problem,it only puts an x or an o in button 1 but it doesnt puts anything in the other ones
GURINDER KAURPosted Apr 27, 2017, 2:26 PM
Can you Please tell the code for each button and labels?
Craig KellyPosted Oct 14, 2016, 4:01 PM
Wow dude that is the most untidy code Ive seen . well done for going with it and making it work
Venus ♛Posted Oct 13, 2016, 6:54 PM
Hi where can I download the source code?
kalu singh raoPosted Jul 19, 2016, 2:08 AM
Nice...
Sthitaprajnya Debasis NayakPosted Apr 5, 2016, 7:30 AM
Super !
Asfend YarPosted Feb 29, 2016, 1:54 PM
good
jerome gillsPosted Nov 12, 2015, 1:47 PM
now say you want a simulation game of 2 AI players instead of 2 human players how would you accomplish that.
Anoop Kumar SharmaPosted Nov 7, 2015, 10:01 AM
Thanks Ryan Mustafa..!!
Ryan MustafaPosted Nov 6, 2015, 11:54 PM
Nice!! Nice!! Nice!!
Anoop Kumar SharmaPosted Nov 5, 2015, 9:27 AM
Thanks Humayun Kabir Mamun..!!
Humayun Kabir MamunPosted Nov 4, 2015, 11:13 PM
Nice...
MD SHAHWAZ AKHTERPosted Sep 30, 2015, 8:34 AM
Good sir.....jee
Chiheb ChebbiPosted Jun 29, 2015, 10:20 AM
great article
James PyperPosted Apr 4, 2015, 11:44 PM
I have tried to implement your code, but on the first click of every new game I automatically get a message saying player two wins? I cant see how this occurs... any help would be greatly appreciated. Other than that, awesome tutorial!! :) Also I fixed the tie/draw bug, you should have an if statement that includes all buttons not equal to "", then output a messagebox saying draw, and finally call an instance of clear game!
Anoop Kumar SharmaPosted Mar 28, 2015, 1:12 AM
Thanks Gowtham Rajamanickam..!!
Gowtham RajamanickamPosted Mar 27, 2015, 2:37 PM
good...
badal kumarPosted Mar 9, 2015, 6:48 AM
what if draw occurs, any logic for that!
Vithal WadjePosted Sep 26, 2014, 2:00 PM
super keep it up
Felix AryeePosted Aug 6, 2014, 8:31 AM
Appreciate, your help in the design.. but is it possible to show a text saying " Tie " or " Draw " , when both players are not able to win
Hayot IsmatovPosted Jul 4, 2014, 8:31 AM
awesome
marcus nnamdiPosted Apr 25, 2014, 4:48 AM
how do u mean, the above coding is for the first line
Former memberPosted Apr 9, 2014, 5:25 AM
lol why u do dis buk lau
Abdu HamodePosted Jan 11, 2014, 4:36 PM
Thanks for you