@@ -40,7 +40,7 @@ our simulation is intended to be amusing, not accurate, so we can
4040freely 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
4444strings 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))
8080that models the world has a fixed width and height. Squares are
8181identified 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
8383link:06_object.html#exercise_vector[previous chapter]), to represent
8484these 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
118118single 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
256256array from the `directions` object we defined
257257link:07_elife.html#directions[earlier], but that provides no
258258guarantees 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
260260order 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
613613object 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
935935the critters from the old world into it, but they would just die
936936since 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