Add Bone Quest anatomy quiz for CoCo
This commit is contained in:
commit
3cc37be5fb
50 files changed
+10146
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#ifndef QUIZ_H
|
||||
#define QUIZ_H
|
||||
#define BONE_COUNT 25
|
||||
#define ANSWER_SIZE 40
|
||||
typedef unsigned char U8;
|
||||
typedef struct { const char *name; const char *hint; const char *aliases; } Bone;
|
||||
extern const Bone bones[BONE_COUNT];
|
||||
extern U8 order[BONE_COUNT], options[4], question, score, corrections;
|
||||
extern U8 answered[BONE_COUNT], correct[BONE_COUNT], corrected[BONE_COUNT];
|
||||
extern char responses[BONE_COUNT][ANSWER_SIZE];
|
||||
extern unsigned random_state;
|
||||
void quiz_start(unsigned seed);
|
||||
unsigned quiz_random(unsigned bound);
|
||||
void quiz_options(U8 bone);
|
||||
void normalize(const char *in,char *out);
|
||||
U8 classify(U8 bone,const char *answer);
|
||||
void quiz_record(U8 bone,const char *answer,U8 right,U8 spelling);
|
||||
#endif
|
||||
Reference in new issue
Block a user