Third programming contest – Maps

Creating own maps

If you want you can create own maps for testing but you should follow some rules:

  • The map is defined by a map file and an optional toxic file. If no toxic file exists the minimal toxic value of 0.01 will be used for every field.
  • Every line in the files must have the same number of characters (spaces also count).
  • If there is a toxic file it has to contain the same number of columns and rows/lines as the map file.
  • You do not need to surround the gaming area with walls.
  • Permitted characters in the map file:
    • hash # – wall
    • space – empty field
  • Permitted characters in the toxic file:
    • hash # – toxic value of 0.2
    • space – toxic value of 0.01
    • digits 1 to 0 – toxic value between 0.02 and 0.2 in steps of 0.02

If you want to create a new map you should first create the map file and save it afterwards as filename.toxic. So you can better see where the walls and doors are, as these fields do not need any toxic value (but it is no problem if they have one).

previous page next page