def testHumanVsHuman(): B = Board() G = Game(B) G.run()
else: print "Invalid player configuration! Restarting configuration process." continue print("Please specify whether you want to play on the console or GUI.") line = raw_input("<c for console, g for gui>:") if line == "c" or line == "g": the_board = line configuration = False else: print "Invalid player configuration! Restarting configuration process." #Try Keyboard Interrupt catch if the_board == "c": #test_setup(G) G.run() else: root = tk.Tk() root.title("Wizard's Chess") test_setup(G) #G.setup() board = Gui_GameBoard(root, G) board.pack(side="top", fill="both", expand="true", padx=4, pady=4) board.draw_pieces() #board.canvas.update() #board.canvas.update() if isinstance(G.White_Player, AI): root.after(500, board.click())