From e25536a4df3e6ffaa80abdcb34df2382213a725a Mon Sep 17 00:00:00 2001 From: kartofen Date: Wed, 24 Aug 2022 16:48:07 +0300 Subject: works better --- src/main.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index e1a942e..01dfe23 100644 --- a/src/main.c +++ b/src/main.c @@ -1,11 +1,12 @@ #include +#include #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; } -- cgit v1.2.3