Update README

This commit is contained in:
2025-12-20 01:19:54 +01:00
parent 92ce48997d
commit 97b6934024
2 changed files with 17 additions and 3 deletions

View File

@@ -18,11 +18,13 @@ CFLAGS := $(CFLAGS.$(CC)) $(CFLAGS.$(CC).$(BUILD))
all: tests all: tests
wasm: chess.wasm
codegen: codegen.c codegen: codegen.c
$(CC) -o $@ $(CFLAGS) $^ $(CC) -o $@ $(CFLAGS) $^
wasm: wasm-compat.c chess.wasm: wasm-compat.c
$(CC) -DWASM -o chess.wasm wasm-compat.c $(CFLAGS.$(CC)) $(CFLAGS.$(CC).wasm) $(CC) -DWASM -o $@ wasm-compat.c $(CFLAGS.$(CC)) $(CFLAGS.$(CC).wasm)
mbb_rook.h: codegen mbb_rook.h: codegen
./codegen ./codegen

View File

@@ -1,9 +1,21 @@
## Build and Run in Browser ## Build and run in browser
``` ```
make BUILD=release wasm make BUILD=release wasm
python3 -m http.server 8000 python3 -m http.server 8000
# open https://localhost:8000/chess.html # 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