diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-08-24 16:48:07 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-08-24 16:48:07 +0300 |
commit | e25536a4df3e6ffaa80abdcb34df2382213a725a (patch) | |
tree | 69f1190a290298758fd2001e7cf8608455a8da88 /src/main.c | |
parent | 104a6da9210a0c2ea2a6a8edf93fe6b7cc93680b (diff) |
works better
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,11 +1,12 @@ #include <stdio.h> +#include <time.h> #define PRINT_ITEM_FREQUENCY -// #define PRINT_ON_WALK -// #define SAVE_TO_FILE_ON_WALK "walk.txt" -#define WALK_LEN 1000000 +#define PRINT_ON_WALK +// #define SAVE_TO_FILE_ON_WALK "out.txt" +#define WALK_LEN 100 -#define ITEM_CAP 30 +#define ITEM_CAP 400 int ITEMS = 0; double chain[ITEM_CAP][ITEM_CAP] = {0}; @@ -16,9 +17,9 @@ char item_names[ITEM_CAP][64] = {0}; int main(void) { srand(time(NULL)); - generate_chain("files/chain.txt"); + generate_chain("files/in.txt"); - print_chain(); + // print_chain(); take_walk(); return 0; } |