.SUFFIXES: .chk
clean:
- rm -fr *~ adventure.text *.adv
+ rm -fr *~ adventure.text *.adv scratch.tmp
# Show summary lines for all tests.
testlist:
echo "Remaking $${file}.chk"; \
OPTS=`sed -n /#options:/s///p <$${file}.log`; \
advent $$OPTS <$${file}.log >$${file}.chk 2>&1 || exit 1; \
- done
+ done; \
+ rm -f scratch.tmp
regress:
@for file in $(TESTLOADS); do \
$(ECHO) -n " $${file} "; grep '##' $${file}.log || echo ' ## (no description)'; \
then diff --text -u $${file}.chk /tmp/regress$$$$ || exit 1; \
else echo "*** Nonzero return status on $${file}!"; exit 1; fi \
done; \
- rm -f /tmp/regress$$$$
+ rm -f scratch.tmp /tmp/regress$$$$
# end
--- /dev/null
+
+Welcome to Adventure!! Would you like instructions?
+
+> > >
+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.
+
+>
+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.
+
+>
+>
+You scored 32 out of a possible 430, using 1 turn.
+
+You are obviously a rank amateur. Better luck next time.
+
+To achieve the next higher rating, you need 14 more points.
--- /dev/null
+## Exercise logging option and seed dump
+#options: -s -l scratch.tmp
+n
+in
+