Skip to content

Latest commit

 

History

History
44 lines (38 loc) · 1.56 KB

index.mdx

File metadata and controls

44 lines (38 loc) · 1.56 KB
title Cambridge Battlecode
description Documentation for the Cambridge Battlecode programming competition.

<img className="block dark:hidden" src="/images/battlecode-logo-dark.png" alt="Cambridge Battlecode" style={{ maxWidth: 400, marginBottom: 16 }} /> <img className="hidden dark:block" src="/images/battlecode-logo-light.png" alt="Cambridge Battlecode" style={{ maxWidth: 400, marginBottom: 16 }} />

Cambridge Battlecode is a programming competition where you write Python bots that compete in a turn-based strategy game. Your bots control autonomous mining fleets on Titan — harvesting resources, building infrastructure, and destroying the enemy core.

For competition details, dates, prizes, and eligibility, visit the main website.

Quick start

pip install cambc
cambc starter
cambc run starter starter --watch
Install the CLI and run `cambc starter` to set up your project. Learn the basics: spawning builder bots, placing conveyors, and harvesting resources. Full game specification — map, resources, units, buildings, turrets, and win conditions. Every method available to your bot via the Controller object.