Commit 370907ab authored by Ahmad Reza's avatar Ahmad Reza
Browse files

Merge remote-tracking branch 'origin/master'

parents 170a94e9 3157195a
This diff is collapsed.
...@@ -80,6 +80,14 @@ class World: ...@@ -80,6 +80,14 @@ class World:
self.csv_round.success() self.csv_round.success()
self.set_end() self.set_end()
def get_max_round(self):
The max round number
:return: maximum round number
return self.config_data.max_round
def get_actual_round(self): def get_actual_round(self):
""" """
The actual round number The actual round number
...@@ -2,7 +2,8 @@ import random ...@@ -2,7 +2,8 @@ import random
#Standard Lib that has to be in each solution #Standard Lib that has to be in each solution
from solution.std_lib import * from solution.std_lib import *
def solution(world): def solution(world):
if world.get_actual_round() % 1 == 0:
for particle in world.get_particle_list(): for particle in world.get_particle_list():
particle.move_to(random.choice(direction)) particle.move_to(random.choice(direction))
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment