-#define PM(x) puts(x);
-
-void print_instructions()
-{
- PM("Welcome to `Hunt the Superhack'\n")
-
-PM(" The superhack lives on the 9th floor of 45 Technology Square in");
-PM("Cambridge, Massachusetts. Your mission is to throw a pie in his face.\n");
-
- PM(" First, you'll have to find him. A botched experiment by an MIT");
- PM("physics group has regularized the floor's topology, so that each");
- PM("room has exits to three other rooms. (Look at a dodecahedron to");
- PM("see how this works --- if you don't know what a dodecahedron is,");
- PM("ask someone.)\n");
-
- PM("You:");
- PM(" Each turn you may move to an adjacent room or throw a pie. If");
- PM("you run out of pies, you lose. Each pie can pass through up to");
- PM("five rooms (connected by a continuous path from where you are). You");
- PM("aim by telling the computer which rooms you want to throw through.");
- PM("If the path is incorrect (presumes a nonexistent connection) the ");
- PM("pie moves at random.");
-
- PM(" If a pie hits the superhack, you win. If it hits you, you lose!\n");
-
- (void) fputs("<Press return to continue>", stdout);
- (void) fgets(inp, sizeof(inp), stdin);
- (void) putchar('\n');
-
- PM("Hazards:");
- PM(" Starlets --- two rooms contain lonely, beautiful women. If you");
- PM("enter these, you will become fascinated and forget your mission as");
- PM("you engage in futile efforts to pick one up. You weenie.");
- PM(" Droids --- two rooms are guarded by experimental AI security ");
- PM("droids. If you enter either, the droid will grab you and hustle");
- PM("you off to somewhere else, at random.");
- PM(" Lusers --- two rooms contain hungry lusers. If you blunder into");
- PM("either, they will eat one of your pies.");
- PM(" Superhack --- the superhack is not bothered by hazards (the");
- PM("lusers are in awe of him, he's programmed the droids to ignore him,");
- PM("and he has no sex life). Usually he is hacking. Two things can");
- PM("interrupt him; you throwing a pie or you entering his room.\n");
- PM(" On an interrupt, the superhack moves (3/4 chance) or stays where");
- PM("he is (1/4 chance). After that, if he is where you are, he flames");
- PM("you and you lose!\n");
-
- (void) fputs("<Press return to continue>", stdout);
- (void) fgets(inp, sizeof(inp), stdin);
- (void) putchar('\n');
-
- PM("Warnings:");
- PM(" When you are one room away from the superhack or a hazard,");
- PM("the computer says:");
- PM(" superhack: \"I smell a superhack!\"");
- PM(" security droid: \"Droids nearby!\"");
- PM(" starlet: \"I smell perfume!\"");
- PM(" luser: \"Lusers nearby!\"");
-
- PM("If you take too long finding the superhack, hazards may move. You");
- PM("will get a warning when this happens.\n");
-
- PM("Commands:");
- PM(" Available commands are:\n");
- PM(" ? --- print long instructions.");
- PM(" m <number> --- move to room with given number.");
- PM(" t <numbers> --- throw through given rooms.");
+#define PM(x) puts(x);
+
+void print_instructions() {
+ PM("Welcome to `Hunt the Superhack'\n")
+
+ PM(" The superhack lives on the 9th floor of 45 Technology Square "
+ "in");
+ PM("Cambridge, Massachusetts. Your mission is to throw a pie in his "
+ "face.\n");
+
+ PM(" First, you'll have to find him. A botched experiment by an "
+ "MIT");
+ PM("physics group has regularized the floor's topology, so that each");
+ PM("room has exits to three other rooms. (Look at a dodecahedron to");
+ PM("see how this works --- if you don't know what a dodecahedron is,");
+ PM("ask someone.)\n");
+
+ PM("You:");
+ PM(" Each turn you may move to an adjacent room or throw a pie. If");
+ PM("you run out of pies, you lose. Each pie can pass through up to");
+ PM("five rooms (connected by a continuous path from where you are). "
+ "You");
+ PM("aim by telling the computer which rooms you want to throw "
+ "through.");
+ PM("If the path is incorrect (presumes a nonexistent connection) the ");
+ PM("pie moves at random.");
+
+ PM(" If a pie hits the superhack, you win. If it hits you, you "
+ "lose!\n");
+
+ (void)fputs("<Press return to continue>", stdout);
+ IGNORE(fgets(inp, sizeof(inp), stdin));
+ (void)putchar('\n');
+
+ PM("Hazards:");
+ PM(" Starlets --- two rooms contain lonely, beautiful women. If "
+ "you");
+ PM("enter these, you will become fascinated and forget your mission "
+ "as");
+ PM("you engage in futile efforts to pick one up. You weenie.");
+ PM(" Droids --- two rooms are guarded by experimental AI security ");
+ PM("droids. If you enter either, the droid will grab you and hustle");
+ PM("you off to somewhere else, at random.");
+ PM(" Lusers --- two rooms contain hungry lusers. If you blunder "
+ "into");
+ PM("either, they will eat one of your pies.");
+ PM(" Superhack --- the superhack is not bothered by hazards (the");
+ PM("lusers are in awe of him, he's programmed the droids to ignore "
+ "him,");
+ PM("and he has no sex life). Usually he is hacking. Two things can");
+ PM("interrupt him; you throwing a pie or you entering his room.\n");
+ PM(" On an interrupt, the superhack moves (3/4 chance) or stays "
+ "where");
+ PM("he is (1/4 chance). After that, if he is where you are, he "
+ "flames");
+ PM("you and you lose!\n");
+
+ (void)fputs("<Press return to continue>", stdout);
+ (void)fgets(inp, sizeof(inp), stdin);
+ (void)putchar('\n');
+
+ PM("Warnings:");
+ PM(" When you are one room away from the superhack or a hazard,");
+ PM("the computer says:");
+ PM(" superhack: \"I smell a superhack!\"");
+ PM(" security droid: \"Droids nearby!\"");
+ PM(" starlet: \"I smell perfume!\"");
+ PM(" luser: \"Lusers nearby!\"");
+
+ PM("If you take too long finding the superhack, hazards may move. "
+ "You");
+ PM("will get a warning when this happens.\n");
+
+ PM("Commands:");
+ PM(" Available commands are:\n");
+ PM(" ? --- print long instructions.");
+ PM(" m <number> --- move to room with given number.");
+ PM(" t <numbers> --- throw through given rooms.");