Question: i don't know how to do this Part-3 (HumanPlay) You are required to write a program that accepts the initial board state and the goal

i don't know how to do this i don't know how to do this Part-3 (HumanPlay) You are required

Part-3 (HumanPlay) You are required to write a program that accepts the initial board state and the goal state for an 8-puzzle problem. Give the initial state of the puzzle: Give Tile numbers 0-8 in any order (separated by space): 4 1 2 5 0 3 786 Give the goal state of the puzzle: Give Tile numbers 0-8 in any order (separated by space): 1 2 3 4 5 6 7 8 e Example Run: Goal State of the Board: 1 2 3 4 5 6 7 80 Initial State of the Board: 4 1 2 5 @ 3 786 Your program should prompt the user to enter the required actions as U or D or Lor (which stands for move the space up, down, left, or right in that order) The program should print the board after each actions, and finally determine whether the goal is reached. Part-3 (HumanPlay) You are required to write a program that accepts the initial board state and the goal state for an 8-puzzle problem. Give the initial state of the puzzle: Give Tile numbers 0-8 in any order (separated by space): 4 1 2 5 0 3 786 Give the goal state of the puzzle: Give Tile numbers 0-8 in any order (separated by space): 1 2 3 4 5 6 7 8 e Example Run: Goal State of the Board: 1 2 3 4 5 6 7 80 Initial State of the Board: 4 1 2 5 @ 3 786 Your program should prompt the user to enter the required actions as U or D or Lor (which stands for move the space up, down, left, or right in that order) The program should print the board after each actions, and finally determine whether the goal is reached

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!