https://github.com/filipchalupa/smart-snake
https://github.com/filipchalupa/smart-snake
ai game
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/filipchalupa/smart-snake
- Owner: FilipChalupa
- License: unlicense
- Created: 2018-03-31T15:19:34.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-12-02T23:09:43.000Z (5 months ago)
- Last Synced: 2024-12-26T13:24:57.295Z (4 months ago)
- Topics: ai, game
- Language: TypeScript
- Homepage: https://smart-snake.herokuapp.com/
- Size: 971 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# Smart Snake
## Installation
```bash
npm ci
npm run build
```## How to run
```bash
npm start
```Run client and server. Visit http://localhost:8080.
### AI players
To spawn an AI player press `a` or `i` key. Then sit and watch.
The `a` inteligence has been developed by [@FilipChalupa](https://github.com/FilipChalupa). The `i` by [@LukasChalupa](https://github.com/LukasChalupa).
### Human players
To play by yourself press `Enter` and use left and right arrows to navigate. Alternatively you can press `Enter`
second time to spawn another player which navigates by `k` and `l` keys.
## Development
### Client
```bash
npm run client
```### Server
```bash
npm run server
```