Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ahmad Reza Cheraghi
swarm-sim
Commits
420f695f
Commit
420f695f
authored
Sep 18, 2019
by
Ahmad Reza Cheraghi
Browse files
Update random_walk.py
parent
84d27967
Changes
1
Hide whitespace changes
Inline
Side-by-side
solution/random_walk.py
View file @
420f695f
...
@@ -3,7 +3,5 @@ import random
...
@@ -3,7 +3,5 @@ import random
from
solution.std_lib
import
*
from
solution.std_lib
import
*
def
solution
(
world
):
def
solution
(
world
):
for
particle
in
world
.
get_particle_list
():
if
world
.
get_actual_round
()
%
1
==
0
:
particle
.
move_to
(
random
.
choice
(
direction
))
for
particle
in
world
.
get_particle_list
():
\ No newline at end of file
particle
.
move_to
(
random
.
choice
(
direction
))
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment