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