Module katan_ai.katan.board.building

Module representing a base building model as well as a road (PathBuilding)

Classes

class Building (owner: Player, building_type: BuildingType)

A building on the Catan board.

Attributes

owner : Player
The player who owns this building
building_type : BuildingType
The type of building this is

Args

owner
The player who owns this building
building_type
The type of building this is

Subclasses

class PathBuilding (owner: Player, building_type: BuildingType, path_coords: Set[Coords])

A building that is built on a path. In the base game, only roads.

Attributes

owner : Player
The player who owns this building
building_type : BuildingType
The type of building this is
path_coords : Set[Coords]
The coordinates of the two intersections the building is connecting

Args

owner
The player who owns this building
building_type
The type of building this is
path_coords
The coordinates of the two intersections the building is connecting

Ancestors