Question: in Java (GUI) Using GUT Example INPUT: Give the initial state of the puzzle Give Tile numbers 0-8 in any order (separated by space):41 2
Using GUT Example INPUT: Give the initial state of the puzzle Give Tile numbers 0-8 in any order (separated by space):41 2 50 3786 Give the goal state of the puzzle: Give Tile numbers 0-8 in any order (separated by space): 1 2 3 4 5 6780 Example OUTPUT: Goal State of the Board: 123 456 780 At least the rest of the output should use GUI (sce the images below). Your program should show the initial state, und all subsequent states based on the user's moves. If the goal is reached, it should inform the player 8 - Puzzle 8- Purale 8 - Puzle X CUCKON A TILE to MOVE WELDONE CLICK ON A TILE to MOVE 4 1 2 4 N 1 2 3 5 3 5 4 6 5 1 3 7 8 6 7 8 7 8 6 Reached the Goal GOAL NOT REACHED GOAL NOT REACHED Using GUT Example INPUT: Give the initial state of the puzzle Give Tile numbers 0-8 in any order (separated by space):41 2 50 3786 Give the goal state of the puzzle: Give Tile numbers 0-8 in any order (separated by space): 1 2 3 4 5 6780 Example OUTPUT: Goal State of the Board: 123 456 780 At least the rest of the output should use GUI (sce the images below). Your program should show the initial state, und all subsequent states based on the user's moves. If the goal is reached, it should inform the player 8 - Puzzle 8- Purale 8 - Puzle X CUCKON A TILE to MOVE WELDONE CLICK ON A TILE to MOVE 4 1 2 4 N 1 2 3 5 3 5 4 6 5 1 3 7 8 6 7 8 7 8 6 Reached the Goal GOAL NOT REACHED GOAL NOT REACHED
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
