from vectors_util import Vector
from terrain import Terrain

BACKGROUND_SIZE = (600, 600)
BACKGROUND_COLOR = [255, 255, 255]
TARGET_COLOR = [0, 255, 0]
BEST_DOT_COLOR = [0, 255, 0]
TERRAIN_COLOR = [0, 0, 255]

DOT_COLOR = [0, 0, 0]
DOT_HEIGHT = 7
DOT_WIDTH = 7
DOT_START_X_POSITION = 300
DOT_START_Y_POSITION = 500
SIZE_OF_POPULATION = 1000
TARGET_POINT = Vector(300, 20)


ELITE_NUMBER = int(SIZE_OF_POPULATION * 0.2)
MUTATE_RATE = 0.1
MATE_POPULATION = int(SIZE_OF_POPULATION / 3)

LEFT_SPACE = Vector(60, 160)
RIGHT_SPACE = Vector(680, 180)

TERRAIN = {'board': Terrain(0, 0, BACKGROUND_SIZE[0], BACKGROUND_SIZE[1], BACKGROUND_COLOR), \
           'block': Terrain(0, 200, 300, 30, TERRAIN_COLOR), \
           'block2': Terrain(200, 400, 600, 30, TERRAIN_COLOR), \
           'target_dot': Terrain(300, 20, DOT_HEIGHT, DOT_HEIGHT, TARGET_COLOR)}

