DTC Logo

Game rules

Your bot will play 1v1 matches of the board game Azul against other bots. Below, the rules and visualization of this game are explained.

Azul is designed by Michael Kiesling and published by Plan B Games Inc.

Layout

Marked example of the board

Each player has their own board [A]. Each board consists of pattern lines [B], a wall [C], and a floor line [D]. There's also a space for your team's name [E] and score [F]. Next to the two player boards, there are 5 factory displays [G] and the table center [H].

In total, 100 tiles are present in the game, 20 of each color: green, orange, blue, yellow, and red. Every round the factory displays are restocked with 4 tiles each. An additional tile called the starting player marker [I] is put in the table center every round. All tiles not shown on the boards or the table are stored in the bag (not shown).

Objective

The goal is to score the greatest number of points by filling your wall with tiles. The player who first completes a horizontal line of 5 tiles on their wall ends the game.

Gameplay

The game consists of multiple rounds, which in turn consist of three phases:

  1. Tile collection
  2. Wall tiling
  3. Restocking

Tile collection

During this phase, you try to complete as many pattern lines as possible by picking tiles from factory displays and the table center. The phase ends when all factory displays and the table center are empty, which is when the wall tiling phase starts.

Picking tiles can be done in two ways:

  1. Pick all tiles of the same color from one of the factory displays. The remaining tiles from that factory display are moved to the table center.
  2. Pick all tiles of the same color from the table center. If you are the first to do so, you must also take the starting player marker. This will be placed onto the leftmost free space on your floor line. Note that you may never only pick the starting player marker.

After you have chosen your tiles, you pick 1 of the 5 pattern lines on your board and add the tiles one by one, from left to right to your chosen pattern line. Keep in mind that the first line can hold 1 tile, the second 2, etc.

If the chosen pattern line is already partly filled with tiles, you are only allowed to add tiles of the same color to it.

Once a pattern line is completely filled, that line is complete and no more tiles can be added to it. Any leftover tiles you may still have from picking them from the table center or factory displays are placed on the floor line, from left to right. For more information see the section on the floor line.

In later rounds, an additional rule holds when placing tiles on the pattern lines: if the corresponding row on your wall already holds a tile of the color you have chosen, you may not place the tiles you picked on that pattern line.

Floor line

Tiles you picked that cannot be placed on your pattern lines must be placed on your floor line, from left to right. In fact, you are always allowed to do so. These tiles will deduct points during the wall tiling phase.

If your floor line is already completely filled (i.e., 7 tiles are present on the floor line) any additional tiles are discarded and do not deduct additional points.

Wall tiling

In this phase, tiles are moved from complete pattern lines to the wall. This is carried out simultaneously by all players

From top to bottom, a tile from each complete pattern line is moved to the space of the same color in the corresponding row of the wall. The other tiles on that pattern line are returned to the bag (in case of the first line, there are no other tiles). Complete pattern lines are thus emptied, while incomplete pattern lines remain partly filled for the next round.

After a tile is moved to the wall, you earn points depending on its placement:

For an example of this calculation, please inspect a game played between the provided example bots.

After all pattern lines are processed, the floor line is checked as well. For each tile on the floor line, a specific number of points is deducted. See the picture below for these amounts (from left to right: -1, -1, -2, -2, -2, -3, -3). All these tiles return to the bag. The total number of points cannot drop below 0.

Marked example of the board

Restocking

If after the wall tiling phase neither walls contain a complete row, the next round starts. The empty factory displays are filled with 4 random tiles from the bag. Furthermore, the starting player marker is put in the table center again.

End of the game

If after the wall tiling phase one or both walls contain a complete row, the game ends. Then, additional points are scored when the following goals have been achieved:

The player with the greatest number of points wins the game. In case of a tie, the player with more complete horizontal lines on their wall wins the game. If the tie is not broken after this, the victory is shared.