Skip to content

Commit 91d518d

Browse files
committed
Integrate proofreading for Chapter 7
1 parent c4b0447 commit 91d518d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

07_elife.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ our simulation is intended to be amusing, not accurate, so we can
4040
freely cut such corners.
4141

4242
[[plan]]
43-
(((array)))We can define a world with a “plan”, an array of
43+
(((array)))We can define a world with a _plan_, an array of
4444
strings that lays out the world's grid using one character per square.
4545

4646
// include_code
@@ -79,7 +79,7 @@ take one turn and updates the world to reflect their actions.
7979
(((array,as grid)))(((Vector type)))(((coordinates)))The ((grid))
8080
that models the world has a fixed width and height. Squares are
8181
identified by their x- and y-coordinates. We use a simple type,
82-
` (as seen in the exercises for the
82+
`Vector` (as seen in the exercises for the
8383
link:06_object.html#exercise_vector[previous chapter]), to represent
8484
these coordinate pairs.
8585

@@ -114,9 +114,9 @@ console.log(grid[1][2]);
114114
// → bottom right
115115
----
116116

117-
(((array,indexing)))(((coordinates)))(((grid)))Or, we can use a
117+
(((array,indexing)))(((coordinates)))(((grid)))Or we can use a
118118
single array, with size width × height, and decide that the element at
119-
(x,y) is found at position x + (y × width) in the array.
119+
(_x_,_y_) is found at position _x_ + (_y_ × width) in the array.
120120

121121
[source,javascript]
122122
----
@@ -256,7 +256,7 @@ direction names. We could also have used `Object.keys` to get this
256256
array from the `directions` object we defined
257257
link:07_elife.html#directions[earlier], but that provides no
258258
guarantees about the order in which the properties are listed. In most
259-
situations modern JavaScript engines will return properties in the
259+
situations, modern JavaScript engines will return properties in the
260260
order they were defined, but they are not required to.
261261

262262
(((|| operator)))(((null)))The “++|| "s"++” in the `act` method is
@@ -611,7 +611,7 @@ in, the critters still won't be tempted to try to walk off the edges.
611611

612612
(((electronic life)))(((simulation)))We instantiated a world
613613
object earlier. Now that we've added all the necessary methods, it
614-
should be possible to actually make it move.
614+
should be possible to actually make the world move.
615615

616616
[source,javascript]
617617
----
@@ -934,7 +934,7 @@ require a valid (and empty) destination.
934934
((framework)) to simulate these more lifelike creatures. We could put
935935
the critters from the old world into it, but they would just die
936936
since they don't have an ((energy)) property. So let's make new ones.
937-
First we'll write a ((plant)), which is a rather simple life form.
937+
First we'll write a ((plant)), which is a rather simple life-form.
938938

939939
// include_code
940940

0 commit comments

Comments
 (0)