wood burning stoves*
The moose likes Programming Diversions and the fly likes Tic Tac Toe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Tic Tac Toe" Watch "Tic Tac Toe" New topic
Author

Tic Tac Toe

HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
In this special Tic Tac Toe, three in a row loses!
You are playing the O's and it is your turn.
What move can you make to force your opponent to end up with three X's in a row, so he loses?


regards
[ September 09, 2003: Message edited by: HS Thomas ]
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
It looks like putting the 'O' in either bottom corner will work.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Looks like bottom left.
Middle blocks the XXX
Either of the rights, if X then goes bottom left, O has to block the XXX or end up with OOO
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Yeah, it looks like Michael is right. I wasn't paying cloes enough attention.
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Shall we try and see:


Your move. Sorry don't know what I was thinking. That is the answer.
regards
[ September 10, 2003: Message edited by: HS Thomas ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tic Tac Toe
 
Similar Threads
snakes and ladders game
while loop and try-catch
oxo game
Html tag
tic tac toe problem