Robocode.TankRoyale.BotApi
0.34.0
See the version list below for details.
dotnet add package Robocode.TankRoyale.BotApi --version 0.34.0
NuGet\Install-Package Robocode.TankRoyale.BotApi -Version 0.34.0
<PackageReference Include="Robocode.TankRoyale.BotApi" Version="0.34.0" />
<PackageVersion Include="Robocode.TankRoyale.BotApi" Version="0.34.0" />
<PackageReference Include="Robocode.TankRoyale.BotApi" />
paket add Robocode.TankRoyale.BotApi --version 0.34.0
#r "nuget: Robocode.TankRoyale.BotApi, 0.34.0"
#:package Robocode.TankRoyale.BotApi@0.34.0
#addin nuget:?package=Robocode.TankRoyale.BotApi&version=0.34.0
#tool nuget:?package=Robocode.TankRoyale.BotApi&version=0.34.0
Robocode Tank Royale - .NET Bot API
<img src="https://raw.githubusercontent.com/robocode-dev/tank-royale/refs/heads/main/gfx/Tank/Tank-logo.svg" width="150" alt="Robocode logo">
Build the best - destroy the rest!
The .NET Bot API for Robocode Tank Royale — the next evolution of the classic Robocode programming game where you code virtual tanks (bots) to battle in a virtual arena.
About Robocode Tank Royale
Robocode is a programming game where your task is to code a bot (a virtual tank) that competes against other bots in a real-time battle arena. You are the programmer — the bot acts entirely on your code.
Tank Royale brings Robocode to the next level with:
- Network-based battles via WebSocket connections
- Multiple programming languages and platforms
- Real-time battles with multiple bots
Installation
Add the .NET Bot API to your project using the .NET CLI:
dotnet add package Robocode.TankRoyale.BotApi
To install a specific version, add the --version option:
dotnet add package Robocode.TankRoyale.BotApi --version 0.34.0
Requirements
- .NET 8 or higher
- Windows, macOS, or Linux
Quick Start
Get started quickly with the official tutorial and sample bot:
- 📖 Tutorial: My First Bot for .NET — https://robocode-dev.github.io/tank-royale/tutorial/dotnet/my-first-bot-for-dotnet.html
- 📁 Sample code (C#): MyFirstBot — https://github.com/robocode-dev/tank-royale/tree/main/sample-bots/dotnet/MyFirstBot
How to run:
- Install and start the Robocode Tank Royale GUI from the releases page (it also starts the game server)
- Build and run your bot project
- In the GUI, add your bot process and start a battle
Features
The .NET Bot API provides:
- Full Bot Control: Move your tank, rotate gun and radar, fire bullets
- Event Handling: Respond to hits, bot scanned, bullet impacts, and more
- Battle Information: Access to battle state, opponent positions, and game rules
- Debugging Support: Built-in debugging and logging capabilities
Getting Started
- Install the package:
dotnet add package Robocode.TankRoyale.BotApi - Download Robocode Tank Royale (GUI + server) from the releases page: https://github.com/robocode-dev/tank-royale/releases
- Create your bot: follow the .NET tutorial or copy the MyFirstBot sample
- Run battles: start the GUI, add your bot process, and watch the fight
Documentation & Resources
- 📖 Official Documentation: robocode-dev.github.io/tank-royale
- .NET API Reference: https://robocode-dev.github.io/tank-royale/api/dotnet/
- Getting Started: https://robocode-dev.github.io/tank-royale/tutorial/getting-started.html
- 🤖 My First Bot: Create Your First Bot
- Sample Bots: https://github.com/robocode-dev/tank-royale/tree/main/sample-bots/dotnet
- Source Code: https://github.com/robocode-dev/tank-royale/tree/main/bot-api/dotnet
Supported Platforms
Robocode Tank Royale runs on:
- Windows
- macOS
- Linux
The .NET Bot API works with .NET 8 or higher on all supported platforms.
Community & Support
- GitHub Issues: Report bugs and request features
- Discussions: Community discussions and help
- Contributing: Check out our Contributing Guide
Development Status
🚧 Work in Progress: The .Net Bot API is currently under active development. Features and APIs may change before the stable release.
License
Licensed under the Apache License 2.0
Copyright
Copyright © 2022 Flemming N. Larsen
Ready to build the best tank and destroy the rest? Start coding your bot today! 🚀🎯
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- JetBrains.Annotations (>= 2025.2.2)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.Configuration.Json (>= 8.0.1)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.34.1 | 373 | 11/14/2025 |
| 0.34.0 | 187 | 10/19/2025 |
| 0.33.1 | 263 | 9/8/2025 |
| 0.33.0 | 167 | 9/6/2025 |
| 0.32.1 | 287 | 7/1/2025 |
| 0.32.0 | 200 | 6/24/2025 |
| 0.31.0 | 208 | 6/19/2025 |
| 0.30.2 | 218 | 6/2/2025 |
| 0.30.0 | 505 | 2/7/2025 |
| 0.29.0 | 183 | 1/19/2025 |
| 0.28.1 | 210 | 1/1/2025 |
| 0.28.0 | 183 | 12/21/2024 |
| 0.27.0 | 193 | 12/2/2024 |
| 0.26.1 | 210 | 11/3/2024 |
| 0.26.0 | 195 | 10/20/2024 |
| 0.25.0 | 199 | 10/11/2024 |
| 0.24.4 | 234 | 9/19/2024 |
| 0.24.3 | 221 | 8/26/2024 |
| 0.24.2 | 222 | 8/22/2024 |
| 0.24.1 | 206 | 7/13/2024 |
| 0.24.0 | 208 | 6/14/2024 |
| 0.23.2 | 210 | 5/21/2024 |
| 0.23.1 | 193 | 5/18/2024 |
| 0.23.0 | 204 | 4/29/2024 |
| 0.22.2 | 227 | 3/29/2024 |
| 0.22.1 | 295 | 1/6/2024 |
| 0.22.0 | 236 | 12/3/2023 |
| 0.21.0 | 231 | 10/2/2023 |
| 0.20.1 | 238 | 9/14/2023 |
| 0.20.0 | 221 | 8/23/2023 |
| 0.19.3 | 276 | 8/4/2023 |
| 0.19.2 | 356 | 4/5/2023 |
| 0.19.1 | 364 | 2/26/2023 |
| 0.19.0 | 387 | 1/28/2023 |
| 0.18.0 | 422 | 12/18/2022 |
| 0.17.4 | 496 | 10/15/2022 |
| 0.17.3 | 496 | 10/2/2022 |
| 0.17.1 | 504 | 9/15/2022 |
| 0.17.0 | 519 | 9/6/2022 |
| 0.16.0 | 501 | 8/31/2022 |
| 0.15.0 | 521 | 8/17/2022 |
| 0.14.3 | 522 | 8/7/2022 |
| 0.14.2 | 527 | 7/29/2022 |
| 0.14.1 | 535 | 7/14/2022 |
| 0.14.0 | 552 | 7/3/2022 |
| 0.13.4 | 599 | 6/6/2022 |
| 0.13.3 | 582 | 6/1/2022 |
| 0.13.2 | 565 | 5/19/2022 |
| 0.13.1 | 548 | 5/18/2022 |
| 0.13.0 | 555 | 5/3/2022 |
| 0.12.0 | 620 | 4/17/2022 |
| 0.11.2 | 589 | 4/12/2022 |
| 0.11.0 | 587 | 4/1/2022 |
| 0.10.0 | 629 | 3/13/2022 |
| 0.9.12 | 586 | 2/10/2022 |
| 0.9.11 | 409 | 1/16/2022 |
Version 0.34.0
-----------------
This is a beta version (0.xx). Expect some changes to the API before version 1.0