1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

15 puzzle, help getting started.

Discussion in 'Java' started by shadowlord1124, May 20, 2010.

  1. shadowlord1124

    shadowlord1124 New Member

    Joined:
    May 20, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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?
     

Share This Page