#include <stdbool.h>
#include <time.h>
#include "advent.h"
-#include "linenoise/linenoise.h"
#include "dungeon.h"
-struct game_t game;
-
FILE *logfp = NULL, *rfp = NULL;
bool oldstyle = false;
-bool editline = true;
bool prompt = true;
int main(int argc, char *argv[])
FILE *fp = NULL;
- game.lcg_a = 1093;
- game.lcg_c = 221587;
- game.lcg_m = 1048576;
- srand(time(NULL));
- long seedval = (long)rand();
- set_seed(seedval);
-
/* Initialize game variables */
initialise();
make_zzword(game.zzword);
- game.newloc = LOC_START;
- game.loc = LOC_START;
- game.limit = GAMELIMIT;
// apply cheats
game.numdie = numdie;