Leave a Comment:
45 comments

Nice article!!
But please let me know about “Vazio” and “Cruz”.
I assume they are the names of the images, but what kind of images are they??
Regards,
Reply
Nice article!!
But please let me know about "Vazio" and "Cruz".
I assume they are the names of the images, but what kind of images are they??
Regards,
Reply
Yes,
vazio, cruz and bola these are names of images only. these all are .jpg images which you have to put in res/drawable (drawable-hdpi, drawable-mdpi and drawable-ldpi) folder.
You can put the images of u r choice to change the look of tictactoe. Don’t forget to change these names into the code.
Thanks.
Reply
Hi Sushant,
Thanks for your prompt reply..
This code has no problem in execution but, when yoiu click on the one of the rectangles(“Vazio image”). It gives the error..
Activity TicTacToe(in application TicTacToe) is not responding.

Hello sushant,
M doing a project in android named ‘Barcode Scanner’. But how to determine the cost from the barcode image captured?

Hi Sushant,
Developing this application , what about main.xml what we do in this XML, please suggest.
Thanks Sachin
Reply
When I was looking through the code in the game class, in 2 of the for loops i saw:
for (int z = j; z >= 0; z–)
shouldnt the “z-” be z++ because this produces an error?

This was an awesome code. It helped me out a ton!! Thanks Sushant! But I had the same problem and I used your attached images. What could possibly be wrong?
Reply
It doesn’t say where to make a class or anything… I’m trying to make a TicTacToe game but this isn’t really a step by step tutorial.
Reply
i’m very nebie in programing….
how about main.xml???
how the sorce code??
please help me….

This article is very simple and easy to understand. Thanks a lot for this valuable article. 🙂
Reply
Hii.. Your article looks very interesting, but apparently it have not been able to play against the computer. So I have added AI in your code, so it could play with computer. I just added some functions in Game.java here is the code : http://ideone.com/KgXvG
I think my code is not completely perfect, but I hope you are pleased. 🙂

when we click on the same cell twice, the same cell is over written… pls solve this problem soon
Reply
when we click on the same cell twice, the same cell is over written… pls solve this problem soon … pls solve dis
Reply
when we click on the same cell twice, the same cell is over written… pls solve this problem soon .. pls solve
Reply
Nice article. I also am not able to load anything. I run the code in the android emulator and the grid comes up but no images.
I also ran this on my phone and same thing.
I then created my own jpg images for bola, cruz and vazio. No luck there either.
Reply
the codes give no error, when i start the app it will run but i only see a black page. the game layout dont show..
can you help plz? i have put the images you provided in the post in the drawable folder
thanks
Reply
the codes give no error, when i start the app it will run but i only see a black page. the game layout dont show..
can you help plz? i have put the images you provided in the post in the drawable folder
thanks!
Reply

Hi please can I get comments to each of code or a tut. video explaining what each lines are for?
Reply
Hi Sushant,
This is really great article easy to follow but I am getting the same error whenever I click on the rectangles (Vazio image)
“Activity TicTacToe(in application TicTacToe) is not responding”
Reply
Hi Sushant,
This is really great article easy to follow but I am getting the same error whenever I click on the rectangles (Vazio image)
"Activity TicTacToe(in application TicTacToe) is not responding"
Reply


Hi,
The game is amazing but i got some question to ask.
Can we play against computer instead of human vs human?
Reply
Hi,
This game is amazing
I would like to know whether we can play against the computer instead of playing against human.
Appreciate it.
Reply




hey,,,,my friend gave to me tic tac toe full project. can you help me something about this project? I will share this project,,please help. I want to object X and O is limited to each object 3 pieces. so there are only X = 3 and O = 3, not more, so that the object can slide because there are 3 columns blank, can u do it???
this is my email :
yogapraditagames@gmail.com

Hi Sushant,
Is vazio the ‘x’ and cruz the ‘o’ pictures respectively?

Hi,
Can you please share the XML file for above code?? It will be more helpful.
Thank you,
regards,
Rizwan


hey which code goes where?
i am a learner trying to get into my first app so dont have much idea…i hope you would guide…:)
hoping for as soon reply…

cruz, bola cruz are the images and image type which used is .png
Reply
Could some one tell how to place these codes? do we just copy and past it to the TicTacToe.java file? can some one give step by step instructions?
Thanks
Reply
I have similar implementation here. Please comment on that. Thank you
http://nabinkhadka.hubpages.com/hub/tictactoe
Reply