Question

PLEASE FOLLOW ALL DIRECTIONS AND CONFIRM BEFORE SUBMITTING ANSWER. EXAMPLES OF HOW THE PROGRAM SHOULD LOOK...

PLEASE FOLLOW ALL DIRECTIONS AND CONFIRM BEFORE SUBMITTING ANSWER. EXAMPLES OF HOW THE PROGRAM SHOULD LOOK AND WORK ARE DOWN BELOW. I REALLY NEED THIS ANSWERED AS SOON AS POSSIBLE. PLEASE AND THANK YOU!!!

1. Write a Java program that solves a maze Maze is an exciting puzzle game whose goal is to find the path from a starting position (S) to an end position (E ).

PLEASE FOLLOW ALL DIRECTIONS AND CONFIRM BEFORE SU

2. Important functions for the program

Reading a maze file

After reading a maze file, the program executes finding a path of the maze.

The format of a maze file is like the following:

- The number of rows : 8

- The number of columns : 8

- The map of the maze (# : wall, ‘ ‘ : the road, S: a starting point, E: an ending point

3. Finding the path from S to E on a given maze

After receiving information related to direction from a user, the program executes to find the path to the position E.

The command that a user provides to the program has the following format. - Direction r: rightward, l: leftward, u: upward, d:downward

- The number of movements: a positive integer.

- Example

r 3 : moves 3 columns to the right

u 2 : moves 2 rows upward

4. Iterative execution based on menu.

Once the program starts, it shows a menu showing 1) Read a maze file, 2) Show the current maze map, 3) Start the game, 4) Exit. If one game ends, the program repeats this process until a user chooses ‘Exit’.

media%2Fcd8%2Fcd8b011e-90c4-4c2e-a264-fd

media%2F68e%2F68e7c32f-fc92-46c5-b70a-2d

  media%2F469%2F469dbc86-5305-4791-b618-0a

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
PLEASE FOLLOW ALL DIRECTIONS AND CONFIRM BEFORE SUBMITTING ANSWER. EXAMPLES OF HOW THE PROGRAM SHOULD LOOK...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • PLEASE ANSWER IN C++! Given the starting point in a maze, you are to find and...

    PLEASE ANSWER IN C++! Given the starting point in a maze, you are to find and mark a path out of the maze, which is represented by a 20x20 array of 1s (representing hedges) and 0s (representing the foot-paths). There is only one exit from the maze (represented by E). You may move vertically or horizontally in any direction that contains a 0; you may not move into a square with a 1. If you move into the square with...

  • Need help!! Java Eclipse Please provide the screenshot of output of code as well. thank you......

    Need help!! Java Eclipse Please provide the screenshot of output of code as well. thank you... PROGRAM 1 –Linear Data Structure Implementation (Due date: March 5th, 2019, 5% Grade Points) Given the starting point in a maze, you are to find and mark a path out of the maze which is represented by a 30x30 array of 1s (representing hedges) and 0s (representing the foot-paths). There is only one exit from the maze (represented by E). You may move vertically...

  • Title: Term Project for Week 13, 14, 15 Objective: Developed a Pacman game to read/print the...

    Title: Term Project for Week 13, 14, 15 Objective: Developed a Pacman game to read/print the map as it was laid out in the game map and subsequently consume the possible $ points laid out in the game map via user input. Alternatively, if you want to work on your own problem similar to the scope we have defined for this term project, you may submit your proposal for approval. Activity: * You must apply software design using top/down and...

  • ​​​​​​This program will make Maze game. Please Help in c++ Prompt the user for a file...

    ​​​​​​This program will make Maze game. Please Help in c++ Prompt the user for a file that contains the maze. Read it into a two-dimensional array Remember you can use inputStream.get(c) to read the next character from the inputStream. This will read whitespace and non-whitespace characters Don’t forget to read the newline character at the end of each line Print the maze to the screen from your array You should include a ‘*’ in your maze to indicate where the...

  • Program in C++ Implement Conway's Game of Life using 2-dimensional arrays. All the tips, tricks, techniques...

    Program in C++ Implement Conway's Game of Life using 2-dimensional arrays. All the tips, tricks, techniques we have been using in class are allowed. Nothing else. The program should read the initial state of the board by reading in "alive" cells from a user input data file. Meaning your program should ask the user the name of the data file. Assume all the other cells are "dead." Make sure to use modular coding techniques. The main program should be pretty...

  • Please program this in Visual Basic 6. You have chosen to create an electronic version of the sliding tile puzzle game....

    Please program this in Visual Basic 6. You have chosen to create an electronic version of the sliding tile puzzle game. The object of the game is to slide the tiles so that they end up in the required order. The images shown below are examples of the two different versions of this puzzle (numeric and graphical) Puzzle Board-Numeric Puzzle Board-Graphical File Options Help Elapsed Time File Options Help Elapsed Time 00:02:12 00:04:20 5 6 7 8 9 10 11...

  • When outputting the path found in the proposed program, the direction of movement is output. Howe...

    When outputting the path found in the proposed program, the direction of movement is output. However, the direction of movement to the last movement, EXIT, is not output. To print this out, please describe how to modify the proposed program. #include <stdio.h> #define NUM_ROWS 5 #define NUM_COLS 3 #define BOUNDARY_COLS 5 #define MAX_STACK_SIZE 100 #define FALSE 0 #define TRUE 1 ​ ​ ​ typedef struct { short int row; short int col; short int dir; } element; ​ element stack[MAX_STACK_SIZE];...

  • Please Read it all and carefully In visual basic(vba)do the following program Summary INGE Industry, Inc....

    Please Read it all and carefully In visual basic(vba)do the following program Summary INGE Industry, Inc. needs a program in which the date and temperature in Celsius degrees of an industry laboratory are recorded and stored in a sequential file. In addition, you can see the recorded data and convert the temperatures in the following units: Fahrenheit, Kelvin and Rankine. In addition, they want to see a linear graph that reflects how the temperature has fluctuated day by day, for...

  • Correct answer for this Java problem will get thumbs up and eternal thanks Problem Description Over...

    Correct answer for this Java problem will get thumbs up and eternal thanks Problem Description Over the course of this semester you will write a chess game database that will import chess games in PGN (http://www.saremba.de/chessgml/standards/pgn/pgn- complete.htm) format. As a first step you will write code to read PGN games and resolve board positions. Solution Description Write a class called PgnReader that contains the following public static methods: tagValue takes two String arguments: a tag name and a String which...

  • C Language Program. PLEASE USE DYNAMIC MEMORY AND FOLLOW DIRECTIONS GIVEN. USE FUNCTIONS GIVEN ALSO. Thank...

    C Language Program. PLEASE USE DYNAMIC MEMORY AND FOLLOW DIRECTIONS GIVEN. USE FUNCTIONS GIVEN ALSO. Thank you. NO FFLUSH. Problem 5 (40 points)-Write a program Submit orders.c (Note: you wil be dynamically allocating memory for this problem. The second argument on the command line will let you know how much memory you will be allocating. O points if you do not dynamically allocate) Chef Bartolomeo owns a very busy Italian restaurant. He has recently started accepting orders online and every...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT