i1 = pd.self.r1
i2 = pd.self.b1
if(i1.overlaps(i2)):
self.create_canvas.move(self.b1, 135, 250)
Here self.r1,self.b1 are different color coin r1 is red's 1st coin similarly b1 is for blue 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.
for more please view the code here :- click here