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 039/JsonMap.json | 874 +++++++++++++++++++++ .../v1-normal-match/Round 039/OpponentCommand.txt | 1 + tests/v1-normal-match/Round 039/PlayerCommand.txt | 1 + 3 files changed, 876 insertions(+) create mode 100644 tests/v1-normal-match/Round 039/JsonMap.json create mode 100644 tests/v1-normal-match/Round 039/OpponentCommand.txt create mode 100644 tests/v1-normal-match/Round 039/PlayerCommand.txt (limited to 'tests/v1-normal-match/Round 039') diff --git a/tests/v1-normal-match/Round 039/JsonMap.json b/tests/v1-normal-match/Round 039/JsonMap.json new file mode 100644 index 0000000..3957249 --- /dev/null +++ b/tests/v1-normal-match/Round 039/JsonMap.json @@ -0,0 +1,874 @@ +{ + "currentRound":39, + "maxRounds":600, + "player":{ + "id":1, + "position":{ + "y":2, + "x":346 + }, + "speed":9, + "state":"HIT_MUD", + "powerups":[ + "OIL", + "OIL", + "OIL", + "OIL", + "OIL", + "OIL", + "BOOST" + ], + "boosting":false, + "boostCounter":0 + }, + "opponent":{ + "id":2, + "position":{ + "y":3, + "x":370 + }, + "speed":9 + }, + "worldMap":[ + [ + { + "position":{ + "y":1, + "x":341 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":342 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":343 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":344 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":345 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":346 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":347 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":348 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":349 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":350 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":351 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":352 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":353 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":354 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":355 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":356 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":357 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":358 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":359 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":360 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":361 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":362 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":363 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":364 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":365 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":366 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":2, + "x":341 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":342 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":343 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":344 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":345 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":346 + }, + "surfaceObject":0, + "occupiedByPlayerId":1 + }, + { + "position":{ + "y":2, + "x":347 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":348 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":349 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":350 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":351 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":352 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":353 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":354 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":355 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":356 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":357 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":358 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":359 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":360 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":361 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":362 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":363 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":364 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":365 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":366 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":3, + "x":341 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":342 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":343 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":344 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":345 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":346 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":347 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":348 + }, + "surfaceObject":5, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":349 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":350 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":351 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":352 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":353 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":354 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":355 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":356 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":357 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":358 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":359 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":360 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":361 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":362 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":363 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":364 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":365 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":366 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":4, + "x":341 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":342 + }, + "surfaceObject":5, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":343 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":344 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":345 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":346 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":347 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":348 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":349 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":350 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":351 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":352 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":353 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":354 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":355 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":356 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":357 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":358 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":359 + }, + "surfaceObject":5, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":360 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":361 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":362 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":363 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":364 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":365 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":366 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ] + ] +} \ No newline at end of file diff --git a/tests/v1-normal-match/Round 039/OpponentCommand.txt b/tests/v1-normal-match/Round 039/OpponentCommand.txt new file mode 100644 index 0000000..46ca975 --- /dev/null +++ b/tests/v1-normal-match/Round 039/OpponentCommand.txt @@ -0,0 +1 @@ +Command: TURN_LEFT diff --git a/tests/v1-normal-match/Round 039/PlayerCommand.txt b/tests/v1-normal-match/Round 039/PlayerCommand.txt new file mode 100644 index 0000000..47076cf --- /dev/null +++ b/tests/v1-normal-match/Round 039/PlayerCommand.txt @@ -0,0 +1 @@ +Command: TURN_RIGHT -- cgit v1.2.3