diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-14 18:17:46 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-14 18:17:46 +0300 |
commit | 6516b26acec2abd862a3c1f42886e749e2dfad5c (patch) | |
tree | cfa5c121f37c5c9e6a1cc1b8c604e09ec35dc697 /src/main.c | |
parent | 3ca0ae80729086a7e483d1eddf8bdbbb46582c29 (diff) |
a little bit more user friendly
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -1,12 +1,18 @@ -#include <stdio.h> -#include <time.h> +// ----------------- 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" -#define WALK_LEN 10000 +// --------------- END OPTIONS --------------- // + +#include <stdio.h> +#include <time.h> -#define ITEM_CAP 400 +#define ITEM_CAP 1024 int ITEMS = 0; double chain[ITEM_CAP][ITEM_CAP] = {0}; @@ -17,9 +23,11 @@ char item_names[ITEM_CAP][64] = {0}; int main(void) { srand(time(NULL)); - generate_chain("files/in.txt"); + generate_chain(); - // print_chain(); +#ifdef PRINT_CHAIN + print_chain(); +#endif take_walk(); return 0; } |