File size: 264 Bytes
03b0d13 |
1 2 3 4 5 6 7 8 9 |
import tetris
def BoardState(gs:tetris.GameState) -> list[int]:
"""Represents the board as a state of flattened integers."""
ToReturn:list[int] = []
for row in gs.board:
for col in row:
ToReturn.append(int(col))
return ToReturn |