File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,11 @@ def __init_subclass__(cls, **kwargs):
9292 cls ._extract_metadata_from_game (cls ._cached_game )
9393
9494
95+ ############################
96+ # Catalog games from files #
97+ ############################
98+
99+
95100class PrisonersDilemma (CatalogGameFromFile ):
96101 game_file = "pd.nfg"
97102 description = "Prisoner's Dilemma game."
@@ -104,6 +109,11 @@ class TwoStageMatchingPennies(CatalogGameFromFile):
104109 citation = "Example citation for Two-Stage Matching Pennies."
105110
106111
112+ ##########################################
113+ # Catalog games defined programmatically #
114+ ##########################################
115+
116+
107117class PrisonersDilemmaTestgame (CatalogGame ):
108118 title = "Test Prisoner's Dilemma"
109119 game_type = "nfg"
You can’t perform that action at this time.
0 commit comments