Skip to content

Commit 3548e58

Browse files
committed
Trim trailing white space to pass those tests
1 parent 428f032 commit 3548e58

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

IABM Textbook/chapter 3/Fire Extensions/Fire Simple Extension 1.nlogox

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ to setup
99
;; make some green trees
1010
ask patches [
1111
if (random 100) < density [ set pcolor green ]
12-
]
13-
12+
]
13+
1414
;; Count initial trees before lighting trees on fire to get accurate calculation of percent burned
15-
set initial-trees count patches with [pcolor = green]
16-
15+
set initial-trees count patches with [pcolor = green]
16+
1717
ask patches [
1818
;; make a column of burning trees at the left-edge
1919
if pxcor = min-pxcor [ set pcolor red ]
20-
]
20+
]
2121
2222
reset-ticks
2323
end

IABM Textbook/chapter 3/Fire Extensions/Fire Simple Extension 2.nlogox

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ to setup
99
;; make some green trees
1010
ask patches [
1111
if (random 100) < density [ set pcolor green ]
12-
]
13-
12+
]
13+
1414
;; Count initial trees before lighting trees on fire to get accurate calculation of percent burned
15-
set initial-trees count patches with [pcolor = green]
16-
15+
set initial-trees count patches with [pcolor = green]
16+
1717
ask patches [
1818
;; make a column of burning trees at the left-edge
1919
if pxcor = min-pxcor [ set pcolor red ]
20-
]
20+
]
2121
2222
reset-ticks
2323
end

IABM Textbook/chapter 3/Fire Extensions/Fire Simple Extension 3.nlogox

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ to setup
99
;; make some green trees
1010
ask patches [
1111
if (random 100) < density [ set pcolor green ]
12-
]
13-
12+
]
13+
1414
;; Count initial trees before lighting trees on fire to get accurate calculation of percent burned
15-
set initial-trees count patches with [pcolor = green]
16-
15+
set initial-trees count patches with [pcolor = green]
16+
1717
ask patches [
1818
;; make a column of burning trees at the left-edge
1919
if pxcor = min-pxcor [ set pcolor red ]
20-
]
20+
]
2121
2222
reset-ticks
2323
end

IABM Textbook/chapter 3/Fire Extensions/Fire Simple.nlogox

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ to setup
99
;; make some green trees
1010
ask patches [
1111
if (random 100) < density [ set pcolor green ]
12-
]
13-
12+
]
13+
1414
;; Count initial trees before lighting trees on fire to get accurate calculation of percent burned
15-
set initial-trees count patches with [pcolor = green]
16-
15+
set initial-trees count patches with [pcolor = green]
16+
1717
ask patches [
1818
;; make a column of burning trees at the left-edge
1919
if pxcor = min-pxcor [ set pcolor red ]
20-
]
20+
]
2121
2222
reset-ticks
2323
end

0 commit comments

Comments
 (0)