* Copyright (c) 1983 Regents of the University of California,
* All rights reserved. Redistribution permitted subject to
* the terms of the Berkeley Software License Agreement.
static char sccsid
[] = "@(#)battlestar.c 1.3 %G%";
* Battlestar - a stellar-tropical adventure game
* Originally written by His Lordship, Admiral David W. Horatio Riggle,
* on the Cory PDP-11/70, University of California, Berkeley.
char mainbuf
[LINELENGTH
];
initialize(argc
< 2 || strcmp(argv
[1], "-r"));
crash(); /* decrements fuel & crash */
puts("Your match splutters out.");
if (!notes
[CANTSEE
] || testbit(inven
,LAMPON
) ||
testbit(location
[position
].objects
, LAMPON
)) {
puts("It's too dark to see anything in here!");
whichway(location
[position
]);
next
= getcom(mainbuf
, sizeof mainbuf
, ">-: ",
"Please type in something.");
for (wordcount
= 0; next
&& wordcount
< 20; wordcount
++)
next
= getword(next
, words
[wordcount
], -1);