summaryrefslogtreecommitdiff
path: root/chapter31/README.md
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-11-11 15:40:22 -0800
committerCliff Click <cliffc@acm.org>2026-11-12 13:48:30 -0800
commit0720fd8ed0aa92248622a9f3c3ebd522b002fd91 (patch)
tree3ba939eb4e786373cedc54e1afe0bbdbfd16dc01 /chapter31/README.md
parent18c04fd4aab0ad0bf3b3eece9551cc7aa7b9f796 (diff)
downloadSimple-0720fd8ed0aa92248622a9f3c3ebd522b002fd91.tar.gz
Simple-0720fd8ed0aa92248622a9f3c3ebd522b002fd91.zip
graphic tictactoe
Hex & octal digits
Diffstat (limited to 'chapter31/README.md')
-rw-r--r--chapter31/README.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/chapter31/README.md b/chapter31/README.md
index 011cb7ed..6b7d9eb7 100644
--- a/chapter31/README.md
+++ b/chapter31/README.md
@@ -1,4 +1,4 @@
-# Chapter 31: Work in Progress
+# Chapter 31: Software Drawing and Graphical Games
English | [日本語](README.ja.md)
@@ -8,6 +8,21 @@ Small graphical games drive this chapter's language and library work, starting
with a pixel window for a Simple-written 2-D graphics library. MiniFB supplies
the optional native window/input backend; drawing stays in Simple.
+The [drawing library](docs/drawing.md) provides a pixel canvas, colors,
+rectangles, circles, thick lines, and bitmap labels. The
+[graphical tic-tac-toe game](docs/examples/TicTacToeGraphical.smp) uses it for
+mouse/keyboard play against the terminal game's CPU strategy.
+Hexadecimal colors (`0xe47b57`) and leading-zero octal font masks (`025755`)
+are supported by this chapter's integer literal syntax.
+
+```sh
+make -C chapter31 run-graphical-tictactoe CTAGS=
+```
+
+This explicitly builds the optional backend and opens a window. Use
+`graphical-tictactoe` instead to build the executable without starting it or
+requiring MiniFB.
+
The default build and test suite need no graphics dependencies. See
[optional graphics](docs/graphics.md) for building MiniFB, running the pixel
example, and handling a missing backend. `make tests_nographics CTAGS=` runs