Update README
This commit is contained in:
6
Makefile
6
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
|
||||
|
||||
14
README.md
14
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
|
||||
|
||||
Reference in New Issue
Block a user