Robocode Tank Royale β
Build the best - destroy the rest!
β¨ Welcome β
Welcome to the Robocode docs. These docs are meant for people who are new to Robocode, as well as a reference guide to various aspects of the Robocode Tank Royale programming game.
π Play ranked in the Rumble β
The Tank Royale Rumble is the community's ranked competition, and you play it right from the desktop program. Open the Rumble menu to submit your bot, download other bots to practise against, run ranked battles and see how you stand.


π Get Started β
On this page you can pick articles on the menu on the left side to read about various topics.
If you are new to Robocode, you should start with:
- the Introduction to Robocode, and
- read the Getting Started, and then
- continue to My First Bot to create your first bot.
π The Book of Robocode
Want to go beyond the fundamentals? The Book of Robocode is the advanced companion to these docs, covering movement, targeting, radar control, energy management, and competition-level tactics for both Robocode and Tank Royale.
πΊοΈ Learning Roadmap β
Robocode mastery is a journey from fundamentals to advanced competitive strategies. We've organized documentation into a clear learning path:
π― Foundation (Start Here) β
Essential concepts everyone needs:
- Introduction - What is Robocode?
- Installation - Set up your environment
- Getting Started - Core concepts (rounds, turns, energy)
- My First Bot - Create your first bot
- Anatomy of a Bot - Understanding body, gun, and radar
- Coordinates and Angles - Arena coordinate system
- Physics - Movement, rotation, and bullet mechanics
π§ Intermediate Skills β
Build competent bots with solid fundamentals:
- Beyond the Basics - Event handling and logic flow
- Collision Mechanics - Wall/bot collision handling
- Testing & Debugging Guide - Test strategies and debugging
- Performance Optimization - Write efficient code
- Custom Game Setup - Configure battles and test scenarios
- Team Strategies - Team communication and coordination basics
π Advanced Topics (The Book of Robocode) β
Ready for advanced competitive strategies? These docs cover the fundamentals, while The Book of Robocode takes you further into competition-level tactics:
- Radar & Scanning - Perfect locks, spinning radar, melee strategies
- Advanced Targeting - GuessFactor targeting, pattern matching, virtual guns
- Movement & Evasion - Wave surfing, anti-gravity, bullet dodging
- Statistical Targeting - Segmentation, statistics-based targeting
- Energy & Scoring - Strategic resource management
π₯οΈ Tank Royale Viewer β
Want to visualize battles in style? Check out the Tank Royale Viewerβan amazing and beautiful web-based viewer for watching Robocode Tank Royale matches in real-time! Created by Jan Durovec (who also built the Recorder for Tank Royale's replay feature), this tool brings your battles to life with an interactive, modern interface.
Perfect for:
- π Displaying live battles on big monitors during competitions and tournaments
- π Understanding bot strategies and showcasing championship matches
Ideal for spectators, broadcasters, and tournament organizers! β‘
Give the Tank Royale Viewer a try!
π Thanks to the contributors β
Huge thanks to every contributor β you make this project shine! π
β Support Robocode β
If you are a fan of Robocode, you can support the project and me by buying some coffee π
