Map

class vindinium.models.Map(size)[source]

Bases: object

Represents static elements in the game, such as walls, paths, taverns, mines and spawn points.

size

int

the board size (in a single axis).

__getitem__(key)[source]

Returns an item in the map.

__init__(size)[source]

Constructor.

Parameters:size (int) – the board size.
__setitem__(key, value)[source]

Sets an item in the map.

__str__()[source]

Pretty map.