forked from s452751/AI_PRO
19 lines
568 B
Python
19 lines
568 B
Python
import random
|
|
|
|
from Field import Field
|
|
from constants import *
|
|
|
|
states = ['toPlow', 'toSeed', 'toFertilize', 'toWater', 'toCut']
|
|
|
|
|
|
def generate():
|
|
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.choice(states)))
|
|
|
|
board[0][0] = Field(int(0 * TILE_SIZE), int(0 * TILE_SIZE), "TOOLS_FIELD")
|
|
board[1][0] = Field(int(1 * TILE_SIZE), int(0 * TILE_SIZE), "FUEL_FIELD")
|
|
return board
|