Commit Briefs

Omar Polo

add another variation for the give command (master)


Omar Polo

added load and save command

Saving is straightforward: dump to a file the location and some property of the objects. Loading also is simple: just read all the data and apply it (with some sanity check tho.)



Omar Polo

added config file

only the PROMPT is configurable as of now tho.


Omar Polo

clean -> clear


Branches

Tags

This repository contains no tags

Tree

.gitignorecommits | blame
Makefilecommits | blame
README.mdcommits | blame
adventure.ccommits | blame
adventure.hcommits | blame
config.hcommits | blame
data_to_c.awkcommits | blame
inventory.ccommits | blame
io.ccommits | blame
map.awkcommits | blame
match.ccommits | blame
misc.ccommits | blame
object.datacommits | blame
parseexec.ccommits | blame
save.ccommits | blame
toggle.ccommits | blame

README.md

a text adventure 
=================

"a text adventure" is a text adventure based on the (unfortunately)
unfinished tutorial:
http://home.hccnet.nl/r.helderman/adventures/htpataic01.html

The code is more or less the same that you'll find on the tutorial,
except for the stile and some minor difference in the structure.


building
--------

	make

It requires awk(1), a C compiler and the GNU readline library.

It builds on OpenBSD without external packages installed btw.


grammar
-------

While you can look for the grammar in `parseexec.c:/^parseexec`, I
would ask you not to do so: you may read spoilers.

Instead, try to express what you want to accomplish in plain english,
it should work.  (note: no punctuation or conjunctions are supported
as of now)

Some examples

> quit

> look around

> look guard

> go to east

> pick up the coin

> ...