Skip to content

Commit f5b7fcb

Browse files
organize catalog game classes with section headers for better readability
1 parent 70f176f commit f5b7fcb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/pygambit/catalog/catalog.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
95100
class 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+
107117
class PrisonersDilemmaTestgame(CatalogGame):
108118
title = "Test Prisoner's Dilemma"
109119
game_type = "nfg"

0 commit comments

Comments
 (0)