File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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