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-05-24 16:43:07 +02:00
|
|
|
DELAY_TIME = 0.2
|
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
|
|
|
|
SLEEP_AFTER_CHECK_MINE = 1
|