diff options
| author | nathan <nathansmith@disroot.org> | 2026-01-14 09:08:06 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2026-01-14 09:08:06 +0000 |
| commit | bbce25930d9910c715245f5d87a108ab1dac3426 (patch) | |
| tree | 2820245b8c6714a3ba69981a34cc7aafdbf8b8fb /src/mad-libs.h | |
| parent | 2ab36473a20ec33e8d3cae810384b4f28505b4f9 (diff) | |
| download | FindThings-bbce25930d9910c715245f5d87a108ab1dac3426.tar.gz FindThings-bbce25930d9910c715245f5d87a108ab1dac3426.tar.bz2 FindThings-bbce25930d9910c715245f5d87a108ab1dac3426.zip | |
Mad libs thingy working
Diffstat (limited to 'src/mad-libs.h')
| -rw-r--r-- | src/mad-libs.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/mad-libs.h b/src/mad-libs.h new file mode 100644 index 0000000..cb996f4 --- /dev/null +++ b/src/mad-libs.h @@ -0,0 +1,31 @@ +#include "utils.h" + +#ifndef MAD_LIBS_H +#define MAD_LIBS_H + +/* + @n for noun + @v for verb + @a for adverb + @j for adjective + @r for random + @@ for normal @ +*/ + +#define MAD_LIBS_MAX 24 + +#define NOUN_COUNT 38 +#define VERB_COUNT 25 +#define ADVERB_COUNT 17 +#define ADJECTIVE_COUNT 28 + +extern const char madLibsNouns[NOUN_COUNT][MAD_LIBS_MAX]; +extern const char madLibsVerbs[VERB_COUNT][MAD_LIBS_MAX]; +extern const char madLibsAdverbs[ADVERB_COUNT][MAD_LIBS_MAX]; +extern const char madLibsAdjectives[ADJECTIVE_COUNT][MAD_LIBS_MAX]; + +Seed getRandomMapLibsWord(char* outputString, char type, Seed seed); +Seed mapLibs(char* outputString, const char* formatString, size_t maxSize, + Seed seed); + +#endif |
