AI_PRO/Board.py

14 lines
353 B
Python
Raw Normal View History

2021-03-17 01:51:56 +01:00
import random
2021-03-28 22:42:36 +02:00
from Main.Field import Field
from Main.constants import *
2021-03-17 01:51:56 +01:00
def generate():
2021-03-28 22:42:36 +02:00
board = []
for i in range(0, int(HORIZONTAL_TILES_NUMBER)):
board.append([])
for j in range(0, int(VERTICAL_TILES_NUMBER)):
board[i].append(Field(int(i * TILE_SIZE), int(j * TILE_SIZE), random.randint(0, 3)))
2021-03-17 01:51:56 +01:00
return board