I am making an sliding puzzle game as my college project. The game concept is: you have a 3x3 table but with 8 buttons. When you click a button it have to move itself to an empty place. Is there any way to check if there's an empty place arround my button?

1 Answers

0
Community On

you can put a boolean field in your button class and check it when user requests to move if you want I can write the exact code. Good Luck!