Learn to use Tensorflow.js and Brain.js by predicting next play in roshambo.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
images
src
tmp
vendor
.editorconfig
.eslintrc.json
.gitignore
README.md
index.html
package-lock.json
package.json
webpack.config.js

README.md

rock-paper-scissors-ai

Learn to use Tensorflow.js and Brain.js by predicting next play in rock-paper-scissors. This is a learning project so excellent results, UI, UX, and code architecture are not goals.

Development

Compile js and scss

npm run webpack

Run the local serve

npm start

Notes

Use a promise to await multiple async functions

// wait for the array of results
let results = await Promise.all([
  fetch(url1),
  fetch(url2),
  ...
]);

To Do

  • BUG: Weird first row of table, it's not perfectly 50-50

  • Go back and layer in cookie usage

  • Try LSTM using Tensorflow.js instead of Brain.js.

  • Try multilayer perceptron

  • Look into "Maximum Likelihood Estimation"