Run a living-room game locally
Night Circuit is a small, playable example with three original circuits. Turn each tile to conduct power from the IN terminal to OUT. Its files can be served by an ordinary local web server. The game has no build step, account, online service or asset bundle. Open the playable example
Make a local copy
Use Python 3 and curl in an empty directory on your development machine. The loop downloads the same three files served by the public game. The server binds to loopback.
mkdir -p night-circuit
cd night-circuit
for file in index.html game.css game.js
do
curl --fail --location --remote-name "https://velaos.polymathlabs.xyz/lab/night-circuit/$file" || exit 1
done
python3 -m http.server 8080 --bind 127.0.0.1
Open http://127.0.0.1:8080/ in a browser. Choose Start playing. Move using the arrows and press Enter to rotate a piece. The surrounding links lead back to the public Vela site. During a round the game draws its pieces from HTML and CSS and makes no service requests.
Follow one move through the source
| File | What to look for |
|---|---|
| index.html | Board, native buttons, pause dialog, screen-reader status and instructions. |
| game.css | Remote focus, power markings, high-contrast signals and responsive board dimensions. |
| game.js | The fixed solution routes, starting rotations, rotation of a tile’s port mask, connected-path traversal and focus restoration. |
Each track has two open sides. A turn rotates its four-bit port mask clockwise. A neighbour conducts only if it has a matching open port facing the current tile. Power starts at IN and propagates through matching neighbours until a connection reaches OUT. The animation rate has no influence on the puzzle’s result.
Build a fourth round
Add one route to the routes array. Use consecutive horizontally or vertically adjacent cells, beginning on the left edge and ending on the right edge. A five-column board numbers its cells from zero through fourteen in row order. For example, [5, 6, 11, 12, 13, 8, 9] carries power across the middle, down through the lower row and back out on the middle row.
Change the round name and keep the original controls. Play the route entirely with the keyboard. Check the focus after pausing, a blocked move at the board edge, and the win state when the output connects. If you have a physical television or controller, describe exactly which pieces worked there.
A publishable idea can be this small. Send the playable URL, the control scheme and one question you want answered. Polymath is interested in what makes your game worth playing on the television itself. Introduce your game
