aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-24 16:48:07 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-24 16:48:07 +0300
commite25536a4df3e6ffaa80abdcb34df2382213a725a (patch)
tree69f1190a290298758fd2001e7cf8608455a8da88 /src/main.c
parent104a6da9210a0c2ea2a6a8edf93fe6b7cc93680b (diff)
works better
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 7 insertions, 6 deletions
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 <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;
}