This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I am going to be making the Rush Hour game as part of my honours project and then later making a solver using the A* Algorithm.
My supervisor has asked me to look at the game side of things just now ie. how the board can be stored and how each move made by the player would be stored, current position, new position that sort of thing.
First thing I thought of was an array but my supervisor said yes it will work but there are better ways of doing it.
Anyone have any ideas of what I can use so that I can research it more?
Originally posted by Steven Gibbs: ...First thing I thought of was an array but my supervisor said yes it will work but there are better ways of doing it.
Anyone have any ideas of what I can use so that I can research it more? ...
One drawback to arrays is that their size is established when they are created, and they cannot be resized. I suspect your supervisor was considering a Collection instead.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org