Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/MagicCube/tensorflow-rex-run

A TensorFlow.js based AI player platform for T-Rex Runner. T-Rex Runner is originally an easter egg game inside chrome.
https://github.com/MagicCube/tensorflow-rex-run

ai chrome easter-egg es6 es7 javascript neural-network t-rex-runner tensorflow tensorflow-js

Last synced: about 1 month ago
JSON representation

A TensorFlow.js based AI player platform for T-Rex Runner. T-Rex Runner is originally an easter egg game inside chrome.

Awesome Lists containing this project

README

        

# tensorflow-rex-run

A TensorFlow.js based AI player platform for T-Rex Runner.

## About This Project (Chinese)
[神经网络与遗传算法: TensorFlow.js 学会游戏通关](https://zhuanlan.zhihu.com/p/35451395)

## About T-Rex Runner Game

![](https://9to5google.files.wordpress.com/2015/06/pterodactyl.png?w=1600&h=1000)

[T-Rex Runner](http://www.omgchrome.com/chrome-easter-egg-trex-game-offline/) is [originally](https://cs.chromium.org/chromium/src/components/neterror/resources/offline.js?q=t-rex+package:%5Echromium$&dr=C&l=7) an easter egg game inside chrome's offline error page.

## About TensorFlow.js

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](https://js.tensorflow.org/) to discover more.

## About This Project

`t-trex-run` is an artificial intelligent player platform designed for T-Rex Runner, and enpowered by TensorFlow.js.

![](https://github.com/MagicCube/t-rex-run/blob/master/ScreenFlow.gif?raw=true)

## Key Features

* Totally rewritten in ES6/ES7, LESS and Webpack
* Multiplayer mode supported (means you can use genetic algorithm now)
* Events like `onReset`, `onRunning` and `onCrushed` are supported
* Example models are provided

---

## How to Install

```sh
npm install
```

## How to Run

```sh
npm start
```

Visit http://localhost:8080