Skip to content

Test Statistics

Chenzs108 edited this page Feb 6, 2024 · 1 revision

All tests have the following fixed options:

"maxSteps": 500,

"mapSize": {
    "height": {
        "min": 25,
        "max": 25
    },

    "width": {
        "min": 25,
        "max": 25
    }
},

"terrainProb": {
    "wall": 0.3,
    "bush": 0.1
},

"moveCost": {
    "grass": 1,
    "bush": 15
},

And the agent and enemy will be randomly generated in the left half and right half of the map.

The Agent

When testing the agent, the enemy's strategy weights are fixed as below:

"enemy": {
    "random": 0.1,
    "aStar": 1,
    "moveClose": 0.2,
    "wallDensity": 0.1
}

The agent's strategy weights are changed in each trial.

Test ID Strategy Weights
1 [1, 0, 0]
2 [1, 1, 1]
3 [1, 0 ~ 0.4, 0 ~ 0.4]. It changes in each step.
4 [1, 0 ~ 1, 0 ~ 1]. It changes in each step.

The order of weights is Random, MoveAway, WallDensity.

The game runs 100 times in each trial and the agent's scores are shown below:

agent-test

The Enemy

When testing the enemy, the agent's strategy weights are fixed.

"agent": {
    "random": 0.1,
    "moveAway": 0.4,
    "wallDensity": 0.4
}

The enemy's strategy weights are changed in each trial.

Test ID Strategy Weights
1 [1, 0, 0, 0]
2 [0.5, 0, 0.7, 0.9]
3 [0, 1, 0, 0]
4 [0.1, 1, 0.2, 0.1]

The order of weights is Random, AStar, MoveClose, WallDensity.

The game runs 100 times in each trial and the agent's scores are shown below:

enemy-test

Clone this wiki locally