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

https://github.com/filipchalupa/smart-snake


https://github.com/filipchalupa/smart-snake

ai game

Last synced: 2 months ago
JSON representation

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.

![Jarjar watching the game played by AI](./photo.jpg 'Jarjar watching the game played by AI')

## Development

### Client

```bash
npm run client
```

### Server

```bash
npm run server
```