def gen(cols=10, rows=20): piece = {(0,0),(0,1),(1,0),(1,1)} color = '#4A90E2' cells = [] for r in range(rows): for c in range(cols): cells.append(f'