What is Battlecode?

Battlecode is a programming competition run by MIT involving game strategy and artificial intelligence. I competed in the high school category as well as the overall competition and my team placed in the top 24 overall and top 6 among high school teams.

How did your AI work?

Our game player was an intricate combination of communication, fuel gathering, and attacking strategies. Since we were given a limited amount of resources to send messages, we had to come up with an 8-bit encoding scheme that could pass all the information we needed.

Additionally, we had to determine a troop building strategy, which was handled by creating an "event" system that determined the optimal troops and created different events, including defense, attacking, and fuel gathering based on the surrounding troops and what events had previously occurred.

You can check out our code on GitHub.