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 128/JsonMap.json | 869 +++++++++++++++++++++ .../v1-normal-match/Round 128/OpponentCommand.txt | 1 + tests/v1-normal-match/Round 128/PlayerCommand.txt | 1 + 3 files changed, 871 insertions(+) create mode 100644 tests/v1-normal-match/Round 128/JsonMap.json create mode 100644 tests/v1-normal-match/Round 128/OpponentCommand.txt create mode 100644 tests/v1-normal-match/Round 128/PlayerCommand.txt (limited to 'tests/v1-normal-match/Round 128') diff --git a/tests/v1-normal-match/Round 128/JsonMap.json b/tests/v1-normal-match/Round 128/JsonMap.json new file mode 100644 index 0000000..0bfc4e8 --- /dev/null +++ b/tests/v1-normal-match/Round 128/JsonMap.json @@ -0,0 +1,869 @@ +{ + "currentRound":128, + "maxRounds":600, + "player":{ + "id":1, + "position":{ + "y":2, + "x":1244 + }, + "speed":9, + "state":"HIT_MUD", + "powerups":[ + "OIL", + "BOOST" + ], + "boosting":false, + "boostCounter":0 + }, + "opponent":{ + "id":2, + "position":{ + "y":3, + "x":1191 + }, + "speed":6 + }, + "worldMap":[ + [ + { + "position":{ + "y":1, + "x":1239 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1240 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1241 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1242 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1243 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1244 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1245 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1246 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1247 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1248 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1249 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1250 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1251 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1252 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1253 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1254 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1255 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1256 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1257 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1258 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1259 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1260 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1261 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1262 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1263 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":1264 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":2, + "x":1239 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1240 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1241 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1242 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1243 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1244 + }, + "surfaceObject":0, + "occupiedByPlayerId":1 + }, + { + "position":{ + "y":2, + "x":1245 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1246 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1247 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1248 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1249 + }, + "surfaceObject":5, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1250 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1251 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1252 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1253 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1254 + }, + "surfaceObject":3, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1255 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1256 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1257 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1258 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1259 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1260 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1261 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1262 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1263 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":1264 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":3, + "x":1239 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1240 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1241 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1242 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1243 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1244 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1245 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1246 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1247 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1248 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1249 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1250 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1251 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1252 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1253 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1254 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1255 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1256 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1257 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1258 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1259 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1260 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1261 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1262 + }, + "surfaceObject":3, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1263 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":1264 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":4, + "x":1239 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1240 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1241 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1242 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1243 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1244 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1245 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1246 + }, + "surfaceObject":3, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1247 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1248 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1249 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1250 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1251 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1252 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1253 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1254 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1255 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1256 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1257 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1258 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1259 + }, + "surfaceObject":3, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1260 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1261 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1262 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1263 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":1264 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ] + ] +} \ No newline at end of file diff --git a/tests/v1-normal-match/Round 128/OpponentCommand.txt b/tests/v1-normal-match/Round 128/OpponentCommand.txt new file mode 100644 index 0000000..8ef4270 --- /dev/null +++ b/tests/v1-normal-match/Round 128/OpponentCommand.txt @@ -0,0 +1 @@ +Command: ACCELERATE diff --git a/tests/v1-normal-match/Round 128/PlayerCommand.txt b/tests/v1-normal-match/Round 128/PlayerCommand.txt new file mode 100644 index 0000000..32cf195 --- /dev/null +++ b/tests/v1-normal-match/Round 128/PlayerCommand.txt @@ -0,0 +1 @@ +Command: USE_BOOST -- cgit v1.2.3