ByteBrawl - Quick Start - Builder Documentation

Quick Start

Welcome to ByteBrawl! Whether you're new or just need a refresher, this guide will quickly show you how to make a functional ByteBot.

First, open up the builder:

Builder

Then, click "Create a New Project", enter any name, and click "Create".

You have now entered the project editor! On the left is the code editor, and on the right is the match visualization.

The code editor on the left should have some default code. However, you only need to focus on this for now:

This is the OnGameStep method, which is called every turn of the game. This is where you will add your bot's logic. For now, we will just add some simple code to make our bot move forward every turn:

Now, click the blue "Start Match" button below the code editor to test your bot!

You should see your bot moving forward every turn. Congratulations, you have made a functional ByteBot! However, you might notice that even on your bot's attack turn, it moves forward anyways. The next step is to understand the match flow:

Match Flow

With this knowledge, you can start using other methods like OnAttackStep and OnDefenseStep to make your bot behave differently on attack and defense turns. To learn more about these methods and other information about a ByteBot, check out the ByteBot class documentation:

ByteBot Class