Skip to content

Files

Latest commit

 

History

History
23 lines (17 loc) · 948 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 948 Bytes

battlesnek

My API for Battlesnake.

Getting Started

To run this api locally, simply run make build && make run, and it will launch the server on localhost:8080. It follows the API defined in the Battlesnake docs. There is an additional /health endpoint.

Structure

cmd

cmd/server defines the server functionality for the server. This is where the handler and routes are defined.

internal

internal contains general functionality that can be abstracted for the program. This includes structs, errors, and packages.

battle contains different implementations of the snake interface.

TODO

  • Deployments with Github Actions and Heroku
  • Set up base snake API
  • Create a more intelligent snake
  • Dynamically switch snakes with authenticated endpoint
  • Add testing suite
  • Prioritize directions