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.
- Host: GitHub
- URL: https://github.com/magiccube/cart-pole-js
- Owner: MagicCube
- License: mit
- Created: 2018-05-02T04:35:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T14:08:05.000Z (over 7 years ago)
- Last Synced: 2025-03-18T06:48:08.224Z (over 1 year ago)
- Topics: ai, cartpole, gym, javascript, reinforcement-learning, tensorflow, tensorflow-js
- Language: JavaScript
- Homepage:
- Size: 81.1 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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