dot moves through maze

This commit is contained in:
~d6 2022-01-18 00:10:43 -05:00
parent 128093cf09
commit c8fe89eba9
1 changed files with 11 additions and 11 deletions

View File

@ -376,17 +376,17 @@ RTN
|8000
( 64x40 cells = 2560 bytes
cell byte layout:
* bit 1 -> 1=open, 0=wall
* bit 2 -> 1=seen, 0=unseen
* bit 3 -> 1=start, 0=not-start
* bits 4-5 -> direction to previous link, 0=n 1=e 2=s 3=w
we use the link to support backtracking without
needing a separate stack.
)
( 64x40 cells = 2560 bytes )
( )
( cell byte layout: )
( * bit 1 -> 1=open, 0=wall )
( * bit 2 -> 1=seen, 0=unseen )
( * bit 3 -> 1=start, 0=not-start )
( * 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. )
@maze $2560
( convenience for less branching when printing hex )