Skip to content

Configurations

Chenzs108 edited this page Feb 6, 2024 · 1 revision

The game configuration is in the src/config.json file. There are some important options.

  • The probability (density) of different terrains.

    "terrainProb": {
        "wall": 0.25,
        "bush": 0.2
    },
  • The move cost of different terrains.

    "moveCost": {
        "grass": 1,
        "bush": 10
    },
  • The strategy weight for different roles.

    "strategyWeights": {
        "agent": {
            "random": 1
        },
    
        "enemy": {
            "random": 0.2,
            "moveClose": 0.3,
            "aStar": 1
        }
    }

Clone this wiki locally