Module katan_ai.katan.board.hex_type

Module representing the resource afiiliated with a hex

Classes

class HexType (value, names=None, *, module=None, qualname=None, type=None, start=1)

The different types of hexes in the game.

Ancestors

  • enum.Enum

Class variables

var DESERT

The desert hex type

var FIELDS

The fields hex type

var FOREST

The forest hex type

var HILLS

The hills hex type

var MOUNTAINS

The mountains hex type

var PASTURE

The pasture hex type

Methods

def get_resource(self) ‑> Resource

Get the resource the player receives when a hex of this type is activated.

Returns

Resource
The resource the player would get
None
If the player would not get a resource (i.e. a desert hex)