Beispiel #1
0
 def __init__(self):
     """ Show options screen and start game modules"""
     # start
     self.gamma = 0.5  #discount factor
     self.learning_rate = 0.1
     self.gui = ui.Gui()
     self.board = board.Board()
     self.get_options()
Beispiel #2
0
    def __init__(self) -> None:
        """
        Initialize options and game screen, and sets up two white
        stones and two black stones in the middle of the board.
        """

        # start
        self.gui = ui.Gui()
        self.board = board.Board()
        self.get_options()
Beispiel #3
0
 def __init__(self):
     
    
     self.gui = ui.Gui()
     self.board = board.Board()
     self.get_options()
Beispiel #4
0
 def __init__(self):
     """ Show options screen and start game modules"""
     # start
     self.gui = ui.Gui()
     self.board = board.Board()
     self.get_options()
Beispiel #5
0
    def __init__(self):

        # start
        self.gui = ui.Gui()
        self.board = board.Board()
        self.gui.show_menu(self.start)
Beispiel #6
0
def main():
    # initialize the pygame module
    gui = ui.Gui()
    board = Board()
    n_p, o_p = get_options(gui, board)
    run(gui, board, n_p, o_p)