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 06:30
Selective incapacitation is a strategy to reduce prison population
Answers: 3
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
What can you prevent issues related to downloading content form the internet
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, 08.12.2020 03:00
question
English, 08.12.2020 03:00
question
Arts, 08.12.2020 03:00
question
Chemistry, 08.12.2020 03:00
Questions on the website: 13722361