2021-05-23 22:32:00 +02:00
|
|
|
import random
|
|
|
|
|
2021-05-01 01:24:35 +02:00
|
|
|
FRAME_WIDTH = 555
|
|
|
|
FRAME_HEIGHT = 555
|
|
|
|
|
|
|
|
WINDOW_X = FRAME_WIDTH + 1200
|
2021-04-30 23:52:55 +02:00
|
|
|
WINDOW_Y = 950
|
|
|
|
|
|
|
|
# Size of small image
|
|
|
|
IMAGE_SIZE = 50
|
|
|
|
|
2021-05-24 16:43:07 +02:00
|
|
|
MIN_AMOUNT_OF_MINES = 6
|
2021-05-23 22:32:00 +02:00
|
|
|
MAX_AMOUNT_OF_MINES = 11
|
|
|
|
AMOUNT_OF_MINES = random.randint(MIN_AMOUNT_OF_MINES, MAX_AMOUNT_OF_MINES)
|
2021-04-30 23:52:55 +02:00
|
|
|
|
2021-06-19 04:08:21 +02:00
|
|
|
MIN_AMOUNT_OF_HOUSES = 10
|
|
|
|
MAX_AMOUNT_OF_HOUSES = 34
|
|
|
|
AMOUNT_OF_HOUSES = random.randint(MIN_AMOUNT_OF_HOUSES, MAX_AMOUNT_OF_HOUSES)
|
|
|
|
|
2021-06-21 16:47:18 +02:00
|
|
|
DELAY_TIME = 0.2
|
2021-06-19 04:08:21 +02:00
|
|
|
SLEEP_AFTER_CHECK_MINE = 1
|
2021-04-30 23:52:55 +02:00
|
|
|
|
2021-05-01 01:24:35 +02:00
|
|
|
STEP = IMAGE_SIZE + 5
|
2021-04-30 23:52:55 +02:00
|
|
|
|
|
|
|
standard_cell_cost = 10
|
|
|
|
|
|
|
|
amount_of_sand_cells = 10
|
|
|
|
sand_cell_cost = 20
|
|
|
|
|
|
|
|
amount_of_water_cells = 10
|
2021-05-09 15:25:53 +02:00
|
|
|
water_cell_cost = 40
|
2021-04-30 23:52:55 +02:00
|
|
|
|
|
|
|
amount_of_swamp_cells = 10
|
2021-05-24 16:43:07 +02:00
|
|
|
swamp_cell_cost = 80
|
2021-05-01 01:24:35 +02:00
|
|
|
|
|
|
|
x_start = 5
|
|
|
|
y_start = 5
|
2021-05-24 16:43:07 +02:00
|
|
|
|
|
|
|
NUMBER_OF_INDIVIDUALS_FOR_DUEL = 4
|
|
|
|
NUMBER_OF_POINTS_PERMUTATION = 10
|
|
|
|
PERCENT_OF_MUTATION = 0.01
|
|
|
|
PERCENT_OF_OUTGOING_INDIVIDUALS = 0.03
|
2021-05-30 00:25:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
label_text = ""
|
2021-06-19 23:20:17 +02:00
|
|
|
|
2021-06-21 16:47:18 +02:00
|
|
|
AMOUNT_OF_EPOCHS = 500
|
2021-06-20 23:37:15 +02:00
|
|
|
DROPOUT = 0.2
|