Development Cards

class src.development_cards.Chapel[source]

Derived Class from DevelopmentCard abstract class

description()[source]

Displays a string indicating the amount of victory points gained from building a Chapel

Returns:

A string displaying the amount of victory points gained from building a Chapel

Return type:

str

vp_awarded()[source]

Amount of victory points awarded

Returns:

Displays an integer value of the number of victory points to be awarded

Return type:

int

class src.development_cards.DevelopmentCard[source]

Abstract class template for development cards and controls behaviour for all development card types, also inherits behaviour from abstract class so that the correct image files are retrieved for each development card.

Parameters:

Abstract (type) – abstract base class in utils.py

asset()[source]

Returns development card asset

Returns:

Development Card asset

Return type:

str

cost()[source]

Returns cost of development card

Returns:

An interger representing the cost of the card

Return type:

int

abstract description()[source]

Abstract method representing description of a development card and the outcome

Should be implemented by derived classes to return card’s description

Returns:

A String representing the description

name()[source]

Returns name of development card

Returns:

Development Card name

Return type:

Development Card class

abstract vp_awarded()[source]

Abstract method representing how many victory points should be awarded

Should be implemented by derived classes to return number of victory points

Returns:

An integer representing victory points

class src.development_cards.DevelopmentCards(value)[source]

Enumerations of development cards available in the game.

Parameters:

Enum (Enum) – Enum base class.

Returns:

The DevelopmentCards object with corresponding card object.

Return type:

DevelopmentCards

asset()[source]

Get the asset (i.e. image) of the development card.

Returns:

The asset of the development card.

Return type:

str

description()[source]

Get the description of the development card.

Returns:

The description of the development card.

Return type:

str

vp_awarded()[source]

Get the victory point awarded by the development card.

Returns:

The victory point awarded by the development card.

Return type:

int

class src.development_cards.Knight[source]

Derived Class from DevelopmentCard abstract class

cost()[source]

Returns cost of development card

Returns:

An interger representing the cost of the card

Return type:

int

description()[source]

Displays a string indicating how the player is now allowed to move the robber

Returns:

A string displaying player’s new priviledges

Return type:

str

vp_awarded()[source]

Amount of victory points awarded

Returns:

Displays an integer value of the number of victory points to be awarded

Return type:

int

class src.development_cards.LargestArmy[source]

Derived Class from DevelopmentCard abstract class

description()[source]

Displays a string indicating the requirements met to obtain this card

Returns:

A string displaying the rules around this card

Return type:

str

vp_awarded()[source]

Amount of victory points awarded

Returns:

Displays an integer value of the number of victory points to be awarded

Return type:

int

class src.development_cards.Library[source]

Derived Class from DevelopmentCard abstract class

description()[source]

Displays a string indicating that the player has gained a victory point

Returns:

A string displaying a new victory point

Return type:

str

vp_awarded()[source]

Amount of victory points awarded

Returns:

Displays an integer value of the number of victory points to be awarded

Return type:

int

class src.development_cards.LongestRoad[source]

Derived Class from DevelopmentCard abstract class

description()[source]

Displays a string indicating the requirements the player has met to gain this card

Returns:

A string displaying the rules associated with this card

Return type:

str

vp_awarded()[source]

Amount of victory points awarded

Returns:

Displays an integer value of the number of victory points to be awarded

Return type:

int

class src.development_cards.Market[source]

Derived Class from DevelopmentCard abstract class

description()[source]

Displays a string indicating that the player has gained a victory point

Returns:

A string displaying a new victory point

Return type:

str

vp_awarded()[source]

Amount of victory points awarded

Returns:

Displays an integer value of the number of victory points to be awarded

Return type:

int

class src.development_cards.Monopoly[source]

Derived Class from DevelopmentCard abstract class

description()[source]

Displays a string indicating that the player’s new priviledges

Returns:

A string outlining what resources the player is now entitled to

Return type:

str

vp_awarded()[source]

Amount of victory points awarded

Returns:

Displays an integer value of the number of victory points to be awarded

Return type:

int

class src.development_cards.Palace[source]

Derived Class from DevelopmentCard abstract class

description()[source]

Displays a string indicating that the player has gained a victory point

Returns:

A string displaying a new victory point

Return type:

str

vp_awarded()[source]

Amount of victory points awarded

Returns:

Displays an integer value of the number of victory points to be awarded

Return type:

int

class src.development_cards.RoadBuilding[source]

Derived Class from DevelopmentCard abstract class

description()[source]

Displays a string indicating that the player can place 2 new roads

Returns:

A string displaying the players road building priviledges

Return type:

str

vp_awarded()[source]

Amount of victory points awarded

Returns:

Displays an integer value of the number of victory points to be awarded

Return type:

int

class src.development_cards.University[source]

Derived Class from DevelopmentCard abstract class

description()[source]

Displays a string indicating that the player has gained a victory point

Returns:

A string displaying a new victory point

Return type:

str

vp_awarded()[source]

Amount of victory points awarded

Returns:

Displays an integer value of the number of victory points to be awarded

Return type:

int

class src.development_cards.VictoryPointCard[source]
description()[source]

Abstract method representing description of a development card and the outcome

Should be implemented by derived classes to return card’s description

Returns:

A String representing the description

vp_awarded()[source]

Abstract method representing how many victory points should be awarded

Should be implemented by derived classes to return number of victory points

Returns:

An integer representing victory points

class src.development_cards.YearofPlenty[source]

Derived Class from DevelopmentCard abstract class

description()[source]

Displays a string indicating that the player can pick 2 resources from the bank

Returns:

A string displaying the player’s new resource priviledges

Return type:

str

vp_awarded()[source]

Amount of victory points awarded

Returns:

Displays an integer value of the number of victory points to be awarded

Return type:

int