Robocode.TankRoyale.BotApi
0.38.2
dotnet add package Robocode.TankRoyale.BotApi --version 0.38.2
NuGet\Install-Package Robocode.TankRoyale.BotApi -Version 0.38.2
<PackageReference Include="Robocode.TankRoyale.BotApi" Version="0.38.2" />
<PackageVersion Include="Robocode.TankRoyale.BotApi" Version="0.38.2" />
<PackageReference Include="Robocode.TankRoyale.BotApi" />
paket add Robocode.TankRoyale.BotApi --version 0.38.2
#r "nuget: Robocode.TankRoyale.BotApi, 0.38.2"
#:package Robocode.TankRoyale.BotApi@0.38.2
#addin nuget:?package=Robocode.TankRoyale.BotApi&version=0.38.2
#tool nuget:?package=Robocode.TankRoyale.BotApi&version=0.38.2
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.38.2
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.4)
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.0)
- Microsoft.Extensions.Configuration.Json (>= 10.0.0)
- 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.38.2 | 84 | 3/29/2026 |
| 0.38.1 | 85 | 3/23/2026 |
| 0.38.0 | 86 | 3/21/2026 |
| 0.37.0 | 97 | 3/4/2026 |
| 0.36.1 | 93 | 2/24/2026 |
| 0.36.1-beta | 88 | 2/19/2026 |
| 0.36.0 | 104 | 2/16/2026 |
| 0.35.5 | 106 | 2/14/2026 |
| 0.35.4 | 100 | 2/12/2026 |
| 0.35.3 | 105 | 2/9/2026 |
| 0.35.2 | 104 | 1/28/2026 |
| 0.35.1 | 101 | 1/27/2026 |
| 0.35.0 | 104 | 1/26/2026 |
| 0.34.2 | 241 | 12/25/2025 |
| 0.34.1 | 821 | 11/14/2025 |
| 0.34.0 | 237 | 10/19/2025 |
| 0.33.1 | 328 | 9/8/2025 |
| 0.33.0 | 213 | 9/6/2025 |
| 0.32.1 | 341 | 7/1/2025 |
| 0.32.0 | 240 | 6/24/2025 |
Version 0.38.2
-----------------
This is a beta version (0.xx). Expect some changes to the API before version 1.0