Games App: Minesweeper and 2048

Two more Games in the row of icons, which now holds five. Minesweeper
moves a cursor (a held arrow runs it along), digs with Enter, flags with
f, shows where the mines were when it is lost, and keeps the fastest
cleared field. 2048 slides with the arrows and keeps the best score; it
has no clock, so nothing to pause. Neither keeps the screen lit.

Played on the device: Minesweeper's cells went from 8 to 12 pixels to be
read, and its field to 20 x 9.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0162FokPdvY2KsS4NBfwyWPk
This commit is contained in:
2026-10-14 18:46:49 +02:00
co-authored by Claude Opus 5.5
parent fcc5533c83
commit b1e6242b29
11 changed files with 371 additions and 31 deletions
+27 -5
View File
@@ -1,12 +1,12 @@
+++
title = "Games"
description = "Pong, Snake and Tetris, for when the radio is quiet."
description = "Pong, Snake, Tetris, Minesweeper and 2048, for when the radio is quiet."
weight = 17
[extra]
tag = "Games"
+++
The Games App opens on its three games, an icon each, as the Launcher shows Apps: <kbd>,</kbd> and <kbd>/</kbd> go from one to the next, with its name and your best so far under the row. <kbd>Enter</kbd> picks one, <kbd>Enter</kbd> again starts it.
The Games App opens on its five games, an icon each, as the Launcher shows Apps: <kbd>,</kbd> and <kbd>/</kbd> go from one to the next, with its name and your best so far under the row. <kbd>Enter</kbd> picks one, <kbd>Enter</kbd> again starts it.
In every game:
@@ -14,9 +14,9 @@ In every game:
|---|---|
| <kbd>Enter</kbd> | Starts, or starts again when a game is over |
| <kbd>p</kbd> | Pauses. Any key carries on |
| <kbd>`</kbd> | Back to the three games. This one waits, paused |
| <kbd>`</kbd> | Back to the other games. This one waits, paused |
A game you leave in the middle, for another game or another App, is **found again paused**, and its icon has an orange dot. While a game is being played the screen does not dim. The games beep, and Tetris has its tune, unless **Settings → This device → Sound & LED** is off. There is no choice of difficulty: each game starts gently and gets faster.
A game you leave in the middle, for another game or another App, is **found again paused**, and its icon has an orange dot. While Pong, Snake or Tetris is being played the screen does not dim. The games beep, and Tetris has its tune, unless **Settings → This device → Sound & LED** is off. There is no choice of difficulty: Pong, Snake and Tetris start gently and get faster, and the other two are always the same size.
## Pong
@@ -49,8 +49,30 @@ It plays to **Korobeiniki**, the tune Tetris has always had, round and round, an
A full row goes: 100 points for one, 300 for two, 500 for three, **800 for four at once**, times the level. Falling faster gives a point a row, dropping two. The key that brought a piece down does not send the next one down too: let it go and press again. Every ten rows is a level, and the fall quickens.
## Minesweeper
A field of 20 by 9 cells hides **28 mines**, about one cell in seven. Open every cell that has none.
| Key | Does |
|---|---|
| <kbd>;</kbd> <kbd>.</kbd> <kbd>,</kbd> <kbd>/</kbd> | Move the cursor. Held, it runs along |
| <kbd>Enter</kbd> | Digs the cell under the cursor |
| <kbd>f</kbd> | Puts a flag on a cell you think is a mine, or takes it off |
A cell you open shows **how many mines touch it**, of the eight around; one that touches none opens its neighbours too, and so on. The **first dig is never a mine**, nor next to one, so it always opens something.
<kbd>Enter</kbd> on an open number whose mines are all flagged opens the rest of the cells around it at once. If a flag is wrong, that is a mine dug.
The top line says how many mines are left to flag and how long you have been at it; the clock starts at the first dig. Dig a mine and the field shows where they all were, with the wrong flags gone pale. What is kept is your **fastest cleared field**.
## 2048
The arrows slide every tile on the 4 by 4 board as far as it goes. **Two tiles alike that meet become one of twice the value**, and after each move a new 2 (sometimes a 4) appears. The score is the sum of every tile you made.
Reaching **2048** is said once, and the game goes on for as long as a move is left. There is nothing to pause: leave it and come back, and the board is as you left it.
## The keys, as the device lists them
What <kbd>Fn</kbd> + <kbd>h</kbd> shows on these screens. These tables are generated from the firmware's own lists, so they are always the current ones.
{{ keys(scopes=["games", "games-pong", "games-snake", "games-tetris"]) }}
{{ keys(scopes=["games", "games-pong", "games-snake", "games-tetris", "games-mines", "games-2048"]) }}