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/gen_chain.c |
Big Bang
Diffstat (limited to 'src/gen_chain.c')
-rw-r--r-- | src/gen_chain.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gen_chain.c b/src/gen_chain.c new file mode 100644 index 0000000..636d3ea --- /dev/null +++ b/src/gen_chain.c @@ -0,0 +1,32 @@ +#include <stdio.h> + +#define PRINT_ITEM_FREQUENCY +// #define PRINT_ON_WALK +#define SAVE_TO_FILE_ON_WALK "files/chain.txt" +#define WALK_LEN 100000 + +#define ITEM_CAP 3 +int ITEMS = 3; + +double chain[ITEM_CAP][ITEM_CAP] = { + { 0.2, 0.6, 0.2 }, + { 0.3, 0.0, 0.7 }, + { 0.5, 0.0, 0.5 } +}; + +char item_names[ITEM_CAP][64] = { + "burger", + "pizza", + "hotdog" +}; + +#include "markov.h" + +int main(void) +{ + srand(time(NULL)); + + print_chain(); + take_walk(); + return 0; +} |