Skip to content

Cornelius, the Corn Snake who codes, is a Rusty Battlesnake Baby.

License

Notifications You must be signed in to change notification settings

ChaelCodes/CorneliusCodes

Repository files navigation

I would like to introduce you to my Battlesnake friend, Cornelius

a corn snake

Cornelius is built with Rust, and they are a wiggly darling.

Really Serious Snake Etiquette

Remember to always treat Cornelius like a proper little snake. Don't refer to their brain as "code"; respect their snakeness. Cornelius uses "They"/"Them" pronouns.

For example, rather than saying "We need to fix the bug where they don't go to 0, 0", you should say "The poor little love, Cornelius, is afraid of 0, 0 on the board and could do with some help getting there".

Technologies Used

Running Tests

Cornelius's test suite can be run with cargo test.

Running in container

You can run Battlesnake in container with Docker:

docker build --build-arg PORT=3000 -t cornelius-codes .
docker run --name cornelius-codes -d -p 3000:3000 cornelius-codes

The port build argument is optional and will default to 8080. Remember to expose it to host in docker run command

Playing Battlesnake

Completing Challenges

If you're looking for the Single Player Mode of Battlesnake, or something to practice with between events, check out Challenges.

Joining a Battlesnake Arena

Once you've made your Battlesnake behave and survive on its own, you can enter it into the Global Battlesnake Arena to see how it performs against other Battlesnakes worldwide.

Arenas will regularly create new games and rank Battlesnakes based on their results. They're a good way to get regular feedback on how well your Battlesnake is performing, and a fun way to track your progress as you develop your algorithm.

Joining a Battlesnake League

Want to get out there to compete and win prizes? Check out the Quick Start League Guide for information on the how and when of our competitive seasons.


Resources

All documentation is available at docs.battlesnake.com, including detailed Guides, API References, and Tips.

You can also join the Battlesnake Developer Community on Discord. We have a growing community of Battlesnake developers of all skill levels wanting to help everyone succeed and have fun with Battlesnake :)

Check out live Battlesnake events on Twitch and see what is happening when on the Calendar.

Want to contribute to Battlesnake? We have a number of open-source codebases and would love for you to get involved! Check out our page on Contributing.

About

Cornelius, the Corn Snake who codes, is a Rusty Battlesnake Baby.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •