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
1. Logon to Linux. 2. Create a directory "Unix" under your home directory. Command(s): …………………………………………. 3. Create four sub-directories bin, conf, docs

Write 3 somewhat simple scripts / programs in any language, combination of languages, and/or software. Please tell me the task you are trying to accomplish in the scripts. Idea

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

Implement a two-dimensional table in Prolog. Your program will contain: An insert_entry predicate that takes a table, row, column and an entry and inserts the entry at the g

about how to create the program in c

Extend the AirRaid game, so that the planes drop a bomb on the gun as they go over it. The gun has to move out of the way otherwise it will be destroyed if hit. Provide three lives

The last matrix operation which we'll see is matrix multiplication. Now there we will start along with two matrices, A nxp and B pxm . Remember hat A must have similar number of c

would you like to see some of my code. I am trying to do an add friend request. when I view my friends page I click on the add button. with ajax I want the script to send over the

Note: You should pay attention on following good practices: Appropriate code comments(If you make any assumptions clearly comment them in the code) Indentation

An anagram is a type of word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase. For example the anagram of tea is tea, tae, eat, eta,