Skip to content

Commit

Permalink
cheating functionality added
Browse files Browse the repository at this point in the history
  • Loading branch information
ellenwaddle committed May 8, 2020
1 parent 2b7ca28 commit 3c82111
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions model.py
Expand Up @@ -116,10 +116,14 @@ def move(self):
new_position = optimal.pos # identify the position of the optimal obj
self.model.grid.move_agent(self, new_position)

def step(self):
self.move()
self.secrete()

def step(self):
if (self.unique_id%10 != 0):
self.move()
self.secrete()
else: #either quell secretion or moving
#self.secrete()
self.move()

'''Above we define the agents'''
'''Below we define the model'''
Expand Down

0 comments on commit 3c82111

Please sign in to comment.