Day 3.2 Exercise 14 Prompting and Passing

Here’s my work.
Here’s the link to exercise 14.

Ex14 Code
Ex14 Code Modified with study drill
Ex14 Shell
Ex14 output

Study Drill

1. Find out what Zork and Adventure were. Try to find a copy and play it.
Someday… maybe…

2. Change the prompt variable to something else entirely.
Didn’t do it in the picture. But it simply changes > to something else.

3. Add another argument and use it in your script, the same way you did in the previous exercise with first, second = ARGV.
Added a new user argument.

4. Make sure you understand how I combined a “”” style multiline string with the #{} format activator as the last print.


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s