Wednesday, 11 June 2025
Queuing for a living.
# Neighborhood Playhouse Adventure
def start_game
puts "Welcome to the Neighborhood Playhouse!"
puts "You approach the playhouse, but you can't come in just yet."
puts "Do you want to try to enter? (yes/no)"
answer = gets.chomp.downcase
if answer == "yes"
attempt_entry
else
puts "Maybe another time! You decide to leave the playhouse for now."
end
end
def attempt_entry
puts "You knock on the door. Someone inside asks, 'Who's there?'"
puts "Do you say 'It's me! Can I come in?' (yes/no)"
response = gets.chomp.downcase
if response == "yes"
puts "The door opens! You are welcomed into the neighborhood playhouse. Enjoy your time!"
else
puts "The door stays shut. Maybe next time!"
end
end
# Start the game
start_game
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment