--- title: "Shifting Maze" id: 77931 type: "computer_media" slug: "shifting-maze" url: "http://localhost/computer_media/shifting-maze/" markdown_url: "http://localhost/computer_media/shifting-maze.md" published_at: "2026-11-19T15:04:16+00:00" modified_at: "2026-11-19T15:04:16+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/shifting-maze-1.png" excerpt: "A six-line 1K ZX81 maze printer; two more lines turn it into a maze that keeps redrawing itself." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "John Burns" slug: "john-burns" taxonomy: "indiv" url: "http://localhost/indiv/john-burns/" genre: - name: "Graphics" slug: "graphics" taxonomy: "genre" url: "http://localhost/type/graphics/" media_type: "Program" programmers: - name: "John Burns" slug: "john-burns" taxonomy: "indiv" url: "http://localhost/indiv/john-burns/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Shifting%20Maze%20%281982%29%28Burns%2C%20John%29%28TS1000%29%28US%29%28Program%29.zip" mediadate: "1982" images: - url: "http://localhost/wp-content/uploads/2026/11/shifting-maze-1.png" - url: "http://localhost/wp-content/uploads/2026/11/shifting-maze-2.png" article_media: - id: 19299 title: "Shifting Maze" type: "article" url: "http://localhost/article/shifting-maze/" media_type_tags: "Graphics" license: false --- # Shifting Maze Prints a 20 by 20 maze of diagonal graphics blocks, picking one of two characters at random for each square. Run it in SLOW mode for the best effect. With the two extra lines (5 PRINT AT 0,0; and 70 GOTO 5) the program keeps printing new mazes over the old one, so the maze shifts continuously. Press BREAK to stop. The download has the shifting version and the plain maze. Published in Syntax August 1982 ([Shifting Maze](https://timexsinclair.com/article/shifting-maze/)). ## Source Code ``` Maze program: 10 FOR R=0 TO 19 20 FOR C=0 TO 19 30 PRINT CHR$(INT (RND+.5)*2+3); 40 NEXT C 50 PRINT 60 NEXT R Add for a shifting maze: 5 PRINT AT 0,0; 70 GOTO 5 ```