Git Product home page Git Product logo

battlesnakets-agw's Introduction

Battlesnake TypeScript Starter Project Devcontainer

A devcontainer template adaptated from the official Battlesnake starter template written in Typescript, including the installation of the Battlesnake CLI and setup to test performance locally.

Technologies Used

This project uses TypeScript, Node.js, and Express. It also comes with an optional Dockerfile to help with deployment.

Run Your Battlesnake

Start your Battlesnake

npm run start

You should see the following output once it is running

Running Battlesnake at http://0.0.0.0:8000

Open localhost:8000 in your browser and you should see

{"apiversion":"1","author":"","color":"#888888","head":"default","tail":"default"}

Play a Game Locally

Install the Battlesnake CLI

Command to run a local game

battlesnake play -W 11 -H 11 --name 'TypeScript Starter Project' --url http://localhost:8000 -g solo --browser

Test your Battlesnake Performance

Command to execute the performance test locally:

npm run battlesnake

Next Steps

Continue with the Battlesnake Quickstart Guide to customize and improve your Battlesnake's behavior.

Note: To play games on play.battlesnake.com you'll need to deploy your Battlesnake to a live web server OR use a port forwarding tool like ngrok to access your server locally.

battlesnakets-agw's People

Contributors

gcharest avatar andrewleith avatar

Watchers

 avatar

battlesnakets-agw's Issues

Features shortlist

  • prioritize shortest path to closest nugget of food
  • prioritize shortest path to closest nugget of food when head of another snake isn’t closer
  • avoid cells where another snake is already
  • stay in bounds
  • avoid cells where another snake might make a move next (up, down, right, left of another snake’s head)
  • avoid cells where there is no exit path yet (getting a bit advanced)
  • prefer moving away from corners (PR #3)

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.