Skip to content

Commit

Permalink
Delete file
Browse files Browse the repository at this point in the history
  • Loading branch information
Quang Le committed Aug 19, 2021
1 parent 161639f commit 09f4c05
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 338 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file added __pycache__/runner.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/runner_sample.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/virtual_world.cpython-38.pyc
Binary file not shown.
Binary file added simple_virtual_world/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions simple_virtual_world/runner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

from mesa import Agent, Model
from mesa.space import MultiGrid
import math
Expand Down
332 changes: 0 additions & 332 deletions simple_virtual_world/runner_sample.py

This file was deleted.

8 changes: 5 additions & 3 deletions simple_virtual_world/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ def cell(agent):
portrayal['Color'] = '#237308'
elif agent.type == 'grass':
portrayal['Color'] = '#4ECA24'
<<<<<<< Updated upstream


<< << << < Updated upstream
elif agent.type == 'runner':
=======
== == == =
elif agent.type == 'type1':
>>>>>>> Stashed changes
>>>>>> > Stashed changes
portrayal['Shape'] = 'circle'
portrayal['r'] = '0.7'
portrayal['Layer'] = 1
Expand Down
8 changes: 5 additions & 3 deletions simple_virtual_world/virtual_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,14 @@ def __init__(self, N, width, height):
runner = RunnerAgent(i, self)
# store the inital position as attribte
runner.init_position = self.random.choice(self.roads)
<<<<<<< Updated upstream


<< << << < Updated upstream
print('Initial position: ', runner.init_position)
=======
== == == =
# runner.init_position = (46, 21)
# print('Initial position: ', runner.init_position)
>>>>>>> Stashed changes
>>>>>> > Stashed changes
self.grid.place_agent(runner, runner.init_position)
self.schedule.add(runner)

Expand Down

0 comments on commit 09f4c05

Please sign in to comment.