Mindmap
ITEM 2
Inhalt der Mindmap
ITEM 2
Prescribed criteria
- must have at least two choices for each input
- Must have a option were you must choose a path
- must include a input were you have two choices
- must have at least 10 different variables in total
- I must have 10 variables in my code.
- My game must have a story in it.
- All my variables must be different.
- must use a WHILE loop
- must have a while loop in my code
- must use variables that match your storyline
- Must use variables in my code
- must have at least two choices for each input
Coding constructs
- While loop
- repeats code while a condition stays true
- while True: choice = input("Pick a path: ")
- repeats code while a condition stays true
- If statement
- runs code only if a condition is true.
- if shop_choice == "yes": print("You can pick an item.")
- runs code only if a condition is true.
- While loop
Self-described criteria
- It must be a medieval game with a boss fight at the end.
- It must have a castle in it to give it a medieval touch.
- It must have a creature towards the end.
- It must be a medieval game with a boss fight at the end.
Existing text based adventure game
- Boss fight game
- Choice-based survival game with items to purchase, allies and bosses to fight.
- Stengths
- Item inventory, various endings and path chocies
- Weaknesses
- Code typos, instant deaths and No game save.
- Stengths
- Choice-based survival game with items to purchase, allies and bosses to fight.
- Boss fight game
Algorithm constructs
- sequence
- Code runs step-by-step in order from top to bottom.
- print("Welcome to the bossfight game !") hp = 100 gold = 50
- Code runs step-by-step in order from top to bottom.
- selection and condition
- Code makes decisions using IF and ELIF statements based on player input.
- if choice == "haunted forest": elif choice == "abandoned castle":
- Code makes decisions using IF and ELIF statements based on player input.
- sequence
Ideas for story
- Add health counter
- Tracks player damage during battles.
- hp = 100 prints out during a boss fight.
- Tracks player damage during battles.
- Track Inventory Items
- Shows what items the player is carrying.
- weapon = "sword" prints out at the top of each turn.
- Shows what items the player is carrying.
- Add health counter
Informationen
- Beschreibung
- Mindmap am ITEM 2, erstellt von Mughira Tirmizey am 27/05/2026.
- Erstellt von
- Mughira Tirmizey
- Aufrufe
- 1
- Bewertung