// ----------------- 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 #include #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; }