-
Notifications
You must be signed in to change notification settings - Fork 5
Home
gerard edited this page Sep 12, 2010
·
6 revisions
- The first line contains the size of the matrix (width x length)
- Every line is a row of the matrix.
- 0 marks a free space. Any other character is considered a wall.
8x8
00000000
00000#00
00##0000
00##0000
00000000
0##00000
00#00000
#0000000
This is a sample output:
ibookg4:~/Develop/mortalcoil gerard$ ./mcoil tests/15.game
(5,0) LDRDRULDLULURDRU
(6,1) DRULDRDRULDLULUR
(7,0) DLULURDLULURDRU
(7,0) LDRDRULDLULURDRU
(7,2) DLULURDLDLULURDRU
<code></pre>
- (x, y) marks the initial position
- (L)eft/(D)own/®ight/(U)p marks the direction you have to move to