Hack

Rogue with a dog and a shopkeeper · the game NetHack grew from

> Enter the dungeon
Date of birth1982 (Fenlason) · 1.0.3 in July 1985
CreatorsFenlason · Brouwer with Woodland, Thome, Payne
LanguageC ~19,200 lines (1.0.3)
PlatformUnix + termcap BSD and System V, VT100 terminals

Lineage

Hack is new code inspired by Rogue. Jay Fenlason wrote it in 1982 at Lincoln-Sudbury Regional High School with Kenny Woodland, Mike Thome and Jonathan Payne; his READ_ME calls it “an implementation of Rogue” with 52+ instead of 26 monster types. He learned Rogue at the SFSU Logo Workshop.

Andries Brouwer took it over at the Mathematisch Centrum in Amsterdam and rewrote almost all of it; by his own note the result was “more than thrice as large”, with the dog, the long worms and the shops. His versions went out on Usenet from 1984; 1.0.3 (July 1985) was the last, and the one BSD Unix shipped. Don Kneller ported it to MS-DOS (PC Hack), and NetHack (1987) grew out of Hack. This page's game is restoHack, a restoration of 1.0.3 for modern compilers. See the family tree.

Credits

Jay FenlasonOriginal author (1982)
Kenny Woodland, Mike Thome, Jon PayneHelped Fenlason: the original buzz(), the chameleon, the lock file and the screen code
Andries BrouwerRewrote and extended it into Hack 1.0–1.0.3 (1984–85), Stichting Mathematisch Centrum
Don KnellerMS-DOS port (PC Hack), a sibling of this version
CritlistrestoHack, the restoration this port is built from (Critlist/restoHack @ 0bd798b)
DragonDePlatino, DawnBringerDawnLike tiles (CC-BY 4.0); the NetHack 3.6 tiles are the alternative

Screenshots

Character creation: Who are you? Are you an experienced player? What kind of character are you?
Hack has no title screen. It starts by asking who you are, then which kind of adventurer.
Two rooms joined by a winding corridor
First steps: two rooms and the corridors between them, found by auto-explore.
The message line reads: You miss the hobgoblin. The hobgoblin misses. The giant rat misses.
A fight on level 1: a hobgoblin and a giant rat at once.
A wizard's inventory: elven cloak, wands, rings, potions, scrolls
Inventory: a Wizard starts with unknown wands, rings, potions and scrolls, each with its own random label.

Trivia

What's unique

Code dive

Stats

ThingCountNotable ones
Classes6The Tourist carries an expensive camera; the Speleologist starts with a pick-axe and digs.
Monsters57The cockatrice, the leprechaun, the nymph, the long worm (grows a tail), the xan, the zruty, the nurse, the shopkeeper and the wizard of Yendor guarding the Amulet.
Potions16Booze, fruit juice, sickness, gain level, levitation.
Scrolls21Genocide, punishment (a ball and chain), amnesia, and a mail scroll.
Rings19Teleport control, conflict, protection from shape changers, hunger, aggravate monster.
Wands18Wishing, digging, polymorph, undead turning, death.
Weapons18Crysknife, worm tooth, boomerang; a two-handed sword named Orcrist is the one artifact.
Armour12From leather armour to plate mail, plus elven cloak, helmet, shield, pair of gloves.
Traps8Bear trap, arrow, dart, trapdoor, teleport, pit, sleeping gas, piercer; plus mimics posing as items.
Levels40Mazes from about level 26; the Amulet of Yendor is in a maze on level 30 or deeper.
Spells0Magic lives only in items.

Manual

The manual page shipped with the source, hack(6) (text), and the in-game introduction, help (text). Both © Stichting Mathematisch Centrum, 1985, under its BSD-style licence.

Getting started

  1. Open the game, type a name and answer y to “experienced player?” to pick a class (Knight or Cave-man is easiest), or n to get a random one.
  2. Move with hjklyubn or the arrow keys; walk into a monster to attack. x explores on its own.
  3. Press Enter for a menu of every command, i for the inventory.
  4. Stuck in a dead end? Search with s (or 20s). Press > to walk to the down stairs and take them.
  5. Eat when you are “Hungry”. The full key list is in the in-game guide.

Help

We found no walkthrough: every dungeon is different. Rules of thumb:

Cheats