Skip to content

Commit

Permalink
Added a small environment
Browse files Browse the repository at this point in the history
  • Loading branch information
olekscode committed Aug 31, 2023
1 parent ea72773 commit e0a1d84
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/ECEC-Model/ECECModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,30 @@ ECECModel >> remoteIslandEnvironment [
(x % 12 <= 3 and: [ y % 12 <= 3 ]) ifFalse: [ cell biomass: 0 ] ].
]

{ #category : #init }
ECECModel >> smallEnvironment [

self
createGridLines: 4
columns: 4
neighbourhood: 8
closed: false.

self theVegetationUnits do: [ :each | each initializeWithRandomBiomass ].

self
createN: 1
randomlyLocatedAloneEntities: ECECRestrainedForager.

self
createN: 1
randomlyLocatedAloneEntities: ECECUnrestrainedForager.

self
displayPov: #povBiomass of: ECECVegetationUnit;
displayPov: #defaultPOV of: ECECForager
]

{ #category : #control }
ECECModel >> step: anObject [

Expand Down

0 comments on commit e0a1d84

Please sign in to comment.