15 puzzle, help getting started.
For a school project, I am creating the old "15 puzzle" in which the user has to solve the puzzle by sliding 1 of 15 squares and eventually putting them into order. I've read/researched that an array/grid had to be used and each square requires its own specific class and attributes such as positition ( integer of 0-15 ) and its current state ( also 0-15, but constantly changes). I am confused on how to approach this as we only have gone through the first unit, but I am determined to finish this. Any suggestions?
|All times are GMT +5.5. The time now is 16:21.|