Update sketch_2020_09_15polyominoes.pyde

main
Alexandre B A Villares 2020-09-16 09:07:05 -03:00
rodzic b47451edd1
commit 212fb396e2
1 zmienionych plików z 3 dodań i 5 usunięć

Wyświetl plik

@ -4,12 +4,12 @@ https://pyvideo.org/kiwi-pycon-2013/polyominoes-an-exploration-in-problem-solvin
"""
from polyomino import Polyomino
x, y, w = 5, 5, 5
x, y, w = 5, 3, 3
def setup():
size(640, 480)
size(750, 550)
background(0)
print(count_polys(10))
print(count_polys(8))
def count_polys(target):
global x, y
@ -33,6 +33,4 @@ def count_polys(target):
x = 0
y += len(p) * w
return len(polyominoes)