Exemplo n.º 1
0
count = 0





while(True):
    game.printBoard()
    didMove = False
    white_valid_moves.clear()
    game.location_of_white()

    for i in range(len(game.list_of_white)):
        coordinates = game.list_of_white[i]
        #print("Coordinates {0}".format(coordinates))
        if game.check_valid_move( coordinates[0],coordinates[1], White, Black,):
            white_valid_moves.append(coordinates)


    if len(white_valid_moves) == 0:
        print("Player 2 Wins!")
        break# game over

    while(didMove == False):
        print("Player ones turn")
        print("Here are your valid moves")
        print(white_valid_moves)

        choice = int(input("Enter a choice corresponding to the index of the list"))