Module katan_ai.katan.development_card

Module representing a development card

Classes

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

A development card in a game of Catan.

Ancestors

  • enum.Enum

Class variables

var KNIGHT

The knight card

var MONOPOLY

The monopoly card

var ROAD_BUILDING

The road building card

var VICTORY_POINT

Generic type to represent the victory point cards (i.e. library)

var YEAR_OF_PLENTY

The year of plenty card

Static methods

def get_required_resources() ‑> Dict[Resource, int]

Get the resources required to build a development card.

Returns

How many of each resource is required to build a development card