https://github.com/bomzj/catch-cheese
🐭 Simple Vue js game with AI agent based on Reinforcement Learning
https://github.com/bomzj/catch-cheese
ai game javascript machine-learning reinforcement-learning tensorflow vue
Last synced: 12 days ago
JSON representation
🐭 Simple Vue js game with AI agent based on Reinforcement Learning
- Host: GitHub
- URL: https://github.com/bomzj/catch-cheese
- Owner: bomzj
- Created: 2019-11-11T13:22:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-05T10:21:54.000Z (about 6 years ago)
- Last Synced: 2026-06-19T09:39:20.574Z (12 days ago)
- Topics: ai, game, javascript, machine-learning, reinforcement-learning, tensorflow, vue
- Language: JavaScript
- Homepage: https://bomzj.github.io/catch-cheese/dist/
- Size: 1.16 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Catch the Cheese
Simple 1D turn based game, where AI agent is built upon Artificial Neural Network learns how to play the game on its own by using **Q-Learning** algorithm. The goal of the game is to collect cheeses as much as possible avoiding cat.
This game uses:
- **TensorFlow.js** for machine learning in JavaScript
- **Vue.js** as engine for game logic and rendering
The code is well commented but requires initial knowledge of Reinforcement Learning.
## Prerequisites
- NPM
- Node.js
#### Optional:
- Chrome Browser
- Visual Studio Code
- Visual Studio Code Extensions:
- Debugger for Chrome
- Vetur
## Installing
```
npm install
```
## How to Run
### Compiles and hot-reloads for development
```
npm run serve
```
The command starts dev server at http://localhost:8080/.
> `F5` in Visual Studio Code opens up http://localhost:8080/ in chrome browser.
### Compiles and minifies for production
```
npm run build
```
Compiles project into `/dist` folder