From 2078798fddfb084962fb177c612ee3dd45fa20f6 Mon Sep 17 00:00:00 2001 From: Jaap Marsman Date: Wed, 28 Dec 2022 10:51:22 +0000 Subject: [PATCH] updated work --- flashmaths/notes/pseudo_code.gd | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 flashmaths/notes/pseudo_code.gd diff --git a/flashmaths/notes/pseudo_code.gd b/flashmaths/notes/pseudo_code.gd new file mode 100644 index 0000000..f6b1499 --- /dev/null +++ b/flashmaths/notes/pseudo_code.gd @@ -0,0 +1,41 @@ +# Pseudo-Code thinking writing + +# So two core scripts: The CONTROLLER SCRIPT (parent) and the DECK SCRIPT (child) + +# Cards are kept in a script (child node script should work with a boatload of variables) + +# Read from the script how many cards are in there + +# I really need to work on dictionaries and arrays for this to become a success! +# Time for some Learn Godot stuff + +# Select a random card to show + +# Keep track of which cards are shown + +# Once no cards remain - tally up + +# --- + +# Each card consists of a question, an answer - but sometimes the answer is a string, float or integer +# So need to find a way around that - Reset an empty variable? + +var question : String +var answer_type : String + +if answer_type == "int": + var answer : int + +# Something like this? + +# --- + +# Randomised wrong answers are generated - depending on the content_variable +# This provides a range, where answers are usually 2 steps away from the correct one + +var randomised_variable = 1 +var wrong_answer_one +var wrong_answer_two +var wrong_answer_three +var wrong_answer_four +var wrong_answer_five \ No newline at end of file