Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please USE PYTHON! You will implement a 3x3 board game. The aim is reaching to the goal state where Tile #1, #2 and #3 are

image text in transcribed

image text in transcribed

Please USE PYTHON!

You will implement a 3x3 board game. The aim is reaching to the goal state where Tile #1, #2 and #3 are located on the board. 3x3 BOARD Tile 2 Tiki 3 Tie3 Rules of Game: 1. The initial and goal states will be given by user 2. The tiles can be moved up, down, right, or left. 3. The game will begin by the move of Tile #1 (if required) and go on with the moves of other tiles in order. For example: 1st step: move Tile #1 2nd step: move Tile #2 3th step: move Tile #3 4th step: move Tile #1 5th step: move Tile #2 6th step: move Tile #3 4. Distance(cost) between two neighboring states will be measure based on the move costs as given below Tile #1: right or left move cost =2 up of down move cost =1 Tile #2: right or left move cost =1 up of down move cost =2 Tile #3: right or left move cost =3 up of down move cost =4 5. User will choose one of the searching strategies: uniform cost and A* search (use Manhattan distance as heuristics). 6. The expansion will go on till 20th expanded node. The program will print out each expanded state and compare it with given goal state. 7. You are free to use any programming language for implementation. You must prepare a report that includes a definition of the game (due date 13.01.2022). You must give an example execution for each algorithm, provide the generated tree (all states and costs must be given) that is generated, show the contents of fringe in each step. And you must be ready to present your work on 13.01.2022. Below is an example tree that shows possible states (costs are not calculated) INITIAL STATE FO GOAL STATE Move I move 2 move 3 3 12 US 25

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

Why is it important to improve the quality of accounting standards?

Answered: 1 week ago

Question

Finding and scheduling appointments with new prospective clients.

Answered: 1 week ago