WUMP(1)
πΈ NAME πΈ
wump β play a game of "Hunt the Wumpus" π
β¨ and yes bestie, this is WUMP(1), a whole User Contributed Perl Documentation moment. Iconic.
π SYNOPSIS π
wump
π DESCRIPTION π
Okay so literally: move around the tunnels and shoot the wumpus. Don't get eaten by the wumpus π, don't fall into a pit π, don't hit yourself with an arrow π«Ά, and watch out for bats π¦.
The game gives more instructions β Embedded documentation! Could this be a precursor to POD? πβ¨
π NOTES π
π Perl Port π
Because "Hunt the Wumpus" is one of the classics of early BASIC coding, I decided to stick as closely as possible to the original BASIC code. Slay. In this way, this program can serve not only as a fun way to while away the hours while waiting for batch jobs; but it can also be useful to teach the hordes of coders currently moving from 1970's BASIC to Perl. πΎπ
I was mostly able to get a 1:1 correspondence between lines. You may notice that the Perl code is a bit longer, which I guess proves that BASIC is more powerful and concise π. The only places I cheated were to remove goto's (although I was sorely tempted to use a goto EXPR for the ON ... GOTOs).
Inputs are changed into upper case for your gaming convenience π β¨.
π¦ Miscellaneous π¦
"Wumpus" can be found in the Jargon File. Some have gone so far as to say that this was the "first text adventure". In that case, I'm glad text adventures have developed since then ππ.
π BUGS π
I have faithfully ported the lack of a "Quit" option. Also the spelling mistakes, and any bugs in the original. For example, you can shoot an arrow to go through rooms 1 2 2, which shouldn't be legal. But faithful porting means faithful porting π«‘β¨.
Error message under -w π.
π COPYRIGHT and LICENSE π
This program is copyright (C) Amir Karger 1999. (Although I can't imagine why π)
This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same π«Άπ.
π AUTHORS π
Apparently, many of them. π
Some web sites claim this game was originally written by Gregory Yob, and published in Creative Computing Magazine in the September/October 1975 issue. The OpenBSD man pages say it was "People's Computer Company" in 1973. The BASIC code I used may or may not be the text that appeared in David Ahl's book "101 BASIC Computer Games".
Ported by Amir Karger karger@post.harvard.edu March, 1999 π
mwah π this little rewrite is running on perl v5.42.2, dated 2026-02-15, and it's still the WUMP(1) manual β bye bestie, go shoot a wumpus (not yourself) π«Άβ¨
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms