From 5009074b5ba323e5312e999d766a01120990a61e Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Sat, 18 Apr 2020 17:45:28 +0200 Subject: Tests comparing against a replay, and fixing the found bugs --- tests/v1-normal-match/Round 136/JsonMap.json | 866 +++++++++++++++++++++ .../v1-normal-match/Round 136/OpponentCommand.txt | 1 + tests/v1-normal-match/Round 136/PlayerCommand.txt | 1 + 3 files changed, 868 insertions(+) create mode 100644 tests/v1-normal-match/Round 136/JsonMap.json create mode 100644 tests/v1-normal-match/Round 136/OpponentCommand.txt create mode 100644 tests/v1-normal-match/Round 136/PlayerCommand.txt (limited to 'tests/v1-normal-match/Round 136') diff --git a/tests/v1-normal-match/Round 136/JsonMap.json b/tests/v1-normal-match/Round 136/JsonMap.json new file mode 100644 index 0000000..a438584 --- /dev/null +++ b/tests/v1-normal-match/Round 136/JsonMap.json @@ -0,0 +1,866 @@ +{ + "currentRound":136, + "maxRounds":600, + "player":{ + "id":1, + "position":{ + "y":2, + "x":1338 + }, + "speed":9, + "state":"NOTHING", + "powerups":[], + "boosting":false, + "boostCounter":0 + }, + "opponent":{ + "id":2, + "position":{ + "y":2, + "x":1272 + }, + "speed":9 + }, + "worldMap":[ + [ + { + "position":{ + "y":1, + "x":1333 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1334 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1335 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1336 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1337 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1338 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1339 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1340 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1341 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1342 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1343 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1344 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1345 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1346 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1347 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1348 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1349 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1350 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1351 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1352 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1353 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1354 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1355 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1356 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1357 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1358 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":2, + "x":1333 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1334 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1335 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1336 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1337 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1338 + }, + "surfaceObject":0, + "occupiedByPlayerId":1 + }, + { + "position":{ + "y":2, + "x":1339 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1340 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1341 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1342 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1343 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1344 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1345 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1346 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1347 + }, + "surfaceObject":5, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1348 + }, + "surfaceObject":3, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1349 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1350 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1351 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1352 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1353 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1354 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1355 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1356 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1357 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1358 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":3, + "x":1333 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1334 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1335 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1336 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1337 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1338 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1339 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1340 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1341 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1342 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1343 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1344 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1345 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1346 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1347 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1348 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1349 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1350 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1351 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1352 + }, + "surfaceObject":3, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1353 + }, + "surfaceObject":3, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1354 + }, + "surfaceObject":3, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1355 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1356 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1357 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1358 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":4, + "x":1333 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1334 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1335 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1336 + }, + "surfaceObject":3, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1337 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1338 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1339 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1340 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1341 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1342 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1343 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1344 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1345 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1346 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1347 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1348 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1349 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1350 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1351 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1352 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1353 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1354 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1355 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1356 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1357 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1358 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ] + ] +} \ No newline at end of file diff --git a/tests/v1-normal-match/Round 136/OpponentCommand.txt b/tests/v1-normal-match/Round 136/OpponentCommand.txt new file mode 100644 index 0000000..32cf195 --- /dev/null +++ b/tests/v1-normal-match/Round 136/OpponentCommand.txt @@ -0,0 +1 @@ +Command: USE_BOOST diff --git a/tests/v1-normal-match/Round 136/PlayerCommand.txt b/tests/v1-normal-match/Round 136/PlayerCommand.txt new file mode 100644 index 0000000..1baaf21 --- /dev/null +++ b/tests/v1-normal-match/Round 136/PlayerCommand.txt @@ -0,0 +1 @@ +Command: NOTHING -- cgit v1.2.3