From c8fe89eba974e164fb06debf936e79462af849af Mon Sep 17 00:00:00 2001 From: d6 Date: Tue, 18 Jan 2022 00:10:43 -0500 Subject: [PATCH] dot moves through maze --- maze.tal | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/maze.tal b/maze.tal index 0b49d15..b3af832 100644 --- a/maze.tal +++ b/maze.tal @@ -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 )