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

Merge remote-tracking branch 'origin/master'

Conflicts:
	lib/particle.py
	solution/random_walk.py
parents 170a94e9 3157195a
This diff is collapsed.
......@@ -79,6 +79,14 @@ class World:
def success_termination(self):
self.csv_round.success()
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):
"""
......
......@@ -2,7 +2,8 @@ import random
#Standard Lib that has to be in each solution
from solution.std_lib import *
def solution(world):
for particle in world.get_particle_list():
particle.move_to(random.choice(direction))
\ No newline at end of file
if world.get_actual_round() % 1 == 0:
for particle in world.get_particle_list():
particle.move_to(random.choice(direction))
\ No newline at end of file
Markdown is supported
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