Skip to content
A JavaScript + TensorFlow.js Porting of https://github.com/suragnair/alpha-zero-general (Python). 1. Import Keras pretrained model and run it successfully 2. self-train from the beginning also works on the browser. Try it: https://grimmer.io/alphago-zero-tictactoe-js/, use "npm run deploy" to upload. 2 output of the network: policy and value.
JavaScript HTML CSS
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
public
src
.env
.eslintrc
.gitignore
LICENSE
README.md Update README.md Apr 30, 2018
nodeTest.js
package-lock.json
package.json Correct project name setting May 24, 2018

README.md

alphago-zero-tictactoe-js

Installation

npm install

Dev

npm start // build and launch its live dev web server.

After npm start, you can also use VS Code with Debugger for Chrome extension to debug.

Features and done itmes of todo list

  1. Ported the algorithms from alpha-zero-general. Although its name is alpha-zero-general, it is based on AlphaGo Zero algorithm.

  2. Import pretrained models from alpha-zero-general and run alphago game algorithms on Browsers. alpha-zero-general is a project to supply general game AI training frameworks. You can extend that project and add yourself game rule codes and train AI model by using Python.

TODO

  1. Fix bugs to train models by this JavaScript version project. It may be a TensorFlow.js bug. Maybe waitting for native TensorFlow Node.js binding is better than WebGL solution.
  2. Add UI.
  3. Clean up.
  4. Use service worker for cpu heavy loading part.

AlphaZero

To overcome some API limitation (Tensorflow.js export/save model/weights), so this JavaScript repo borrows one of the features of AlphaZero, always accept trained model after each iteration without comparing to previous version

You can’t perform that action at this time.