IntelliJ Java IDE
The moose likes Programming Diversions and the fly likes Tic Tac Toe Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Reply 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.


Jason's Blog
Michael Dunn
Rancher

Joined: Jun 09, 2003
Posts: 4040
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 ]
 
 
subject: Tic Tac Toe
 
Threads others viewed
while loop and try-catch
tic tac toe problem
Html tag
oxo game
snakes and ladders game
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture