subject

IN JAVA There is a 10x10 grid map. Each cell of that grid can either be empty, have a wall, be marked as a starting location, or be marked as a goal location. In this project you will write a search-based agent to create a plan that will lead your agent from the starting location to some goal location without entering cells marked as walls. You may choose any algorithm from chapter 2, but be sure to have a justification as to why you chose that algorithm(depth first search).
Your program will take as a command line argument a file name. This file represents the map, and will contain 100 integers (as text) separated by whitespace. The grid is stored in row major order. That is, the first 10 integers represent the first row of the map. The next 10 integers represent the second row, and so on. Each integer is as follows:
0: This cell is empty
1: This cell is the starting cell. There will be exactly one such cell, and will always appear in the first row.
2: This cell is a goal cell. There could be any number of such cells, and can appear anywhere.
3: This cell is a wall. The agent is unable to enter this space.
Your agent will have four possible actions:
Move Left Move the agent one cell to the left (decrease it’s column number by 1) Move Right Move the agent one cell to the right (increase it’s column number by 1) Move Up Move the agent one cell upwards (decrease it’s row number by 1)
Move Down Move the agent one cell downwards (increase it’s row number by 1)
A move that will cause the agent to leave the map or enter a wall cell will have no affect. The output will be a sequence of actions represented by the direction each on its own line. So as an example, suppose your search results in the following solution: Move Left, Move Down, Move Down, Move Right. The output would look like:
Left
Down
Down
Right

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:20
The north and south regions had very diferent economies in the 1800s.
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
question
Computers and Technology, 23.06.2019 19:50
Which feature is selected to practice and save the timing of a presentation
Answers: 1
You know the right answer?
IN JAVA There is a 10x10 grid map. Each cell of that grid can either be empty, have a wall, be mark...
Questions
question
Mathematics, 05.05.2021 23:40
question
Health, 05.05.2021 23:40
question
Social Studies, 05.05.2021 23:40
Questions on the website: 13722363