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


    r = int(pos[1]//IMAGE_SIZE)

    c = int(pos[0]//IMAGE_SIZE)



    if r

<

3

 

and

 

c

<

3:



        

if

 

board

[

r

][

c

is

 

None:



            

return



        

else:



            

current_square

 =