miroesli / tyke

Battlesnake AI for play.battlesnake.io :snake:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tyke

The Typescript Snake

A simple Battlesnake AI written in Typescript for NodeJS.

If you haven't setup a NodeJS development environment before, read how to get started with NodeJS. You'll also need npm for easy JS dependency management.

This client uses Express4 for easy route management, read up on the docs to learn more about reading incoming JSON params, writing responses, etc.

Running the AI locally

Fork and clone this repo:

git clone git@github.com:miroesli/tyke.git
cd tyke

Install the client dependencies:

npm install

Create an .env file in the root of the project and add your environment variables (optional).

Run the server with auto-reloading on file change:

npm start

Test the client in your browser at http://localhost:5000

Running the Engine locally

Change your current directory to the battlesnake-engine folder:

cd battlesnake-engine

Run the engine in dev mode:

./engine dev

Open a browser and go to http://localhost:3010/

This will give you a web based environment to run the snake locally.

About

Battlesnake AI for play.battlesnake.io :snake:

License:MIT License


Languages

Language:TypeScript 100.0%