Tweak for pylint
This commit is contained in:
parent
00c6c24af4
commit
a0bf477fe9
1 changed files with 6 additions and 6 deletions
|
|
@ -66,12 +66,12 @@ def splash():
|
|||
time.sleep(0.005)
|
||||
|
||||
def assign_colors():
|
||||
remaining = [(x, y) for x in range(8) for y in range(4)]
|
||||
while remaining:
|
||||
first_of_pair = random.choice(remaining)
|
||||
remaining.remove(first_of_pair)
|
||||
second_of_pair = random.choice(remaining)
|
||||
remaining.remove(second_of_pair)
|
||||
unassigned = [(x, y) for x in range(8) for y in range(4)]
|
||||
while unassigned:
|
||||
first_of_pair = random.choice(unassigned)
|
||||
unassigned.remove(first_of_pair)
|
||||
second_of_pair = random.choice(unassigned)
|
||||
unassigned.remove(second_of_pair)
|
||||
random_color = random.choice(COLORS)
|
||||
pixel_colors[index_of(first_of_pair)] = random_color
|
||||
pixel_colors[index_of(second_of_pair)] = random_color
|
||||
|
|
|
|||
Loading…
Reference in a new issue