Skip to content

Reading board files

Harry Xu edited this page Feb 16, 2019 · 1 revision

Board layout

First line

The first line of the board file, for example boards/tiny.txt is a series of parameters. It is listed as follows: (width, height, numbers of companies, number of bots, view distance).

Board specifics

We use the following legend

  • F : free tile, anyone can move here
  • B : start tile, your bots will start here
  • S[0-9]+ : A small company, company number given by the suffix
  • M[0-9]+ : A medium company, company number given by the suffix
  • L[0-9]+ : A large company, company number given by the suffix
  • E[0-9]+ : End of the line for this booth, this is the maximum possible line length
  • [0-9]+ : part of the line for a booth (given by the number)

Lines must be straight (as well as booths) and the start of a line (indicated by the opposite of End of Line Tile) must be adjacent to the booth.

Clone this wiki locally