Files
ioccc/2004/arachnid
Landon Curt Noll c78bda6c0f update tarballs due to recent commits
The commit a1c86c8a7a modified
the navigation bars to include "Original C", so all tarballs
had be update, sorry (tm Canada 🇨🇦).  In particular:

The navigation bar for a winning entry now has a "_Original C_" link
(between the ✅ and the Inventory on the right hand side) so that one
may easily view the original C code that was submitted for IOCCC judging.

In addition, a number of other commits since that time
modified other winning entries.

Ran `make update` to perform the above.
2025-08-18 16:30:59 -07:00
..
2022-09-18 23:37:49 -07:00
2023-07-06 21:49:38 -07:00
2023-04-24 09:34:14 -07:00
2024-08-07 07:27:50 -07:00

To build:

    make

There is an alternate version for rogue players, vi(m) users and Dvorak typist (i.e. those who need hljk for moving left, right, down and up). See Alternate code below.

To use:

    ./arachnid [mazefile]

Try:

    ./arachnid arachnid.txt

and then try:

    ./arachnid arachnid.c

Navigation is through the use of the wasd inverted-T formation on QWERTY keyboards. Rogue players, vi users, and Dvorak typists are invited to get lost (or use the alt version)!

Alternate code:

If you don't like the wasd movement keys you can try the vi(m) movement keys instead.

Alternate build:

    make alt

Alternate use:

Use arachnid.alt as you would arachnid above.

Judges' remarks:

The fun part comes when you realize that the maze scrolls. The overall visual effect is quite pleasing (at least on some displays), and, well, it's a lot of fun.

Author's remarks:

This program accepts ASCII formatted mazes as input, and renders them on screen for the user to explore, complete with Line Of Sight - you cannot see parts of the maze your avatar (the @) could not have seen.

The maze files will be interpreted with spaces ' ' as gaps, tilde ~ symbols (if any) as exits (which get represented as a NetHack style < once loaded), and any other characters as walls.

Feed the program its own source for a default maze. Running it with no command line parameters will do this. In a nice symmetry, the character constant ~ that recognises exits to input mazes itself forms the exit to the default maze. Another maze, arachnid.txt has also been provided. This maze is 255x255, about the largest maze supported, for the particularly insane maze explorers out there.

Usage

    ./arachnid [mazefile]

You can explore the maze using the w,a,s, and d keys.