Attached above is a video of Sid and I summarising the code which we wrote, showing examples of all of the different things that we’ve learned in class so far.
This is an image that shows how we used a function to resemble a picture made out of symbols which we used across the code as a universal signal for game over.
Below is an image that shows the first part of out code, which includes a list, the use of elif, if, and how inputs work. We produced a summary outlined in the annotations in the picture itself.
In this image, we showed the use of a variable in the hunger, which changed depending on what the player inputted into the input section. We also demonstrated how to summon the backpack list which we created at the start.
This image shows how after demonstrating the techniques and concepts learned in class, we were able to just continue the storyline of the code without much trouble. Note, the ‘endgame()’ summons the game over sign that we produced in the function at the top of the code.
The rest of our code is just storyline, lacking any other concepts beside print and input functions.
Overall, we didn’t have too much trouble creating the code, only problem was synchronising all of the functions and lists throughout the code, by making sure to include a ‘()’ or if we were meant to use square brackets instead.
Attached below are our mind maps and pseudo code: