Learn Ruby the Hard Way – Exercise 31 Making Decisions

Here is my work for Exercise 31.

Exercise 31 Code
Exercise 31 Code
Playing around with exercise 31's choose-your-own-adventure game!
Playing around with exercise 31’s choose-your-own-adventure game!

Study Drills
1. Make new parts of the game and change what decisions people can make.
I added a third door where you get brought to the moon.

Door #1, Door #2, or Door #3?
Door #1, Door #2, or Door #3?

2. Write a completely new game. Maybe you don’t like this one, so make your own. This is your computer, do what you want.

I made a Halloween choose-your-own-adventure !
I made a Halloween choose-your-own-adventure !

Summary
This exercise uses standard input, boolean expressions, and if-elseif-statements to make a simple Choose-Your-Own-Adventure. I liked thinking through the different scenarios that could happen!

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s