What is the SnakeBot Game?

The SnakeBot Game is a single elimination java programming contest created by Amaan Marfatia. The point of the contest is to create an AI to play against other players. This is mainly intended for AP Computer Science students but since it is easy to pick up, anyone in middle school or high school can submit an AI for the competition.

The Game

This game is similar to snakes where you try to eat food and grow in length. The difference is, that you have to create an AI for your snake that plays the game for you against another team’s AI snake. Each snake starts in one of the corners of the board with the length of one. The winner is the AI that reaches the length of ten or doesn’t die. Every time you eat a food piece on the board, your snake increases by the length of one. If you eat a part of the other snake, you also grow in length by one and from that point onward, the opponent’s snake disappears. However, if you try to eat the other snake’s head, you die. Eating any part of yourself, kills yourself and the opponent wins. You also die if you hit the wall like in a normal snake game.

The Rules

To Get Started