コード例 #1
0
ファイル: playoffs.py プロジェクト: drydenb/go_engine
    def initialise_from_control_file(self, config):
        Competition.initialise_from_control_file(self, config)

        try:
            matchup_defaults = load_settings(tournaments.matchup_settings, config, allow_missing=True)
        except ValueError, e:
            raise ControlFileError(str(e))
コード例 #2
0
ファイル: playoffs.py プロジェクト: BenisonSam/goprime
    def initialise_from_control_file(self, config):
        Competition.initialise_from_control_file(self, config)

        try:
            matchup_defaults = load_settings(tournaments.matchup_settings,
                                             config,
                                             allow_missing=True)
        except ValueError, e:
            raise ControlFileError(str(e))
コード例 #3
0
    def initialise_from_control_file(self, config):
        Competition.initialise_from_control_file(self, config)

        matchup_settings = [
            setting for setting in competitions.game_settings
            if setting.name not in ('handicap', 'handicap_style')
        ] + [
            Setting('rounds', allow_none(interpret_int), default=None),
        ]
        try:
            matchup_parameters = load_settings(matchup_settings, config)
        except ValueError, e:
            raise ControlFileError(str(e))
コード例 #4
0
ファイル: allplayalls.py プロジェクト: Aleum/MiniGo
    def initialise_from_control_file(self, config):
        Competition.initialise_from_control_file(self, config)

        matchup_settings = [
            setting for setting in competitions.game_settings
            if setting.name not in ('handicap', 'handicap_style')
            ] + [
            Setting('rounds', allow_none(interpret_int), default=None),
            ]
        try:
            matchup_parameters = load_settings(matchup_settings, config)
        except ValueError, e:
            raise ControlFileError(str(e))
コード例 #5
0
ファイル: playoffs.py プロジェクト: drydenb/go_engine
 def control_file_globals(self):
     result = Competition.control_file_globals(self)
     result.update({"Matchup": Matchup_config})
     return result
コード例 #6
0
 def control_file_globals(self):
     result = Competition.control_file_globals(self)
     result.update({
         'Competitor': Competitor_config,
     })
     return result
コード例 #7
0
ファイル: playoffs.py プロジェクト: BenisonSam/goprime
 def control_file_globals(self):
     result = Competition.control_file_globals(self)
     result.update({
         'Matchup': Matchup_config,
     })
     return result
コード例 #8
0
ファイル: allplayalls.py プロジェクト: Aleum/MiniGo
 def control_file_globals(self):
     result = Competition.control_file_globals(self)
     result.update({
         'Competitor' : Competitor_config,
         })
     return result