Puzzle (photo puzzle)
rotate-and-place tile jigsaw from your own photo
Puzzle is a jigsaw cut from your own photo into nuna tiles: rotate each piece and place it on the board.
Point of the game
Aaron's brief: "write an html which is the standard nunaboard with randomizing shape fill. the "game" will be that you can upload a photo. This will be a puzzle made of the nuna tile/shape only. the pieces when they are 'scattered' will be rotated randomly. there should only be four positions of rotation. the player can select pieces, rotate them, and place them onto the board." [CH:Interactive nuna puzzle game with photo upload] Index: "Bring a photograph, choose a pattern, cut it and rebuild it." [BK]
How to win
Rebuild the photo: every slot filled with the right piece at the right rotation. A slot only accepts a piece whose shape currently faces the slot's direction, so both position and rotation have to be right. [CH:Interactive nuna puzzle game with photo upload] A score, timer or move count: not on file.
How to play
- Bring a photo: the Upload photo button, drag and drop onto the page, or paste from the clipboard. The photo is cover-fitted to the board and cut by the current pattern. Nothing leaves your machine. [CH:Interactive nuna puzzle game with photo upload]
- Pieces start in a tray at one of four quarter-turn rotations. Select a piece, turn it with Q / ← and E / → (or the buttons), and place it. Hovering an empty slot previews the piece in place. [CH:Interactive nuna puzzle game with photo upload]
- Sizes run from 4×4 to 10×10 (8, 18, 32 and 50 pieces). New pattern makes a new random fill; Re-scatter keeps the pattern and re-randomises rotations and tray order. The seed is shown in the header. [CH:Interactive nuna puzzle game with photo upload]
- Uploading a new photo doesn't reset the puzzle: placed pieces stay and show the new image. [CH:Interactive nuna puzzle game with photo upload]
Background
- Built on the nuna-board.html conventions: the same frame and field-boundary geometry and the exact-arc tile shape. The random fill is a perfect matching made by rotation moves on a base tiling. [CH:Interactive nuna puzzle game with photo upload]
- The brief came as a file, photo-puzzle-design-brief.md, which separated a rotation-only puzzle (each piece in its correct place, starting at a random rotation) from a full jigsaw (pieces also shuffled to wrong positions). The build is rotate-and-place from a tray. [CH:Interactive nuna puzzle game with photo upload]
- The chat's suggested title was "Nuna Photo Puzzle: rotate-and-place tile jigsaw". [B4]
Development history
- First build: the puzzle as described above, in one file, meant for a Squarespace code block. [CH:Interactive nuna puzzle game with photo upload]
- Failure, upload in the preview: Aaron: "it's not working here. is it supposed to work on squarespace and not here?" The chat's preview window blocks the file picker, so the button silently did nothing there. Claude added drag-and-drop and paste as fallbacks. Aaron never confirmed that the fallbacks work, in the preview or on Squarespace. [CH:Interactive nuna puzzle game with photo upload]
- The brief asked to reuse the tile path from the combination-shapes reference; that file was never attached, and the build used the board file's shape instead. [CH:Interactive nuna puzzle game with photo upload]
- Not in the chat: publishing to the library, Squarespace embed steps, any tie-in to the badges. [CH:Interactive nuna puzzle game with photo upload]
- The LIBRARY GAMES chat: "There is nothing in this project about its rules beyond photo upload." [GN]
Open decisions
- Whether uploading a new photo should reset the puzzle; the lock behaviour; the default size. [B4]
- Test the photo input on the live site: if Squarespace's embed also blocks the file picker, the page needs another way in. [CH:Interactive nuna puzzle game with photo upload]
- Parity: the build follows the board file ("circle iff (u+v) odd"); the library convention is even. [CH:Interactive nuna puzzle game with photo upload; PAR]
Sources
Every statement on this page comes from the game’s Claude chats or the library’s own files. Anything without a source reads not on file. Chats: Interactive nuna puzzle game with photo upload (Sep 13).
- [B4] sweep digest 4 (Oct 10)
- [GN] the LIBRARY GAMES chat's games notes
- [BK] the library index blurbs (books.py)
- [CH] the game chat's history, read in the browser or captured to the library box (Oct 16): Aaron's words verbatim, Claude's replies summarised
Aaron directed and built these games with Claude. Written by Libra, Oct 16, 2026; updated the same night with the chat’s own history (Aaron’s words verbatim, Claude’s replies summarised).