This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes Tic Tac Toe - Checking for a winner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Tic Tac Toe - Checking for a winner" Watch "Tic Tac Toe - Checking for a winner" New topic
Author

Tic Tac Toe - Checking for a winner

Frederik Bolding
Greenhorn

Joined: Jul 22, 2012
Posts: 5
Hello!

I am currently developing a little Tic Tac Toe game in Java (For Android)
And i am stuck, i want to "CheckForWinner();" but i can't really figure out how...

I am thinking something like: "foreach(Field in Fields)" and then check which has value of 1 and which has a value of 2 :-)


Full game sourcecode:

Pastebin: Clicky

Thanks in advance!

- Frederik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tic Tac Toe - Checking for a winner
 
Similar Threads
How to start new activity when click on a listview and pause the process that is being in background
Check if an application is installed
Android CustomListView getView() getting nullpointerexception
street view & satilite view is not working
android gridview with fling + flipper