Skip to content

iilj/OthelloAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OthelloAI

Overview

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.

Prerequisites

Install Emscripten

$ git clone https://github.com/emscripten-core/emsdk.git
$ cd emsdk
$ ./emsdk install latest
$ ./emsdk activate latest
$ source ./emsdk_env.sh

Verify Emscripten

$ emcc -v

Generate OthelloGame WebAssembly

$ cd cpp
$ make

Run locally

$ sh serve.sh

serve.sh uses Python http.server class.

Deploy

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.

Using Docker container to compile

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"

Links