pep bullshit
This commit is contained in:
@@ -46,6 +46,7 @@ print(count)
|
|||||||
# part 2
|
# part 2
|
||||||
count_two = 0
|
count_two = 0
|
||||||
|
|
||||||
|
|
||||||
def remove_rolls(count, table):
|
def remove_rolls(count, table):
|
||||||
for y in range(1, len(table) - 1):
|
for y in range(1, len(table) - 1):
|
||||||
for x in range(1, len(table[0]) - 1):
|
for x in range(1, len(table[0]) - 1):
|
||||||
@@ -63,9 +64,10 @@ def remove_rolls(count, table):
|
|||||||
table[y][x] = empty
|
table[y][x] = empty
|
||||||
return count, table
|
return count, table
|
||||||
|
|
||||||
|
|
||||||
prev = -1
|
prev = -1
|
||||||
table_two = padded_table.copy()
|
table_two = padded_table.copy()
|
||||||
while prev != count_two:
|
while prev != count_two:
|
||||||
prev = count_two
|
prev = count_two
|
||||||
count_two, table_two = remove_rolls(count_two, table_two)
|
count_two, table_two = remove_rolls(count_two, table_two)
|
||||||
print(count_two)
|
print(count_two)
|
||||||
|
|||||||
Reference in New Issue
Block a user