Arrange test coverage of reincarnation code.
This commit is contained in:
parent
760e2e3282
commit
6c1eadcd67
3 changed files with 173 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
## Jump into a pit and die
|
## Jump into a pit and die, refuse reincarnation
|
||||||
n
|
n
|
||||||
seed 1495774850
|
seed 1495774850
|
||||||
in
|
in
|
||||||
|
|
150
tests/reincarnate.chk
Normal file
150
tests/reincarnate.chk
Normal file
|
@ -0,0 +1,150 @@
|
||||||
|
|
||||||
|
Welcome to Adventure!! Would you like instructions?
|
||||||
|
|
||||||
|
> n
|
||||||
|
|
||||||
|
You are standing at the end of a road before a small brick building.
|
||||||
|
Around you is a forest. A small stream flows out of the building and
|
||||||
|
down a gully.
|
||||||
|
|
||||||
|
> seed 1495774850
|
||||||
|
Seed set to 1495774850
|
||||||
|
|
||||||
|
You're in front of building.
|
||||||
|
|
||||||
|
> in
|
||||||
|
|
||||||
|
You are inside a building, a well house for a large spring.
|
||||||
|
|
||||||
|
There are some keys on the ground here.
|
||||||
|
|
||||||
|
There is a shiny brass lamp nearby.
|
||||||
|
|
||||||
|
There is food here.
|
||||||
|
|
||||||
|
There is a bottle of water here.
|
||||||
|
|
||||||
|
> take keys
|
||||||
|
|
||||||
|
OK
|
||||||
|
|
||||||
|
> take lamp
|
||||||
|
|
||||||
|
OK
|
||||||
|
|
||||||
|
> out
|
||||||
|
|
||||||
|
You're in front of building.
|
||||||
|
|
||||||
|
> s
|
||||||
|
|
||||||
|
You are in a valley in the forest beside a stream tumbling along a
|
||||||
|
rocky bed.
|
||||||
|
|
||||||
|
> s
|
||||||
|
|
||||||
|
At your feet all the water of the stream splashes into a 2-inch slit
|
||||||
|
in the rock. Downstream the streambed is bare rock.
|
||||||
|
|
||||||
|
> s
|
||||||
|
|
||||||
|
You are in a 20-foot depression floored with bare dirt. Set into the
|
||||||
|
dirt is a strong steel grate mounted in concrete. A dry streambed
|
||||||
|
leads into the depression.
|
||||||
|
|
||||||
|
The grate is locked.
|
||||||
|
|
||||||
|
> open grate
|
||||||
|
|
||||||
|
The grate is now unlocked.
|
||||||
|
|
||||||
|
> d
|
||||||
|
|
||||||
|
You are in a small chamber beneath a 3x3 steel grate to the surface.
|
||||||
|
A low crawl over cobbles leads inward to the west.
|
||||||
|
|
||||||
|
The grate is open.
|
||||||
|
|
||||||
|
> w
|
||||||
|
|
||||||
|
You are crawling over cobbles in a low passage. There is a dim light
|
||||||
|
at the east end of the passage.
|
||||||
|
|
||||||
|
There is a small wicker cage discarded nearby.
|
||||||
|
|
||||||
|
> w
|
||||||
|
|
||||||
|
It is now pitch dark. If you proceed you will likely fall into a pit.
|
||||||
|
|
||||||
|
> light lamp
|
||||||
|
|
||||||
|
Your lamp is now on.
|
||||||
|
|
||||||
|
You are in a debris room filled with stuff washed in from the surface.
|
||||||
|
A low wide passage with cobbles becomes plugged with mud and debris
|
||||||
|
here, but an awkward canyon leads upward and west. In the mud someone
|
||||||
|
has scrawled, "MAGIC WORD XYZZY".
|
||||||
|
|
||||||
|
A three foot black rod with a rusty star on an end lies nearby.
|
||||||
|
|
||||||
|
> w
|
||||||
|
|
||||||
|
You are in an awkward sloping east/west canyon.
|
||||||
|
|
||||||
|
> w
|
||||||
|
|
||||||
|
You are in a splendid chamber thirty feet high. The walls are frozen
|
||||||
|
rivers of orange stone. An awkward canyon and a good passage exit
|
||||||
|
from east and west sides of the chamber.
|
||||||
|
|
||||||
|
A cheerful little bird is sitting here singing.
|
||||||
|
|
||||||
|
> w
|
||||||
|
|
||||||
|
At your feet is a small pit breathing traces of white mist. An east
|
||||||
|
passage ends here except for a small crack leading on.
|
||||||
|
|
||||||
|
Rough stone steps lead down the pit.
|
||||||
|
|
||||||
|
> down
|
||||||
|
|
||||||
|
You are at one end of a vast hall stretching forward out of sight to
|
||||||
|
the west. There are openings to either side. Nearby, a wide stone
|
||||||
|
staircase leads downward. The hall is filled with wisps of white mist
|
||||||
|
swaying to and fro almost as if alive. A cold wind blows up the
|
||||||
|
staircase. There is a passage at the top of a dome behind you.
|
||||||
|
|
||||||
|
Rough stone steps lead up the dome.
|
||||||
|
|
||||||
|
> w
|
||||||
|
|
||||||
|
You are on the east bank of a fissure slicing clear across the hall.
|
||||||
|
The mist is quite thick here, and the fissure is too wide to jump.
|
||||||
|
|
||||||
|
> jump
|
||||||
|
|
||||||
|
You didn't make it.
|
||||||
|
|
||||||
|
Oh dear, you seem to have gotten yourself killed. I might be able to
|
||||||
|
help you out, but I've never really done this before. Do you want me
|
||||||
|
to try to reincarnate you?
|
||||||
|
|
||||||
|
> y
|
||||||
|
|
||||||
|
All right. But don't blame me if something goes wr......
|
||||||
|
--- POOF!! ---
|
||||||
|
You are engulfed in a cloud of orange smoke. Coughing and gasping,
|
||||||
|
you emerge from the smoke and find....
|
||||||
|
|
||||||
|
You're inside building.
|
||||||
|
|
||||||
|
There is food here.
|
||||||
|
|
||||||
|
There is a bottle of water here.
|
||||||
|
|
||||||
|
|
||||||
|
You scored 47 out of a possible 430, using 18 turns.
|
||||||
|
|
||||||
|
Your score qualifies you as a novice class adventurer.
|
||||||
|
|
||||||
|
To achieve the next higher rating, you need 74 more points.
|
22
tests/reincarnate.log
Normal file
22
tests/reincarnate.log
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
## Jump into a pit and die, then be reincarnated
|
||||||
|
n
|
||||||
|
seed 1495774850
|
||||||
|
in
|
||||||
|
take keys
|
||||||
|
take lamp
|
||||||
|
out
|
||||||
|
s
|
||||||
|
s
|
||||||
|
s
|
||||||
|
open grate
|
||||||
|
d
|
||||||
|
w
|
||||||
|
w
|
||||||
|
light lamp
|
||||||
|
w
|
||||||
|
w
|
||||||
|
w
|
||||||
|
down
|
||||||
|
w
|
||||||
|
jump
|
||||||
|
y
|
Loading…
Add table
Add a link
Reference in a new issue