 androidApp/app/build.gradle.kts                    | 13 ++--
 .../github/vrubelroman/chesspenguin/Navigation.kt  | 12 +++-
 .../vrubelroman/chesspenguin/data/EngineFiles.kt   | 10 ++-
 .../vrubelroman/chesspenguin/data/Settings.kt      | 10 +--
 .../github/vrubelroman/chesspenguin/theme/Color.kt |  7 +-
 .../vrubelroman/chesspenguin/ui/AboutScreen.kt     | 13 +++-
 .../io/github/vrubelroman/chesspenguin/ui/Board.kt | 75 ++++++++++++++++++----
 .../vrubelroman/chesspenguin/ui/GameScreen.kt      | 23 +++++--
 .../vrubelroman/chesspenguin/ui/GamesScreen.kt     | 45 +++++++++++--
 .../vrubelroman/chesspenguin/ui/SettingsScreen.kt  |  7 +-
 androidApp/app/src/main/res/values-de/strings.xml  | 32 +++++++++
 androidApp/app/src/main/res/values-es/strings.xml  | 32 +++++++++
 androidApp/app/src/main/res/values-fr/strings.xml  | 32 +++++++++
 androidApp/app/src/main/res/values-it/strings.xml  | 32 +++++++++
 androidApp/app/src/main/res/values-ru/strings.xml  | 32 +++++++++
 androidApp/app/src/main/res/values/strings.xml     | 34 ++++++++++
 16 files changed, 366 insertions(+), 43 deletions(-)
diff --git a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/Navigation.kt b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/Navigation.kt
index 05ab58d..8cb7c2c 100644
--- a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/Navigation.kt
+++ b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/Navigation.kt
@@ -6,6 +6,7 @@ import androidx.navigation3.runtime.entryProvider
 import androidx.navigation3.runtime.rememberNavBackStack
 import androidx.navigation3.ui.NavDisplay
 import io.github.vrubelroman.chesspenguin.ui.AboutScreen
+import io.github.vrubelroman.chesspenguin.ui.BoardStyleScreen
 import io.github.vrubelroman.chesspenguin.ui.DatabasesScreen
 import io.github.vrubelroman.chesspenguin.ui.SettingsScreen
 import io.github.vrubelroman.chesspenguin.ui.GameScreen
@@ -24,6 +25,8 @@ import kotlinx.serialization.Serializable
 
 @Serializable data object AboutKey : NavKey
 
+@Serializable data object BoardStyleKey : NavKey
+
 @Composable
 fun MainNavigation() {
     val backStack = rememberNavBackStack(Databases)
@@ -41,7 +44,14 @@ fun MainNavigation() {
                 GameScreen(key.db, key.place, key.query, onBack = { backStack.removeLastOrNull() }, onSettings = { backStack.add(SettingsKey) })
             }
             entry<SettingsKey> {
-                SettingsScreen(onBack = { backStack.removeLastOrNull() }, onAbout = { backStack.add(AboutKey) })
+                SettingsScreen(
+                    onBack = { backStack.removeLastOrNull() },
+                    onAbout = { backStack.add(AboutKey) },
+                    onBoardStyle = { backStack.add(BoardStyleKey) },
+                )
+            }
+            entry<BoardStyleKey> {
+                BoardStyleScreen(onBack = { backStack.removeLastOrNull() })
             }
             entry<AboutKey> {
                 AboutScreen(onBack = { backStack.removeLastOrNull() })
diff --git a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/data/EngineFiles.kt b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/data/EngineFiles.kt
index ff84ec5..117c8c4 100644
--- a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/data/EngineFiles.kt
+++ b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/data/EngineFiles.kt
@@ -89,7 +89,7 @@ class EngineFiles(private val context: Context, private val scope: CoroutineScop
                 } catch (e: NetFailure) {
                     NetState.Failed(e.problem)
                 } catch (e: IOException) {
-                    NetState.Failed(if (dir.usableSpace < BuildConfig.NET_SIZE) NetProblem.NoSpace else NetProblem.Interrupted)
+                    NetState.Failed(if (freeSpace() < BuildConfig.NET_SIZE) NetProblem.NoSpace else NetProblem.Interrupted)
                 }
                 if (isActive) _state.value = result
             }
@@ -100,7 +100,7 @@ class EngineFiles(private val context: Context, private val scope: CoroutineScop
             return
         }
         // The file is downloaded next to the app's files, then checked and moved in.
-        if (dir.usableSpace < 2 * BuildConfig.NET_SIZE) {
+        if (freeSpace() < 2 * BuildConfig.NET_SIZE) {
             _state.value = NetState.Failed(NetProblem.NoSpace)
             return
         }
@@ -171,7 +171,7 @@ class EngineFiles(private val context: Context, private val scope: CoroutineScop
                             } catch (e: NetFailure) {
                                 NetState.Failed(e.problem)
                             } catch (e: IOException) {
-                                NetState.Failed(if (dir.usableSpace < BuildConfig.NET_SIZE) NetProblem.NoSpace else NetProblem.Interrupted)
+                                NetState.Failed(if (freeSpace() < BuildConfig.NET_SIZE) NetProblem.NoSpace else NetProblem.Interrupted)
                             }
                         }
                         downloads.remove(id)
@@ -235,6 +235,10 @@ class EngineFiles(private val context: Context, private val scope: CoroutineScop
         if (!part.renameTo(net)) throw IOException("cannot move the network into place")
     }
 
+    /// The free space of the app's storage. Asked of filesDir, which always exists: a
+    /// folder not made yet (the engine's, before the first download) answers 0.
+    private fun freeSpace(): Long = context.filesDir.usableSpace
+
     private fun online(): Boolean {
         val cm = context.getSystemService(ConnectivityManager::class.java) ?: return true
         val caps = cm.getNetworkCapabilities(cm.activeNetwork) ?: return false
diff --git a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/data/Settings.kt b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/data/Settings.kt
index 5c13713..1c60ddc 100644
--- a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/data/Settings.kt
+++ b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/data/Settings.kt
@@ -14,11 +14,11 @@ enum class Notation { Latin, Figurines, Local }
 data class Prefs(
     val theme: Theme = Theme.System,
     val notation: Notation = Notation.Latin,
+    val board: BoardTheme = BoardTheme.Green,
+    val pieces: PieceSet = PieceSet.Merida,
     val vibration: Boolean = true,
     val animation: Boolean = true,
     val bestArrow: Boolean = true,
-    /// The engine button: once turned on, it stays on in the next game (§8.3).
-    val engineOn: Boolean = false,
     val engineLines: Int = 2,
     /// Seconds of thinking per position; 0 = no limit.
     val engineSeconds: Int = 20,
@@ -39,10 +39,11 @@ class Settings(context: Context) {
         return Prefs(
             theme = enumValueOrNull<Theme>(store.getString("theme", null)) ?: d.theme,
             notation = enumValueOrNull<Notation>(store.getString("notation", null)) ?: d.notation,
+            board = enumValueOrNull<BoardTheme>(store.getString("board", null)) ?: d.board,
+            pieces = enumValueOrNull<PieceSet>(store.getString("pieces", null)) ?: d.pieces,
             vibration = store.getBoolean("vibration", d.vibration),
             animation = store.getBoolean("animation", d.animation),
             bestArrow = store.getBoolean("bestArrow", d.bestArrow),
-            engineOn = store.getBoolean("engineOn", d.engineOn),
             engineLines = store.getInt("engineLines", d.engineLines),
             engineSeconds = store.getInt("engineSeconds", d.engineSeconds),
             engineThreads = store.getInt("engineThreads", d.engineThreads),
@@ -56,10 +57,11 @@ class Settings(context: Context) {
         store.edit()
             .putString("theme", p.theme.name)
             .putString("notation", p.notation.name)
+            .putString("board", p.board.name)
+            .putString("pieces", p.pieces.name)
             .putBoolean("vibration", p.vibration)
             .putBoolean("animation", p.animation)
             .putBoolean("bestArrow", p.bestArrow)
-            .putBoolean("engineOn", p.engineOn)
             .putInt("engineLines", p.engineLines)
             .putInt("engineSeconds", p.engineSeconds)
             .putInt("engineThreads", p.engineThreads)
diff --git a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/theme/Color.kt b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/theme/Color.kt
index 3bb97af..672f659 100644
--- a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/theme/Color.kt
+++ b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/theme/Color.kt
@@ -32,13 +32,12 @@ val DarkPrimaryContainer = Color(0xFF1A4566)
 val DarkError = Color(0xFFF28B82)
 val DarkErrorContainer = Color(0xFF5C1A14)
 
-/// Colors of the notation and the board that stay ours whatever the theme.
+/// Colors of the notation and the board that stay ours whatever the theme (the
+/// squares are the chosen board's, data/BoardStyle.kt).
 data class ChessColors(
     val dark: Boolean,
     val currentMove: Color,
     val comment: Color,
-    val lightSquare: Color,
-    val darkSquare: Color,
     val lastMove: Color,
 )
 
@@ -46,8 +45,6 @@ val LightChess = ChessColors(
     dark = false,
     currentMove = Color(0xFF90D1FF),
     comment = Color(0xFF2A5B8A),
-    lightSquare = Color(0xFFFFFFDD),
-    darkSquare = Color(0xFF86A666),
     lastMove = Color(0x699BC700),
 )
 
diff --git a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/AboutScreen.kt b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/AboutScreen.kt
index 01bc2a7..e7bebfe 100644
--- a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/AboutScreen.kt
+++ b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/AboutScreen.kt
@@ -34,7 +34,18 @@ private const val SITE = "https://chess.vrubel.xyz"
 private val NOTICES = listOf(
     "ChessPenguin" to "GPL-3.0-or-later · vrubelroman",
     "Stockfish 19" to "GPL-3.0 · The Stockfish developers (see AUTHORS) · github.com/official-stockfish/Stockfish",
-    "Merida pieces" to "GPLv2+ · Armando Hernandez Marroquin (via Lichess)",
+    "Pieces cburnett, merida" to "GPLv2+ · Colin M.L. Burnett; Armando Hernandez Marroquin (via Lichess)",
+    "Pieces mpchess" to "GPLv3+ · Maxime Chupin (via Lichess)",
+    "Pieces chessnut" to "Apache-2.0 · Alexis Luengas (via Lichess)",
+    "Pieces fantasy, celtic, spatial" to "MIT · Maurizio Monge (via Lichess)",
+    "Pieces rhosgfx" to "CC0-1.0 · RhosGFX (via Lichess)",
+    "Pieces shapes" to "CC BY-SA 4.0 · flugsio (via Lichess)",
+    "Pieces kiwen-suwi, firi" to "CC BY 4.0 · neverRare; James Faure (via Lichess)",
+    "Pieces pixel, letter, pirouetti" to "AGPLv3+ · therealqtpi; usolando; pirouetti (via Lichess)",
+    "Pieces governor" to "AGPLv3+ · the lila authors (via PyChess)",
+    "Pieces kosal" to "CC BY 4.0 · Kosal Sen, philatype.com (via PyChess)",
+    "Pieces metaltops" to "GPL · PyChess",
+    "Board images" to "AGPLv3+ · the lila authors and pirouetti (Lichess)",
     "Figurines, Noto Sans Math" to "SIL Open Font License 1.1",
     "Jetpack Compose, AndroidX, Kotlin" to "Apache-2.0 · Google, JetBrains",
     "UniFFI" to "MPL-2.0 · Mozilla",
diff --git a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/Board.kt b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/Board.kt
index c749695..a58a1c9 100644
--- a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/Board.kt
+++ b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/Board.kt
@@ -2,7 +2,10 @@ package io.github.vrubelroman.chesspenguin.ui
 
 import android.content.Context
 import android.graphics.Bitmap
+import android.graphics.BitmapFactory
+import android.graphics.BitmapRegionDecoder
 import android.graphics.Canvas
+import android.graphics.Rect
 import androidx.compose.animation.core.Animatable
 import androidx.compose.animation.core.FastOutSlowInEasing
 import androidx.compose.animation.core.tween
@@ -11,7 +14,9 @@ import androidx.compose.foundation.layout.aspectRatio
 import androidx.compose.runtime.Composable
 import androidx.compose.runtime.LaunchedEffect
 import androidx.compose.runtime.getValue
+import androidx.compose.runtime.mutableIntStateOf
 import androidx.compose.runtime.mutableStateOf
+import androidx.compose.runtime.produceState
 import androidx.compose.runtime.remember
 import androidx.compose.runtime.setValue
 import androidx.compose.ui.Modifier
@@ -24,6 +29,8 @@ import androidx.compose.ui.graphics.Path
 import androidx.compose.ui.graphics.drawscope.Stroke
 import androidx.compose.ui.graphics.asImageBitmap
 import androidx.compose.ui.graphics.drawscope.DrawScope
+import androidx.compose.ui.layout.onSizeChanged
+import androidx.compose.ui.platform.LocalContext
 import androidx.compose.ui.platform.LocalDensity
 import androidx.compose.ui.semantics.contentDescription
 import androidx.compose.ui.semantics.semantics
@@ -35,7 +42,11 @@ import androidx.compose.ui.unit.IntOffset
 import androidx.compose.ui.unit.IntSize
 import androidx.compose.ui.unit.sp
 import com.caverock.androidsvg.SVG
+import io.github.vrubelroman.chesspenguin.data.BoardTheme
+import io.github.vrubelroman.chesspenguin.data.PieceSet
 import io.github.vrubelroman.chesspenguin.theme.LocalChessColors
+import kotlinx.coroutines.Dispatchers
+import kotlinx.coroutines.withContext
 
 /// The 64 squares of a FEN's placement, a8 first: the piece letter or ' '.
 fun placement(fen: String): CharArray {
@@ -60,16 +71,16 @@ fun squareIndex(square: String?): Int? {
     return (7 - rank) * 8 + file
 }
 
-/// The Merida pieces of the desktop app, drawn from their SVG at a size once.
+/// The pieces of the desktop app's sets, drawn from their SVG at a size once.
 class Pieces(private val context: Context) {
-    private val svgs = HashMap<Char, SVG>()
-    private val bitmaps = HashMap<Pair<Char, Int>, ImageBitmap>()
+    private val svgs = HashMap<Pair<PieceSet, Char>, SVG>()
+    private val bitmaps = HashMap<Triple<PieceSet, Char, Int>, ImageBitmap>()
 
-    fun bitmap(piece: Char, size: Int): ImageBitmap? {
+    fun bitmap(set: PieceSet, piece: Char, size: Int): ImageBitmap? {
         if (size <= 0) return null
-        return bitmaps.getOrPut(piece to size) {
+        return bitmaps.getOrPut(Triple(set, piece, size)) {
             val name = (if (piece.isUpperCase()) "w" else "b") + piece.uppercaseChar()
-            val svg = svgs.getOrPut(piece) { context.assets.open("pieces/merida/$name.svg").use { SVG.getFromInputStream(it) } }
+            val svg = svgs.getOrPut(set to piece) { context.assets.open("pieces/${set.dir}/$name.svg").use { SVG.getFromInputStream(it) } }
             val bmp = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888)
             svg.setDocumentWidth(size.toFloat())
             svg.setDocumentHeight(size.toFloat())
@@ -79,6 +90,32 @@ class Pieces(private val context: Context) {
     }
 }
 
+/// A board's image (1024 px) read at about `size` px: a phone's board needs no more, and
+/// the whole image would take 4 MB.
+fun boardImage(context: Context, file: String, size: Int): ImageBitmap? = runCatching {
+    val bytes = context.assets.open("boards/$file").use { it.readBytes() }
+    val bounds = BitmapFactory.Options().apply { inJustDecodeBounds = true }
+    BitmapFactory.decodeByteArray(bytes, 0, bytes.size, bounds)
+    var sample = 1
+    while (bounds.outWidth / (sample * 2) >= size) sample *= 2
+    BitmapFactory.decodeByteArray(bytes, 0, bytes.size, BitmapFactory.Options().apply { inSampleSize = sample })?.asImageBitmap()
+}.getOrNull()
+
+/// The corner of a board's image with a1: 2×2 squares, for the choice of boards.
+fun boardCorner(context: Context, file: String, size: Int): ImageBitmap? = runCatching {
+    context.assets.open("boards/$file").use { input ->
+        val decoder = BitmapRegionDecoder.newInstance(input) ?: return null
+        try {
+            val q = decoder.width / 4
+            var sample = 1
+            while (q / (sample * 2) >= size) sample *= 2
+            decoder.decodeRegion(Rect(0, decoder.height - q, q, decoder.height), BitmapFactory.Options().apply { inSampleSize = sample })?.asImageBitmap()
+        } finally {
+            decoder.recycle()
+        }
+    }
+}.getOrNull()
+
 /// An arrow on the board: a comment's `[%cal]` or the engine's best move.
 data class BoardArrow(val from: String, val to: String, val color: Color, val weight: Float = 1f)
 
@@ -97,7 +134,7 @@ fun markColor(letter: String): Color = when (letter) {
 /// The engine's arrows are blue, as on the desktop.
 val EngineArrow = Color(0, 48, 136, 160)
 
-/// The board: full width, the colors of the green theme, the last move lit, the
+/// The board: full width, the chosen board and pieces, the last move lit, the
 /// coordinates inside the edge squares (as on Lichess). It takes no touches in the first
 /// version (docs/design/android-ui.md §7.2). A move slides into place (250 ms).
 @Composable
@@ -107,6 +144,8 @@ fun Board(
     lastFrom: String?,
     lastTo: String?,
     pieces: Pieces,
+    theme: BoardTheme,
+    set: PieceSet,
     description: String,
     modifier: Modifier = Modifier,
     arrows: List<BoardArrow> = emptyList(),
@@ -115,6 +154,14 @@ fun Board(
     animated: Boolean = true,
 ) {
     val colors = LocalChessColors.current
+    val context = LocalContext.current
+    // The image of a textured board, read off the main thread; the flat colors until then.
+    var side by remember { mutableIntStateOf(0) }
+    val texture by produceState<ImageBitmap?>(null, theme, side) {
+        value = null
+        val file = theme.texture ?: return@produceState
+        if (side > 0) value = withContext(Dispatchers.IO) { boardImage(context, file, side) }
+    }
     val measurer = rememberTextMeasurer()
     val squares = remember(fen) { placement(fen) }
     val from = squareIndex(lastFrom)
@@ -138,6 +185,7 @@ fun Board(
     Canvas(
         modifier
             .aspectRatio(1f)
+            .onSizeChanged { side = it.width }
             .semantics { contentDescription = description },
     ) {
         val sq = size.width / 8f
@@ -148,9 +196,14 @@ fun Board(
             val (r, c) = if (flipped) (7 - row) to (7 - col) else row to col
             return Offset(c * sq, r * sq)
         }
+        val image = texture
+        if (image != null) {
+            // The squares of the image are the same seen from either side: it is not turned.
+            drawImage(image, dstSize = IntSize(size.width.toInt(), size.height.toInt()))
+        }
         for (i in 0 until 64) {
             val light = (i / 8 + i % 8) % 2 == 0
-            drawRect(if (light) colors.lightSquare else colors.darkSquare, cell(i), Size(sq, sq))
+            if (image == null) drawRect(if (light) theme.light else theme.dark, cell(i), Size(sq, sq))
             if (i == from || i == to) drawRect(colors.lastMove, cell(i), Size(sq, sq))
         }
         for (m in marks) {
@@ -181,7 +234,7 @@ fun Board(
         for (i in 0 until 64) {
             val p = squares[i]
             if (p == ' ') continue
-            val bmp = pieces.bitmap(p, px) ?: continue
+            val bmp = pieces.bitmap(set, p, px) ?: continue
             var at = cell(i)
             if (animate && i == to && from != null && slide.value < 1f) {
                 val start = cell(from)
@@ -196,9 +249,9 @@ fun Board(
             val rankIndex = if (flipped) k else 7 - k
             val bottomLight = (7 + k) % 2 == 0
             val leftLight = k % 2 == 0
-            drawCoord(measurer, ('a' + fileIndex).toString(), coordStyle.copy(color = if (bottomLight) colors.darkSquare else colors.lightSquare),
+            drawCoord(measurer, ('a' + fileIndex).toString(), coordStyle.copy(color = if (bottomLight) theme.dark else theme.light),
                 Offset((k + 1) * sq - with(density) { 8.sp.toPx() }, 8 * sq - with(density) { 13.sp.toPx() }))
-            drawCoord(measurer, ('1' + rankIndex).toString(), coordStyle.copy(color = if (leftLight) colors.darkSquare else colors.lightSquare),
+            drawCoord(measurer, ('1' + rankIndex).toString(), coordStyle.copy(color = if (leftLight) theme.dark else theme.light),
                 Offset(with(density) { 2.sp.toPx() }, k * sq + with(density) { 1.sp.toPx() }))
         }
         for (a in arrows) {
diff --git a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/GameScreen.kt b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/GameScreen.kt
index f0ebd3f..4e0a005 100644
--- a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/GameScreen.kt
+++ b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/GameScreen.kt
@@ -164,6 +164,9 @@ fun GameScreen(db: String, startPlace: Int, query: String, onBack: () -> Unit, o
     var visible by remember { mutableStateOf(true) }
     var sheet by remember { mutableStateOf(false) }
     var wantEngine by remember { mutableStateOf(false) }
+    // The engine button: off in every game screen opened, on only when pressed (§8.3).
+    // Kept while Settings is open over the game and when the phone is turned.
+    var engineWanted by rememberSaveable { mutableStateOf(false) }
     var expanded by rememberSaveable { mutableStateOf(false) }
     var menu by remember { mutableStateOf(false) }
     var info by remember { mutableStateOf(false) }
@@ -177,6 +180,7 @@ fun GameScreen(db: String, startPlace: Int, query: String, onBack: () -> Unit, o
         return withContext(Dispatchers.Default) { database.pgn(index) }
     }
     val lifecycle = LocalLifecycleOwner.current.lifecycle
+    val activity = androidx.activity.compose.LocalActivity.current as? androidx.activity.ComponentActivity
     DisposableEffect(lifecycle) {
         val observer = LifecycleEventObserver { _, e ->
             when (e) {
@@ -195,6 +199,15 @@ fun GameScreen(db: String, startPlace: Int, query: String, onBack: () -> Unit, o
             session.shutdown()
         }
     }
+    // The app went away (not Settings opened over the game, not the phone turned): back
+    // in it, the engine waits for the button.
+    DisposableEffect(activity) {
+        val observer = LifecycleEventObserver { _, e ->
+            if (e == Lifecycle.Event.ON_STOP && activity?.isChangingConfigurations != true) engineWanted = false
+        }
+        activity?.lifecycle?.addObserver(observer)
+        onDispose { activity?.lifecycle?.removeObserver(observer) }
+    }
 
     val g = game
     val tag = { name: String -> g?.tags?.firstOrNull { it.name == name }?.value ?: "" }
@@ -206,7 +219,7 @@ fun GameScreen(db: String, startPlace: Int, query: String, onBack: () -> Unit, o
     val node = nodes?.getOrNull(current)
     val notation = rememberLazyListState()
     val engineReady = netState == NetState.Ready
-    val engineOn = prefs.engineOn && engineReady
+    val engineOn = engineWanted && engineReady
     val position = remember(g, current) { g?.let { enginePosition(it, current) } }
     // Only what the engine said about the position on the board.
     val analysis = engineView?.takeIf { it.position == position }?.analysis
@@ -230,7 +243,7 @@ fun GameScreen(db: String, startPlace: Int, query: String, onBack: () -> Unit, o
         if (netState == NetState.Ready && wantEngine) {
             wantEngine = false
             sheet = false
-            app.settings.update { it.copy(engineOn = true) }
+            engineWanted = true
             if (!files.builtIn) snackbar.showSnackbar(readyText)
         }
     }
@@ -273,8 +286,8 @@ fun GameScreen(db: String, startPlace: Int, query: String, onBack: () -> Unit, o
     }
     fun toggleEngine() {
         when {
-            prefs.engineOn && engineReady -> app.settings.update { it.copy(engineOn = false) }
-            engineReady -> app.settings.update { it.copy(engineOn = true) }
+            engineWanted && engineReady -> engineWanted = false
+            engineReady -> engineWanted = true
             files.builtIn -> {
                 wantEngine = true
                 files.prepare()
@@ -348,6 +361,8 @@ fun GameScreen(db: String, startPlace: Int, query: String, onBack: () -> Unit, o
             lastFrom = step?.fromSquare ?: node?.fromSquare,
             lastTo = step?.toSquare ?: node?.toSquare,
             pieces = pieces,
+            theme = prefs.board,
+            set = prefs.pieces,
             description = description,
             arrows = arrows,
             marks = marks,
diff --git a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/GamesScreen.kt b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/GamesScreen.kt
index e409bc4..1185afd 100644
--- a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/GamesScreen.kt
+++ b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/GamesScreen.kt
@@ -173,7 +173,10 @@ fun GamesScreen(db: String, onBack: () -> Unit, onGame: (place: Int, query: Stri
                     Text(stringResource(R.string.reading), color = MaterialTheme.colorScheme.onSurfaceVariant)
                 }
                 games.isEmpty() -> Message(stringResource(R.string.nothing_found), "")
-                else -> LazyColumn(Modifier.fillMaxSize(), state = list) {
+                else -> {
+                    // Wide enough for the database's largest number.
+                    val numberWidth = numberWidth(database?.len()?.toInt() ?: games.size)
+                    LazyColumn(Modifier.fillMaxSize(), state = list) {
                     items(games.size, key = { games[it].toLong() }) { place ->
                         val chunk = place / CHUNK
                         val loaded = rows[chunk]
@@ -184,9 +187,10 @@ fun GamesScreen(db: String, onBack: () -> Unit, onGame: (place: Int, query: Stri
                                 rows[chunk] = withContext(Dispatchers.Default) { d.rowsOf(part) }
                             }
                         }
-                        GameRowView(loaded?.getOrNull(place % CHUNK)) { onGame(place, query) }
+                        GameRowView(games[place].toInt() + 1, numberWidth, loaded?.getOrNull(place % CHUNK)) { onGame(place, query) }
                     }
                 }
+                }
             }
         }
     }
@@ -218,18 +222,45 @@ private fun openProblem(e: Throwable): String = when (e) {
     else -> ""
 }
 
-/// One game: "White – Black" and the result, then event · year · ECO (§6.2). An
-/// unfinished game ("*", most book positions) shows no result.
+/// The width of the numbers column: the digits of `count`, grouped as shown.
+@Composable
+private fun numberWidth(count: Int): androidx.compose.ui.unit.Dp {
+    val style = MaterialTheme.typography.bodyMedium.merge(Tabular)
+    val measurer = androidx.compose.ui.text.rememberTextMeasurer()
+    val density = androidx.compose.ui.platform.LocalDensity.current
+    return remember(count, style, density) {
+        with(density) { measurer.measure(groupDigits(count.coerceAtLeast(1)), style).size.width.toDp() }
+    }
+}
+
+/// One game: its number in the database, "White – Black" and the result, then event ·
+/// year · ECO (§6.2). An unfinished game ("*", most book positions) shows no result.
 @Composable
-private fun GameRowView(row: GameRow?, onClick: () -> Unit) {
-    Column(
+private fun GameRowView(number: Int, numberWidth: androidx.compose.ui.unit.Dp, row: GameRow?, onClick: () -> Unit) {
+    Row(
         Modifier
             .fillMaxWidth()
             .height(64.dp)
             .clickable(enabled = row != null, onClick = onClick)
             .padding(horizontal = 16.dp),
-        verticalArrangement = Arrangement.Center,
+        verticalAlignment = Alignment.CenterVertically,
     ) {
+        Text(
+            groupDigits(number),
+            style = MaterialTheme.typography.bodyMedium.merge(Tabular),
+            color = MaterialTheme.colorScheme.onSurfaceVariant,
+            textAlign = TextAlign.End,
+            maxLines = 1,
+            modifier = Modifier.width(numberWidth),
+        )
+        Spacer(Modifier.width(16.dp))
+        GameRowText(row, Modifier.weight(1f))
+    }
+}
+
+@Composable
+private fun GameRowText(row: GameRow?, modifier: Modifier) {
+    Column(modifier, verticalArrangement = Arrangement.Center) {
         if (row == null) return@Column
         Row(verticalAlignment = Alignment.CenterVertically) {
             Row(Modifier.weight(1f)) {
diff --git a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/SettingsScreen.kt b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/SettingsScreen.kt
index 8937c2b..a147fae 100644
--- a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/SettingsScreen.kt
+++ b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/ui/SettingsScreen.kt
@@ -50,11 +50,11 @@ import io.github.vrubelroman.chesspenguin.data.NetState
 import io.github.vrubelroman.chesspenguin.data.Notation
 import io.github.vrubelroman.chesspenguin.data.Theme
 
-/// One screen of groups, changes apply at once (android-ui.md §9). Boards and piece
-/// sets are not chosen in the first version (§16).
+/// One screen of groups, changes apply at once (android-ui.md §9). The board and the
+/// pieces are chosen on a screen of their own, with a board to see them on.
 @OptIn(ExperimentalMaterial3Api::class)
 @Composable
-fun SettingsScreen(onBack: () -> Unit, onAbout: () -> Unit) {
+fun SettingsScreen(onBack: () -> Unit, onAbout: () -> Unit, onBoardStyle: () -> Unit) {
     val app = app()
     val prefs by app.settings.prefs.collectAsState()
     val files = app.engineFiles
@@ -115,6 +115,7 @@ fun SettingsScreen(onBack: () -> Unit, onAbout: () -> Unit) {
             Toggle(stringResource(R.string.vibration), prefs.vibration) { v -> set { it.copy(vibration = v) } }
 
             Group(stringResource(R.string.group_look))
+            Item(stringResource(R.string.board_and_pieces), boardLabel(prefs.board) + " · " + prefs.pieces.dir, onBoardStyle)
             Item(stringResource(R.string.theme), themeNames.first { it.first == prefs.theme }.second) {
                 choice = Choice(R.string.theme, themeNames.map { it.second }, themeNames.indexOfFirst { it.first == prefs.theme }) { i ->
                     set { it.copy(theme = themeNames[i].first) }
