Robocode.TankRoyale.BotApi 0.34.1

dotnet add package Robocode.TankRoyale.BotApi --version 0.34.1
                    
NuGet\Install-Package Robocode.TankRoyale.BotApi -Version 0.34.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Robocode.TankRoyale.BotApi" Version="0.34.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Robocode.TankRoyale.BotApi" Version="0.34.1" />
                    
Directory.Packages.props
<PackageReference Include="Robocode.TankRoyale.BotApi" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Robocode.TankRoyale.BotApi --version 0.34.1
                    
#r "nuget: Robocode.TankRoyale.BotApi, 0.34.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Robocode.TankRoyale.BotApi@0.34.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Robocode.TankRoyale.BotApi&version=0.34.1
                    
Install as a Cake Addin
#tool nuget:?package=Robocode.TankRoyale.BotApi&version=0.34.1
                    
Install as a Cake Tool

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.1

Requirements

  • .NET 8 or higher
  • Windows, macOS, or Linux

Quick Start

Get started quickly with the official tutorial and sample bot:

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

  1. Install the package: dotnet add package Robocode.TankRoyale.BotApi
  2. Download Robocode Tank Royale (GUI + server) from the releases page: https://github.com/robocode-dev/tank-royale/releases
  3. Create your bot: follow the .NET tutorial or copy the MyFirstBot sample
  4. Run battles: start the GUI, add your bot process, and watch the fight

Documentation & Resources

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

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 © 2022 Flemming N. Larsen


Ready to build the best tank and destroy the rest? Start coding your bot today! 🚀🎯

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1
-----------------
This is a beta version (0.xx). Expect some changes to the API before version 1.0