dot moves through maze
This commit is contained in:
parent
128093cf09
commit
c8fe89eba9
22
maze.tal
22
maze.tal
|
@ -376,17 +376,17 @@ RTN
|
||||||
|
|
||||||
|8000
|
|8000
|
||||||
|
|
||||||
( 64x40 cells = 2560 bytes
|
( 64x40 cells = 2560 bytes )
|
||||||
|
( )
|
||||||
cell byte layout:
|
( cell byte layout: )
|
||||||
* bit 1 -> 1=open, 0=wall
|
( * bit 1 -> 1=open, 0=wall )
|
||||||
* bit 2 -> 1=seen, 0=unseen
|
( * bit 2 -> 1=seen, 0=unseen )
|
||||||
* bit 3 -> 1=start, 0=not-start
|
( * bit 3 -> 1=start, 0=not-start )
|
||||||
* bits 4-5 -> direction to previous link, 0=n 1=e 2=s 3=w
|
( * bits 4-5 -> direction to previous link, 0=n 1=e 2=s 3=w )
|
||||||
|
( * bit 6 -> 1=visited 0=unvisited )
|
||||||
we use the link to support backtracking without
|
( )
|
||||||
needing a separate stack.
|
( we use the link to support backtracking without )
|
||||||
)
|
( needing a separate stack. )
|
||||||
@maze $2560
|
@maze $2560
|
||||||
|
|
||||||
( convenience for less branching when printing hex )
|
( convenience for less branching when printing hex )
|
||||||
|
|
Loading…
Reference in New Issue