예제 #1
0
def main():
    """Play a game of exasott in the shell.
    
    """
    game = GameInterface(Game(), shell_move_getter,
                         victory_handler = shell_victory_handler)
    game.play()
예제 #2
0
    def test_game_interface(self):
        """ The mock interfaces and win conditions should result in a trivial 
        win for blue. The mock_move_getter then returns the name of the winner 
        reversed.

        """
        interface = GameInterface(self.game, self.mock_red_move_getter,
                                  self.mock_blue_move_getter,
                                  self.mock_win_handler)

        assert interface.play() == "eulb"