GithubHelp home page GithubHelp logo

rahatm1 / battlesnake-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brodyholden/battlesnake-node-snakenado

0.0 3.0 0.0 31 KB

A Simple BattleSnake AI Written in NodeJS

Home Page: http://battlesnake.io

JavaScript 100.00%

battlesnake-node's Introduction

battlesnake-node(js)

A simple BattleSnake AI written in Javascript for NodeJS.

To get started you'll need a working NodeJS development environment, and at least read the Heroku docs on deploying a NodeJS app.

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.

Deploy

Running the AI locally

Fork and clone this repo:

git clone [email protected]:sendwithus/battlesnake-node.git
cd battlesnake-node

Install dependencies:

npm install -g foreman  # Node implementation of Ruby Foreman
npm install

Run the server:

npm start

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

Deploying to Heroku

Click the Deploy to Heroku button at the top or use the command line commands below.

Create a new NodeJS Heroku app:

heroku create [APP_NAME]

Push code to Heroku servers:

git push heroku master

Open Heroku app in browser:

heroku open

Or go directly via http://APP_NAME.herokuapp.com

View/stream server logs:

heroku logs --tail

battlesnake-node's People

Contributors

rtullybarr avatar wesleycyu avatar bvanvugt avatar therafatm avatar

Watchers

James Cloos avatar  avatar Rahat Mahbub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.