Results 1 to 5 of 5
Thread: Using ASCII...
- 09-10-2011, 12:19 AM #1
Member
- Join Date
- Sep 2011
- Posts
- 10
- Rep Power
- 0
Using ASCII...
I'm making a tictactoe program, but the board has to be printed out using ASCII...but well it needs to be a 3x3 array so the player can choose the row and column to place their marker...I had already printed out a board but then I thought, how am I gonna access it? And now I'm stumped..
Should look something like thisJava Code:| | --|--|-- | | --|--|-- | |Last edited by putrify; 09-10-2011 at 12:24 AM.
- 09-10-2011, 12:45 AM #2
Re: Using ASCII...
Can you explain what your problem is?how am I gonna access it?
- 09-10-2011, 12:58 AM #3
Member
- Join Date
- Sep 2011
- Posts
- 10
- Rep Power
- 0
Re: Using ASCII...
Well first I have to print out the game board, as shown above, and then prompt the player to choose row and column of where they want to place their marker. I know I need to make a new array, but how is the marker gonna show up on the board if I made it using ascii?....if that makes sense :S
- 09-10-2011, 01:31 AM #4
Re: Using ASCII...
What do you mean by "using ascii"? Do you have other character choices for the output?how is the marker gonna show up on the board if I made it using ascii
I assume you are printing on the console using System.out.print or println().
The 3x3 board is made up of many prints line by line. To show an X or O on the board, you will need to print the X or O instead of the space you are currently printing.
- 09-10-2011, 05:17 AM #5
Similar Threads
-
help - Ascii to hex and hex to ascii conversion
By rjagan in forum New To JavaReplies: 8Last Post: 06-14-2011, 12:53 PM -
Non-ASCII Characters
By AJArmstron@aol.com in forum New To JavaReplies: 6Last Post: 05-06-2010, 10:16 PM -
add ascii values together
By greg677 in forum New To JavaReplies: 4Last Post: 05-03-2010, 01:09 AM -
Another ascii question....
By akira220984 in forum New To JavaReplies: 5Last Post: 02-20-2009, 01:38 AM -
I need help with ascii characters
By Grandon in forum EclipseReplies: 17Last Post: 11-08-2008, 02:12 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks