示例#1
0
    def __init__(self, params=None):
        """
        Constructor
        """
        if params is None:
            params = {"algorithm": "DEFAULT_ALGORITHM_NAME"}

        SudokuCommand.__init__(self, params)
示例#2
0
 def __init__(self, params=None):
     '''
     Constructor
     '''
     if params is None:
         params = {'level': 'DEFAULT_LEVEL_NAME'}
     
     SudokuCommand.__init__(self, params)
示例#3
0
文件: About.py 项目: pysudoku/sudoku
 def __init__(self, params):
     '''
     Constructor
     '''
     SudokuCommand.__init__(self, params)
示例#4
0
 def __init__(self, params):
     """
     Constructor
     """
     SudokuCommand.__init__(self, params)
示例#5
0
 def test_when_a_game_is_given_then_should_be_set_the_game(self):
     cmd = SudokuCommand(self.readconfig_parameters)
     game = Game()
     cmd.set_game(game)
     self.assertEqual(game, cmd.game)