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

https://github.com/magiccube/cart-pole-js

The classic Cart Pole game implemented in JavaScript, and powered by TensorFlow.js.
https://github.com/magiccube/cart-pole-js

ai cartpole gym javascript reinforcement-learning tensorflow tensorflow-js

Last synced: 2 months ago
JSON representation

The classic Cart Pole game implemented in JavaScript, and powered by TensorFlow.js.

Awesome Lists containing this project

README

          

# cart-pole-js

The classic Cart Pole game implemented in JavaScript, and powered by TensorFlow.js.

## About Cart Pole Game

The [Cart Pole](https://github.com/openai/gym/wiki/CartPole-v0) game is the classic 'Hello World' for [Reinforcement Learning](https://en.wikipedia.org/wiki/Reinforcement_learning).
A pole is attached by an un-actuated joint to a cart, which moves along the ground.
The system is controlled by applying a force vector of [+1, 0] or [-1, 0] to the cart.
A slight but random pendulum starts immediately after the game begins, and the goal is to prevent the pole from falling down.

---

## How to Install

```sh
npm install
```

## How to Run

```sh
npm start
```

Visit http://localhost:8088