Commit 725a3b4a authored by Johann Dreo's avatar Johann Dreo
Browse files

fix bit neighborhood

parent 3b892793
......@@ -71,8 +71,8 @@ def neighb_square(sol, scale, domain_width):
nx = np.random.randint(px-w,px+w)
ny = min(max(0,ny),domain_width-1)
nx = min(max(0,nx),domain_width-1)
if new[nx][ny] != 1:
if new[ny][nx] != 1:
new[py][px] = 0 # Remove original position.
new[ny][nx] = 1
# else pass
......
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