From 97b693402442aac350020325c8e1212464ca5298 Mon Sep 17 00:00:00 2001 From: Ole Morud Date: Sat, 20 Dec 2025 01:19:54 +0100 Subject: [PATCH] Update README --- Makefile | 6 ++++-- README.md | 14 +++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 679ff8b..89e62f4 100644 --- a/Makefile +++ b/Makefile @@ -18,11 +18,13 @@ CFLAGS := $(CFLAGS.$(CC)) $(CFLAGS.$(CC).$(BUILD)) all: tests +wasm: chess.wasm + codegen: codegen.c $(CC) -o $@ $(CFLAGS) $^ -wasm: wasm-compat.c - $(CC) -DWASM -o chess.wasm wasm-compat.c $(CFLAGS.$(CC)) $(CFLAGS.$(CC).wasm) +chess.wasm: wasm-compat.c + $(CC) -DWASM -o $@ wasm-compat.c $(CFLAGS.$(CC)) $(CFLAGS.$(CC).wasm) mbb_rook.h: codegen ./codegen diff --git a/README.md b/README.md index 684d3ac..3c80c76 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,21 @@ -## Build and Run in Browser +## Build and run in browser ``` make BUILD=release wasm python3 -m http.server 8000 # open https://localhost:8000/chess.html ``` + +## Build and run in console + +``` +make BUILD=release tests +./tests +``` + +## Missing features and bugs + +WASM/web build has an unresolved bug where checkmate and stalemate isn't +rendered or announced