--- title: "Number Nine" id: 79573 type: "computer_media" slug: "number-nine" url: "http://localhost/computer_media/number-nine/" markdown_url: "http://localhost/computer_media/number-nine.md" published_at: "2026-11-22T19:36:03+00:00" modified_at: "2026-11-22T19:36:03+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/number-nine-1.png" excerpt: "A 1K game of collecting the digits 0 to 9 in order without crossing your trail." 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: "Jon Passler" slug: "jon-passler" taxonomy: "indiv" url: "http://localhost/indiv/jon-passler/" genre: - name: "Game" slug: "game" taxonomy: "genre" url: "http://localhost/type/game/" media_type: "Program" programmers: - name: "Jon Passler" slug: "jon-passler" taxonomy: "indiv" url: "http://localhost/indiv/jon-passler/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Number%20Nine%20%281982%29%28Passler%2C%20Jon%29%28TS1000%29%28Program%29.zip" mediadate: "1982" images: - url: "http://localhost/wp-content/uploads/2026/11/number-nine-1.png" - url: "http://localhost/wp-content/uploads/2026/11/number-nine-2.png" - url: "http://localhost/wp-content/uploads/2026/11/number-nine-3.png" - url: "http://localhost/wp-content/uploads/2026/11/number-nine-4.png" article_media: - id: 43615 title: "Just for Fun" type: "article" url: "http://localhost/article/just-for-fun-13/" - id: 24568 title: "Just For fun" type: "article" url: "http://localhost/article/just-for-fun-11/" media_type_tags: "Game" license: false --- # Number Nine A game for 1K: run over the digits 0 to 9 in order without crossing your own trail or leaving the field. A W marks a win. I, J, K and M move. The variables the article has you enter by hand are saved with the program, so start with GOTO 1, not RUN or CLEAR. If one digit was printed over another, start again, as the article says. It needs 1K to 3K, because it counts on a collapsed display file: with 4K or more the first move down loses. Grey prints as dark as solid in LISTing, so the graphics in lines 1 and 31 follow the article’s own graphics notes. Reprinted from [SYNC, November/December 1982](https://timexsinclair.com/article/just-for-fun-11/). Published in LISTing January 1989 ([Just for Fun](https://timexsinclair.com/article/just-for-fun-13/)). ## Source Code ``` 1 REM \.'=Y\!::=NOT $4 UNPLOT YV\ .NOT ( PAUSE TAN 3 RAND USR R 5 FOR A=B TO C 7 PRINT AT RND*S+O,RND*S+O;CHR$ A 9 NEXT A 11 LET X=NOT PI 13 LET Y=X 15 FOR A=B TO C 17 PRINT AT X,Y;CHR$ A 19 LET I$=INKEY$ 21 PRINT AT X,Y;"\::" 23 IF I$<"I" OR I$>"M" THEN GOTO S+O 25 LET X=X+(I$="M")-(I$="I") 27 LET Y=Y+(I$="K")-(I$="J") 29 LET L=K+X*21+Y 31 IF PEEK L=CODE "\!:" THEN GOTO S+O 33 IF PEEK L=A THEN NEXT A 35 IF A>C THEN POKE L,CODE "W" Entered in immediate mode before GOTO 1 LET R=16514 LET B=156 LET C=165 LET S=15 LET O=2 LET K=1+PEEK 16396+256*PEEK 16397 ```