aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
blob: 8b412cafdca89a73df1d90436742a5b19604fdbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// ----------------- OPTIONS ----------------- //
#define FILE_PATH "files/in.txt"
// #define FILE_PATH "files/south-park-the-aristocrats.txt"
#define WALK_LEN 100000

#define PRINT_CHAIN
#define PRINT_ITEM_FREQUENCY
// #define PRINT_ON_WALK
// #define SAVE_TO_FILE_ON_WALK "out.txt"
// --------------- END OPTIONS --------------- //

#include <stdio.h>
#include <time.h>

#define ITEM_CAP 1024
int ITEMS = 0;

double chain[ITEM_CAP][ITEM_CAP] = {0};
char item_names[ITEM_CAP][64] = {0};

#include "markov.h"

int main(void)
{
    srand(time(NULL));
    generate_chain();

#ifdef PRINT_CHAIN
    print_chain();
#endif
    take_walk();
    return 0;
}