如何用Python开发拼图游戏( 七 )



            square

_center = all_

coordinates[idx]



            if square_center is None:

                board[

i

][

j

] = None

            else:

                board[

i

][

j

] = Square(square_center)





def play_game():



    global steps

    steps = 0

    init_board()