diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-08-23 20:45:56 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-08-23 20:45:56 +0300 |
commit | 39161cf246aa2b34c7c02ebb6c88da3776979670 (patch) | |
tree | 885d0945c4d15c3c9035327f1560357c4b9c9bd5 /src/main.c |
Big Bang
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..e1a942e --- /dev/null +++ b/src/main.c @@ -0,0 +1,24 @@ +#include <stdio.h> + +#define PRINT_ITEM_FREQUENCY +// #define PRINT_ON_WALK +// #define SAVE_TO_FILE_ON_WALK "walk.txt" +#define WALK_LEN 1000000 + +#define ITEM_CAP 30 +int ITEMS = 0; + +double chain[ITEM_CAP][ITEM_CAP] = {0}; +char item_names[ITEM_CAP][64] = {0}; + +#include "markov.h" + +int main(void) +{ + srand(time(NULL)); + generate_chain("files/chain.txt"); + + print_chain(); + take_walk(); + return 0; +} |