emneufeld@water.UUCP (Animal D.H.) (12/01/84)
/* New game for UNIX. Save this file as adventure.c, to compile cc adventure.c -o adventure */ #include <stdio.h> main () { char c,c0; int done; printf ("\n\nWelcome to adventure, the maze game that will test\n"); printf ("your memory, and your ability to take chances.\n"); printf ("\n"); printf ("Maybe you would like to get a pencil and paper.\n"); printf ("When you are ready to start, hit a carriage return:"); while ((c=getchar())!='\n'); printf ("It is a dark and rainy night. Wolves howl in the distance; antlers\n"); printf ("clash as stags fight violently in the stilly dark.\n\n"); printf ("You have been pursured for a long time. Your clothes are torn and ragged. \n"); printf ("Your stomach no longer feels the pain of hunger, your numbed arms and \n"); printf ("legs hurt no more from the lacerations from the cruel nettles. \n"); printf ("Bewildered by pain, you barely remember the agony you felt when\n"); printf ("you saw the limp, fallen body of your beloved Jessie, who loved you truly\n"); printf ("and made the supreme sacrifice to protect\n"); printf ("you from the sadistic wrath of the Visigoth Xingothor.\n"); printf ("But you have not forgotten the last words from those blood-stained lips,\n"); printf ("urging you on, to complete the mission, to return, lest a life be\ngiven in vain.\n"); printf ("To the north (n), east (e), and west (w) of you are sheer cliffs of shale \n"); printf ("slippery with the night's rain. To the south (s) of you is a bountiful\n"); printf ("paradise, lush with agriculture, and rich\n"); printf ("in clean mountain water. As the sun climbs over the cliffs,\n"); printf ("the white roofs of the adobe houses in the valley are streaked\n"); printf ("with early morning's pale rose. The milk maidens laugh\n"); printf ("as they prepare for their morning chores. One\n"); printf ("is singing a tune, a high, wild mountain air, as stark as the\n"); printf ("cliffs you face in every other direction.\n"); printf ("\nWhich way will you go (n,e,w,s)? "); c = getchar(); done = 0; while (done != 1) { while ((c0 = getchar()) != '\n'); switch (c) { case 'n': case 'e': case 'w': printf ("You cannot go in that direction\n"); break; case 's': printf ("Congratulations! You have made it to the beautiful paradise! The town folk\n"); printf ("come from their huts to meet you. A doctor ministers to your wounds.\n"); printf ("Ancient wise Thaddeus emerges from his humble mud shack. He smiles, and\n"); printf ("presents you with the Magic Star, the highest honour that the good people\n"); printf ("of Ethunia bestow upon their bravest. The star glows blindingly\n"); printf ("for a moment;\n"); printf ("when the magic has worked its spell, you see that your wishes have come true:\n"); printf ("not only has your beloved Jessie been restored to you, you are also the owner\n"); printf ("of a brand spanking new apartment-size Hoover washer-spin dryer!\n"); printf ("\nScore:1000000 points\n\nTry again soon!\n\n");; done = 1; break; default: printf ("?\n"); } if (done == 0) c = getchar(); } }
leban@hplabsb.UUCP (Bruce Leban) (12/02/84)
Does anyone have any hints on how to beat this game? (:-)