*
* So, pretend for a little while that your workstation is an ASR-33 and
* limber up your fingers for a trip to nostalgia-land...
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
*/
#include <stdio.h>
#include <ctype.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <time.h>
+#include <sys/socket.h>
/* 5 REM *** HUNT THE WUMPUS *** */
void print_instructions()
{
- char ebuf[BUFSIZ];
-
/* 375 REM *** INSTRUCTIONS *** */
/* 380 PRINT "WELCOME TO 'HUNT THE WUMPUS'" */
puts("WELCOME TO 'HUNT THE WUMPUS'");
check_shot();
if (finished != NOT)
return;
+ goto nextpath;
}
/* 820 NEXT K1 */
check_shot();
/* 840 NEXT K */
+ nextpath: ;
}
-ammo:
if (finished == NOT)
{
/* 845 PRINT "MISSED" */
}
}
-main(argc, argv)
+int main(argc, argv)
int argc;
char *argv[];
{