--- title: "Fifteen Puzzle — 4K/2K" type: "article" slug: "fifteen-puzzle-4k-2k" url: "http://localhost/article/fifteen-puzzle-4k-2k/" markdown_url: "http://localhost/article/fifteen-puzzle-4k-2k.md" published_at: "2026-03-13T00:34:06+00:00" modified_at: "2026-03-13T00:34:07+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Implementation of the classic 15-piece sliding puzzle game for the ZX80 in 4K ROM with 1K+ RAM. Checks for solvable starting combinations (not all 20 trillion are), prevents illegal moves, counts moves, and congratulates the player on winning. Includes complete BASIC listing." category: - name: "Syntax" slug: "syntax" taxonomy: "category" url: "http://localhost/category/periodicals/syntax/" post_tag: - name: "BASIC (programming language)" slug: "basic-programming-language" taxonomy: "post_tag" url: "http://localhost/tag/basic-programming-language/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" - name: "ZX80" slug: "zx80" taxonomy: "post_tag" url: "http://localhost/tag/zx80/" model: - name: "Sinclair ZX80" slug: "zx80" taxonomy: "model" url: "http://localhost/model/zx80/" indiv: - name: "Bill Eckel" slug: "bill-eckel" taxonomy: "indiv" url: "http://localhost/indiv/bill-eckel/" genre: - name: "Game" slug: "game" taxonomy: "genre" url: "http://localhost/type/game/" publication_r: id: 10246 title: "Syntax" type: "periodical" url: "http://localhost/periodical/syntax/" authors_r: - name: "Bill Eckel" slug: "bill-eckel" taxonomy: "indiv" url: "http://localhost/indiv/bill-eckel/" volume: "3" issue: "4" issues_articles: - id: 52478 title: "Syntax/Syntax ZX80 v3 n4" type: "issue" url: "http://localhost/issue/syntax-syntax-zx80-v3-n4/" pages: "5" pubdate: "April 1982" archive_link: false --- # Fifteen Puzzle — 4K/2K Implementation of the classic 15-piece sliding puzzle game for the ZX80 in 4K ROM with 1K+ RAM. Checks for solvable starting combinations (not all 20 trillion are), prevents illegal moves, counts moves, and congratulates the player on winning. Includes complete BASIC listing.