Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tic Tac Toe - Checking for a winner

 
Frederik Bolding
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic