From 0720fd8ed0aa92248622a9f3c3ebd522b002fd91 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Wed, 11 Nov 2026 15:40:22 -0800 Subject: graphic tictactoe Hex & octal digits --- chapter31/README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'chapter31/README.md') 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 -- cgit v1.2.3