OthelloAI is an Othello game application for web browsers.
This application uses WebAssembly compiled form C++ Game maneger class, which wraps schil-ler/OthelloAI Othello AI core.
$ git clone https://github.com/emscripten-core/emsdk.git
$ cd emsdk
$ ./emsdk install latest
$ ./emsdk activate latest
$ source ./emsdk_env.sh
$ emcc -v
$ cd cpp
$ make
$ sh serve.sh
serve.sh
uses Python http.server class.
Any update of master branch is automatically reflected in GitHub Pages.
For details of the configuration, please refer to .travis.yml
file and Emscripten's official documentation.
If using Docker to compile C++ files is preferrable, you can use trzeci/emscripten container.
$ docker run -dit --name emscripten -v $(pwd):/src trzeci/emscripten:sdk-incoming-64bit bash
$ docker exec -it emscripten /bin/sh -c "cd cpp && make"