Skip to content

Commit

Permalink
Add animation for 1-prewritten world
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmog committed Nov 24, 2017
1 parent f761bbc commit e122904
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Instead of starting from scratch each time, we can use a **file** to store the i

> a set of instructions stored up one after the other (for instance, in a file), is called a **procedure**. A real-world cake recipe (take a bowl, add flour, add eggs, add sugar, turn on oven to 200, cook for 20 minutes, remove mixture, cool) is an example of a procedure. Each step is executed one-at-a-time. The whole recipe can be 'reloaded' to create a ready-to-go cake at any time.
<gif of world being created from a file>
![A world being created from a file](../images/1-prewritten-world.gif)

To move your instructions into a file, we must make a Ruby-specific file (just as a Microsoft Word document has the file suffix `.doc`, so Ruby has the suffix `.rb`), and then write our instructions into it, just as we would the REPL:

Expand Down
Binary file added images/1-prewritten-world.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e122904

Please sign in to comment.