A TensorFlow.js based AI player platform for T-Rex Runner.
神经网络与遗传算法: TensorFlow.js 学会游戏通关
T-Rex Runner is originally an easter egg game inside chrome's offline error page.
The official version of TensorFlow in JavaScript. It is A WebGL accelerated, browser based JavaScript library for training and deploying ML models. Visit the official website to discover more.
t-trex-run
is an artificial intelligent player platform designed for T-Rex Runner, and enpowered by TensorFlow.js.
- Totally rewritten in ES6/ES7, LESS and Webpack
- Multiplayer mode supported (means you can use genetic algorithm now)
- Events like
onReset
,onRunning
andonCrushed
are supported - Example models are provided
npm install
npm start
Visit http://localhost:8080