I'd like to help you but first I have to see some code of yours since
my magic crystal ball broke when I gave it away for cleaning.
If you store your "board" in an array then moving is as easy as
swapping two fields.
Edit:
Oops. You made me feel challenged by it and I wrote a similar game
this night. Feel free to gather inspiration. If you don't understand a part
just ask and I (or somebody else) will explain.
http://nopaste.info/3f9d840950.html
Note: Mixing the array this way makes the puzzle come out unsolvable
very likely. So think of something else
Bookmarks