Jan 27, 2010 at 2:25pm UTC
I know this is just insanely amateur, but my computer programming class wrote an unbeatable tic tac toe program for its final project, and it works fine.
My question is how to make the lines for the board.
The code's too long to post, but can anyone help?
Last edited on Jan 27, 2010 at 2:26pm UTC
Jan 27, 2010 at 2:40pm UTC
If it isn't graphically you can use this:
1|4|7
-+-+-
2|5|8
-+-+-
3|6|9
I know it looks lame, but there aren't much possibilities (except if your using graphics).
Last edited on Jan 27, 2010 at 2:41pm UTC
Jan 27, 2010 at 3:05pm UTC
like this?
╔═══╦═══╦═══╗
║ x ║ o ║ o ║
╠═══╬═══╬═══╣
║ x ║ o ║ o ║
╠═══╬═══╬═══╣
║ x ║ o ║ o ║
╚═══╩═══╩═══╝
Last edited on Jan 27, 2010 at 3:09pm UTC
Jan 27, 2010 at 4:30pm UTC
@blackcoder41:
You realize that 'O' is cheating right?
Jan 27, 2010 at 4:32pm UTC
whatever.. it's just a design..