Exercise with the 15 Puzzle.
Completion requirements
- Learn what the 15 puzzle is here.
- Get a copy of my program. Get it working on your computer.
- Change the color of the tiles.
- Put a title on the window.
- Change the font. Try a different typeface (something other than Arial), size, and style (something other than bold).
- Change the speed of the animation.
- Create a class that will respond to selections from the menu. Use the ButtonListener class as a model.
- Can you make the animation stop after a specified number of moves?
- Can you write a method that will restore the board to its original configuration?
- Can you add that records all moves? Can you write code that will execute these moves in reverse order to solve the puzzle?
Last modified: Friday, September 24, 2021, 9:00 AM