/cljssss

Battlesnake in Clojure

Primary LanguageClojure

cljssss

A Battlesnake written in Clojure.

Challenges

See https://play.battlesnake.com/challenges/

Training program

  • Avoid walls (commit)
  • Avoid yourself (commit)
  • Avoid other battlesnakes
  • Find food

Solo Survival

Survive N turns on a 7x7 board.

  • Survive 100: Done with iterative deepening depth-first search using the number of turns as a utility function (commit).

Development

Run the web server:

nix develop --command clojure -M -m thewagner.cljssss.web

Start the game by running battlesnake engine locally:

nix run .#battlesnake -- play --name cljssss --url http://localhost:8080 --viewmap