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.
PropertiesName | Type | Description |
---|---|---|
MAX_GREEN_CELL_RATIO | number | Maximum ratio of green cells in the game. |
MAX_SPAWN_RATIO | number | Maximum ratio of spawn points in the game. |
MAX_TRIES_KMEANS | number | Maximum number of tries for K-means clustering. |
MAX_ITERATIONS_KMEANS | number | Maximum iterations for K-means clustering. |
ERROR_KMEANS | number | Error threshold for K-means clustering. |
PARCEL_SURVIVAL_LAMBDA | number | Survival lambda for parcels. |
CAMP_TIME | number | Time in seconds for an agent to camp. |
AGENT_TIME | number | Time in seconds for agent collision. |
USE_MAP_DIVISION | boolean | Flag to use map division. |
BASE_TRIES | number | Number of tries to pick the same base. |
BASE_REMOVAL_TIME | number | Time in milliseconds for occupied bases to be removed from the map. |
BASE_SWITCH_MAX_TRIES | number | Maximum tries to switch bases. |
GO_AWAY_MOVES | number | Number of moves to go away from a base. |
FREE_MATE | number | Infinity score for free mate option. |
EXCHANGE_PARCELS | number | Infinity score for exchanging parcels option. |
DEPOSIT_INSTANTLY | number | Infinity score for depositing instantly option. |
PICKUP_NEAR_PARCEL | number | Infinity score for picking up near parcel option. |
- Source