Results 1 to 1 of 1
Thread: Read Text And Matrix
- 03-24-2012, 06:16 AM #1
Member
- Join Date
- Feb 2012
- Location
- Canada
- Posts
- 2
- Rep Power
- 0
Read Text And Matrix
I have some problem with my homework.
1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 0 1 1 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 0 1 1 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 X 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1
Our mascot in the maze wants to be rescued. It finds the way randomly and when our mascot is on the dead-end street, it can’t get rid of there; therefore, you must help it by pushing “enter” button and supply to go back as a step.
Read the maze area from a *.txt file and don’t use “Enigma” extension.
Write each action with a message step by step. For Example:
on (8,1)
on (7,1)
on (6,1)
on (5,1)
on (4,1)
it prefers to go right
on (4,2)
on (4,3)
it prefers to go down
on (5,3)
on (6,3)
on (7,3)
on (8,3)
help me by pushing “enter” button until I say “enough”, please :(
on (7,3)
on (6,3)
on (5,3)
on (4,3)
enough, thanks :)
I make with stack class and matrix. But I don't know reading file in java. And what do I write in text file?
Similar Threads
-
read text from .pdf
By seghri in forum Java AppletsReplies: 0Last Post: 05-08-2011, 03:05 PM -
How to read DatePicker Text box value in jsf?
By kishan in forum JavaServer Faces (JSF)Replies: 1Last Post: 05-12-2010, 04:23 PM -
Can't read from a text file
By kevin8160 in forum New To JavaReplies: 2Last Post: 02-07-2010, 06:45 PM -
Read from a text file?
By aaronfsimons in forum New To JavaReplies: 3Last Post: 05-01-2009, 04:42 AM -
read from text file
By rayda in forum New To JavaReplies: 5Last Post: 04-10-2009, 03:51 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks