This module exports various constants used in the game configuration. These constants include maximum ratios for green cells and spawn points, parameters for K-means clustering, survival decaying constants for parcels, agent camp time, and various base and agent configurations. These constants are used throughout the game to ensure consistent behavior and performance.
Properties
NameTypeDescription
MAX_GREEN_CELL_RATIOnumberMaximum ratio of green cells in the game.
MAX_SPAWN_RATIOnumberMaximum ratio of spawn points in the game.
MAX_TRIES_KMEANSnumberMaximum number of tries for K-means clustering.
MAX_ITERATIONS_KMEANSnumberMaximum iterations for K-means clustering.
ERROR_KMEANSnumberError threshold for K-means clustering.
PARCEL_SURVIVAL_LAMBDAnumberSurvival lambda for parcels.
CAMP_TIMEnumberTime in seconds for an agent to camp.
AGENT_TIMEnumberTime in seconds for agent collision.
USE_MAP_DIVISIONbooleanFlag to use map division.
BASE_TRIESnumberNumber of tries to pick the same base.
BASE_REMOVAL_TIMEnumberTime in milliseconds for occupied bases to be removed from the map.
BASE_SWITCH_MAX_TRIESnumberMaximum tries to switch bases.
GO_AWAY_MOVESnumberNumber of moves to go away from a base.
FREE_MATEnumberInfinity score for free mate option.
EXCHANGE_PARCELSnumberInfinity score for exchanging parcels option.
DEPOSIT_INSTANTLYnumberInfinity score for depositing instantly option.
PICKUP_NEAR_PARCELnumberInfinity score for picking up near parcel option.