Exercise 45. You Make a Game

You need to start learning to feed yourself. Hopefully as you have worked through this book, you have learned that all the information you need is on the Internet—you just have to go search for it. The only thing you have been missing are the right words and what to look for when you search. Now you should have a sense of it, so it’s about time you struggled through a big project and tried to get it working.

Here are your requirements:

1. Make a different game from the one I made.

2. Use more than one file, and use require to use them. Make sure you know what that is.

3. Use one class per room and give the classes names that fit their purpose (like GoldRoom, KoiPondRoom).

4. Your runner will need to know about these ...

Get Learn Ruby the Hard Way: A Simple and Idiomatic Introduction to the Imaginative World of Computational Thinking with Code, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.