Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŸ Monday: Tavern Beginnings

Prompt:
Create your tavern adventurer!

  1. Use input() for:

    • Hero's name: "What's your warrior's name? "
    • Starting town: "Where does your adventure begin? (Misty Vale/Stonehaven) "
    • Store health as 100
  2. Print using f-string:
    โš”๏ธ [Name] enters [Town] Tavern, ready for adventure!

  3. Use if to check health:

    • If 100: โœจ [Name] is at full health! Let's roll dice!
    • Else: ๐Ÿงช [Name] should visit the alchemist first!

๐ŸŒณ Tuesday: Forest Encounter

Prompt:
You explore the Whispering Woods!

  1. Use input() for:
    "What do you see? (owl/troll/fairy) "

  2. Use if/elif/else:

    • Owl: ๐Ÿฆ‰ [Name] gets wise advice! Health +10
    • Troll: ๐Ÿ‘น ROAR! [Name] loses 25 health!
    • Fairy: ๐Ÿงš [Name] dances with fairies! Health +20
  3. Print using f-string:
    [Name]'s current health: [health]


๐ŸงŒ Wednesday: Bridge Showdown

Prompt:
A bridge collapses over rapids!

  1. Use input():
    "Swim across or climb rocks? (swim/climb) "

  2. Use if/elif:

    • Swim: ๐ŸŒŠ Cold water! -30 HP | Remaining: [health]
    • Climb: ๐Ÿง— Risky climb! -15 HP | Remaining: [health]
  3. Use and to check if health is less than or equal to 30 AND greater than 0:
    ๐Ÿšจ WARNING: [Name] is shaking with fatigue!


๐Ÿบ Thursday: Ancient Temple

Prompt:
You find a glowing artifact!

  1. Use input():
    "Touch it or leave it? "

  2. Use if/else:

    • Touch: ๐Ÿ’ฅ CURSED! [Name] loses 40 health!
    • Leave: ๐Ÿ”ฎ Wise choice! Find healing spring +25 HP
  3. Use or to check if health is greater than 80 OR choice was "leave":
    โœจ Mystical energy surrounds you!


๐ŸŽช Friday: Festival Finale

Prompt:
Return to town for the harvest festival!

  1. Use if/else:

    • If health is greater than or equal to 60: ๐ŸŽ‰ [Name] leads the parade! Crowd cheers!
    • Else: ๐Ÿฉน [Name] rests at healers' tent
  2. Print using f-string:
    Final Health: [health] | Fame: [fame_level]

  3. Check if town is "Misty Vale" AND health is greater than 50:
    ๐Ÿ† Local hero achievement unlocked!

Next Steps:
Add more input choices! What if:

  • Player can choose weapon type?
  • Add tavern minigames with dice rolls?
  • Let players name their pet companion?

About

Use if, input() and related functions to solidify knowledge of basic python.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors