A.I. player for the Doctor Who "Thirteen" game.
This is JavaScript AI player for a variant of the game "2048".
Play the game "Thirteen" here: https://doctorwho.tv/games/thirteen/
How to use the A.I.
-
In your browser's bookmark bar, right click
-
Click "Add Page"
-
Paste the following content into the
URL
fieldjavascript:(function(){let src='https://raw.githubusercontent.com/NullVoxPopuli/doctor-who-thirteen-game-ai/master/ai.js';async function fetchAndInsertScript(){let response=await fetch(src);let script=await response.text();let element=document.createElement('script');element.innerHTML=script;document.body.appendChild(element);}fetchAndInsertScript();})();
-
Click "Save"
-
Click the bookmark created in step 4
-
Watch how for it gets
Development
A.I.
- clone the repo
cd docker-who-ai
yarn && yarn start
- This starts a development environment with a local copy of the game
Bookmarklet
- clone the repo
- change the bookmarklet URL to your fork/branch
- copy contents of bookmarklet.js to https://ted.mielczarek.org/code/mozilla/bookmarklet.html
- copy "Your Bookmarklet" url to your bookmark
Resources
- 2048 NN A.I. - source
- Browser A.I. Library Comparisons
- CovNetJS - not used here, but has good explanations and demos