So far: FINALLY started building the actual game!!
Using the modular approach I mentioned, I built a subroutine that asks a question, validates the answer (nested while loop) and converts it into a Boolean to return it.
I’ve also started askQ(), which will use what the computer already knows to choose its next question, so questions are more intentional and don’t feel scripted.
The challenge: Some attributes are stored in dictionaries when there are lots of possible answers, like class, diet, habitat, etc., while others are just True/False booleans, like has_fur.
I’ve therefore started writing YET ANOTHER dictionary - yep, more more data writing, YAYY!! - to track each attribute as unknown, true or false depending on the information the computer has been given.
Most importantly, I’ve worked through functions, parameters, return values, dictionaries, keys/values, append() and local variables.
Next Steps: finish the attribute tracking system, make askQ() work, eliminate animals based on data and somehow get the computer answering THE PLAYER’s questions too!!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.