# 1
10-04-2011

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
The course work is to implement "Colossal Cave Adventure"(350 original version) in C programming on unix environment. the detail about the game can be found here - The Colossal Cave Adventure page . I am stuck up with parsing the advent.dat which contains the structure and elements about game environment. Please explain the structure of the advent.data

2. Relevant commands, code, scripts, algorithms:

1
1 YOU ARE STANDING AT THE END OF A ROAD BEFORE A SMALL BRICK BUILDING.
1 AROUND YOU IS A FOREST. A SMALL STREAM FLOWS OUT OF THE BUILDING AND
1 DOWN A GULLY.
2 YOU HAVE WALKED UP A HILL, STILL IN THE FOREST. THE ROAD SLOPES BACK
2 DOWN THE OTHER SIDE OF THE HILL. THERE IS A BUILDING IN THE DISTANCE.
3 YOU ARE INSIDE A BUILDING, A WELL HOUSE FOR A LARGE SPRING.
4 YOU ARE IN A VALLEY IN THE FOREST BESIDE A STREAM TUMBLING ALONG A
4 ROCKY BED.
5 YOU ARE IN OPEN FOREST, WITH A DEEP VALLEY TO ONE SIDE.
6 YOU ARE IN OPEN FOREST NEAR BOTH A VALLEY AND A ROAD.
7 AT YOUR FEET ALL THE WATER OF THE STREAM SPLASHES INTO A 2-INCH SLIT
7 IN THE ROCK. DOWNSTREAM THE STREAMBED IS BARE ROCK.
8 YOU ARE IN A 20-FOOT DEPRESSION FLOORED WITH BARE DIRT. SET INTO THE
8 DIRT IS A STRONG STEEL GRATE MOUNTED IN CONCRETE. A DRY STREAMBED
9 YOU ARE IN A SMALL CHAMBER BENEATH A 3X3 STEEL GRATE TO THE SURFACE.
9 A LOW CRAWL OVER COBBLES LEADS INWARD TO THE WEST.
10 YOU ARE CRAWLING OVER COBBLES IN A LOW PASSAGE. THERE IS A DIM LIGHT

3. The attempts at a solution (include all code and scripts):

4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Blekinge Institute of Technology, Sweden, Charlie Svanberg, DV1305

Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
 tamil.pamaran View Public Profile for tamil.pamaran Find all posts by tamil.pamaran
# 2
10-20-2011
Well, obviously it's a text adventure game.
The first column is the action or position code and the following data it's the message the player will see.

How do you want to parse it? Which language will you use?

If you want to take only action codes, you can or with awk by and only the text by Notice the space between the single quotes.

 galanom View Public Profile for galanom Find all posts by galanom

## How to use 'ls' command to list files like *.dat, not *.*.dat?

How to use 'ls' command to list files like *.dat, not *.*.dat