aboutsummaryrefslogtreecommitdiff
path: root/src/gen_chain.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/gen_chain.c
parent104a6da9210a0c2ea2a6a8edf93fe6b7cc93680b (diff)
works better
Diffstat (limited to 'src/gen_chain.c')
-rw-r--r--src/gen_chain.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gen_chain.c b/src/gen_chain.c
index 636d3ea..0ad13d1 100644
--- a/src/gen_chain.c
+++ b/src/gen_chain.c
@@ -1,9 +1,10 @@
#include <stdio.h>
+#include <time.h>
#define PRINT_ITEM_FREQUENCY
// #define PRINT_ON_WALK
-#define SAVE_TO_FILE_ON_WALK "files/chain.txt"
-#define WALK_LEN 100000
+#define SAVE_TO_FILE_ON_WALK "files/in.txt"
+#define WALK_LEN 10000
#define ITEM_CAP 3
int ITEMS = 3;
@@ -15,9 +16,9 @@ double chain[ITEM_CAP][ITEM_CAP] = {
};
char item_names[ITEM_CAP][64] = {
- "burger",
- "pizza",
- "hotdog"
+ "Burger",
+ "Pizza",
+ "Hotdog"
};
#include "markov.h"