check overlap function for coin using pandas in Ludo python code and clickable dice without use of button in tkinter

Viewed 38

this is the link to my code

i1 = pd.self.r1
i2 = pd.self.b1
if(i1.overlaps(i2)): 
   self.create_canvas.move(self.b1, 135, 250)

This is just the part of code where I'm stuck.

I want to check whether the previous coin and the coin which moved now overlap. If they overlap, then the previous coin must move to its box back.

0 Answers
Related