summaryrefslogtreecommitdiff
path: root/tests/state0.json
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-06-25 20:26:05 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-06-25 20:26:05 +0200
commit286763000e4e5919c07f2840c64ecc7932530175 (patch)
tree5d89610326de388ec1937f07a9562df85699fe9e /tests/state0.json
parent7bf7d8d977733cb02258b4a79faf2417c52e9323 (diff)
Updated test cases and made engine work correctly according to tests
I don't think a tesla appeared in this match. I need to contrive a bot to build one.
Diffstat (limited to 'tests/state0.json')
-rw-r--r--tests/state0.json311
1 files changed, 310 insertions, 1 deletions
diff --git a/tests/state0.json b/tests/state0.json
index fa41459..ef5cd39 100644
--- a/tests/state0.json
+++ b/tests/state0.json
@@ -1 +1,310 @@
-{"gameDetails":{"round":0,"mapWidth":8,"mapHeight":4,"roundIncomeEnergy":5,"buildingPrices":{"ENERGY":20,"ATTACK":30,"DEFENSE":30},"buildingsStats":{"ENERGY":{"health":5,"constructionTime":2,"price":20,"weaponDamage":0,"weaponSpeed":0,"weaponCooldownPeriod":0,"energyGeneratedPerTurn":3,"destroyMultiplier":1,"constructionScore":1},"ATTACK":{"health":5,"constructionTime":2,"price":30,"weaponDamage":5,"weaponSpeed":1,"weaponCooldownPeriod":3,"energyGeneratedPerTurn":0,"destroyMultiplier":1,"constructionScore":1},"DEFENSE":{"health":20,"constructionTime":4,"price":30,"weaponDamage":0,"weaponSpeed":0,"weaponCooldownPeriod":0,"energyGeneratedPerTurn":0,"destroyMultiplier":1,"constructionScore":1}}},"players":[{"playerType":"A","energy":20,"health":100,"hitsTaken":0,"score":0},{"playerType":"B","energy":20,"health":100,"hitsTaken":0,"score":0}],"gameMap":[[{"x":0,"y":0,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":1,"y":0,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":2,"y":0,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":3,"y":0,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":4,"y":0,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":5,"y":0,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":6,"y":0,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":7,"y":0,"buildings":[],"missiles":[],"cellOwner":"B"}],[{"x":0,"y":1,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":1,"y":1,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":2,"y":1,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":3,"y":1,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":4,"y":1,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":5,"y":1,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":6,"y":1,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":7,"y":1,"buildings":[],"missiles":[],"cellOwner":"B"}],[{"x":0,"y":2,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":1,"y":2,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":2,"y":2,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":3,"y":2,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":4,"y":2,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":5,"y":2,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":6,"y":2,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":7,"y":2,"buildings":[],"missiles":[],"cellOwner":"B"}],[{"x":0,"y":3,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":1,"y":3,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":2,"y":3,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":3,"y":3,"buildings":[],"missiles":[],"cellOwner":"A"},{"x":4,"y":3,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":5,"y":3,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":6,"y":3,"buildings":[],"missiles":[],"cellOwner":"B"},{"x":7,"y":3,"buildings":[],"missiles":[],"cellOwner":"B"}]]}
+{
+ "gameDetails": {
+ "round": 0,
+ "mapWidth": 8,
+ "mapHeight": 4,
+ "roundIncomeEnergy": 5,
+ "buildingPrices": {
+ "TESLA": 300,
+ "ENERGY": 20,
+ "ATTACK": 30,
+ "DEFENSE": 30
+ },
+ "buildingsStats": {
+ "TESLA": {
+ "health": 5,
+ "constructionTime": 11,
+ "price": 300,
+ "weaponDamage": 20,
+ "weaponSpeed": 0,
+ "weaponCooldownPeriod": 10,
+ "energyGeneratedPerTurn": 0,
+ "destroyMultiplier": 1,
+ "constructionScore": 1
+ },
+ "ENERGY": {
+ "health": 5,
+ "constructionTime": 2,
+ "price": 20,
+ "weaponDamage": 0,
+ "weaponSpeed": 0,
+ "weaponCooldownPeriod": 0,
+ "energyGeneratedPerTurn": 3,
+ "destroyMultiplier": 1,
+ "constructionScore": 1
+ },
+ "ATTACK": {
+ "health": 5,
+ "constructionTime": 2,
+ "price": 30,
+ "weaponDamage": 5,
+ "weaponSpeed": 1,
+ "weaponCooldownPeriod": 3,
+ "energyGeneratedPerTurn": 0,
+ "destroyMultiplier": 1,
+ "constructionScore": 1
+ },
+ "DEFENSE": {
+ "health": 20,
+ "constructionTime": 4,
+ "price": 30,
+ "weaponDamage": 0,
+ "weaponSpeed": 0,
+ "weaponCooldownPeriod": 0,
+ "energyGeneratedPerTurn": 0,
+ "destroyMultiplier": 1,
+ "constructionScore": 1
+ }
+ }
+ },
+ "players": [
+ {
+ "playerType": "A",
+ "energy": 20,
+ "health": 100,
+ "hitsTaken": 0,
+ "score": 0
+ },
+ {
+ "playerType": "B",
+ "energy": 20,
+ "health": 100,
+ "hitsTaken": 0,
+ "score": 0
+ }
+ ],
+ "gameMap": [
+ [
+ {
+ "x": 0,
+ "y": 0,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 1,
+ "y": 0,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 2,
+ "y": 0,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 3,
+ "y": 0,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 4,
+ "y": 0,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 5,
+ "y": 0,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 6,
+ "y": 0,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 7,
+ "y": 0,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ }
+ ],
+ [
+ {
+ "x": 0,
+ "y": 1,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 1,
+ "y": 1,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 2,
+ "y": 1,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 3,
+ "y": 1,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 4,
+ "y": 1,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 5,
+ "y": 1,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 6,
+ "y": 1,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 7,
+ "y": 1,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ }
+ ],
+ [
+ {
+ "x": 0,
+ "y": 2,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 1,
+ "y": 2,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 2,
+ "y": 2,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 3,
+ "y": 2,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 4,
+ "y": 2,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 5,
+ "y": 2,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 6,
+ "y": 2,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 7,
+ "y": 2,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ }
+ ],
+ [
+ {
+ "x": 0,
+ "y": 3,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 1,
+ "y": 3,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 2,
+ "y": 3,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 3,
+ "y": 3,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "A"
+ },
+ {
+ "x": 4,
+ "y": 3,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 5,
+ "y": 3,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 6,
+ "y": 3,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ },
+ {
+ "x": 7,
+ "y": 3,
+ "buildings": [],
+ "missiles": [],
+ "cellOwner": "B"
+ }
+ ]
+ ]
+}