Maze game, Programming Languages

The Maze Game from Laboratory 7 loads its maze directly in the program's code. This should be avoided as it requires the program to be recreated if the maze needs to be changed. In this exercise you will load the maze's data from a text file.The maze text file will have the following format:

  • The first line contains the total number of rooms
  • The next line contains the number of the goal room
  • The following lines are based on the number of rooms, for each room there is two lines with: Room title and Room description
  • After all the rooms the number of exits from all rooms is listed
  • The following lines are based on the number of exits, for each exit there is one line with:
  •  From room, to room, direction (space separated on a single line) See the example in Listing 1 that creates the maze shown in Figure 2.

2025_Maze Game.png

Posted Date: 2/18/2013 3:16:23 AM | Location : United States







Related Discussions:- Maze game, Assignment Help, Ask Question on Maze game, Get Answer, Expert's Help, Maze game Discussions

Write discussion on Maze game
Your posts are moderated
Related Questions
Extend the SpaceRocks game and provide a warp feature which allows the ship to jump to a random location to escape a rock. The warp feature is only activated once the shields have

I need to do image reconstruction using Neural Network using Matlab

Write a function readPDBfile('filename') that will read the atoms for a protein stored in a PDB file, whose name is provided as an input to the function (note that this name should

I WANT TO MAKE PROJECT IN ARM LANGUAGE CAN YOU HELP ME

'This program compares interest rates between two banks and determines the best bank 'Eric Weber, Adam Litchfield, Eric Romero, Sarah, Alex, Amy '10/5/12 'Lab #4 Problem 42 'CSC

You are to write a program which will answer a pair of questions for squares, triangles, circles and ellipses. A square is defined by its lower left corner (SLLx,SLLy), and the len

Characteristics of object-oriented programming: •   Emphasis is on data rather than procedure. •   Programs are divided into what are known as objects. •

Write three functions, statistics, average, and sD as follows. The statistics function returns no value and has six parameters: four scores followed by their average and standard d

Topic Develop a Web site that will provide information about your organization. The Web site will need to have a user-friendly interface for users to enter their information;

i need help