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 042/JsonMap.json | 875 +++++++++++++++++++++ .../v1-normal-match/Round 042/OpponentCommand.txt | 1 + tests/v1-normal-match/Round 042/PlayerCommand.txt | 1 + 3 files changed, 877 insertions(+) create mode 100644 tests/v1-normal-match/Round 042/JsonMap.json create mode 100644 tests/v1-normal-match/Round 042/OpponentCommand.txt create mode 100644 tests/v1-normal-match/Round 042/PlayerCommand.txt (limited to 'tests/v1-normal-match/Round 042') diff --git a/tests/v1-normal-match/Round 042/JsonMap.json b/tests/v1-normal-match/Round 042/JsonMap.json new file mode 100644 index 0000000..a10f08b --- /dev/null +++ b/tests/v1-normal-match/Round 042/JsonMap.json @@ -0,0 +1,875 @@ +{ + "currentRound":42, + "maxRounds":600, + "player":{ + "id":1, + "position":{ + "y":2, + "x":377 + }, + "speed":8, + "state":"HIT_OIL", + "powerups":[ + "OIL", + "OIL", + "OIL", + "OIL", + "OIL", + "OIL", + "BOOST", + "BOOST" + ], + "boosting":false, + "boostCounter":0 + }, + "opponent":{ + "id":2, + "position":{ + "y":2, + "x":396 + }, + "speed":9 + }, + "worldMap":[ + [ + { + "position":{ + "y":1, + "x":372 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":373 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":374 + }, + "surfaceObject":5, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":375 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":376 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":377 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":378 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":379 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":380 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":381 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":382 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":383 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":384 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":385 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":386 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":387 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":388 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":389 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":390 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":391 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":392 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":393 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":394 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":395 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":396 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":1, + "x":397 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":2, + "x":372 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":373 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":374 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":375 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":376 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":377 + }, + "surfaceObject":2, + "occupiedByPlayerId":1 + }, + { + "position":{ + "y":2, + "x":378 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":379 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":380 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":381 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":382 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":383 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":384 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":385 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":386 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":387 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":388 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":389 + }, + "surfaceObject":5, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":390 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":391 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":392 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":393 + }, + "surfaceObject":3, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":394 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":395 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":2, + "x":396 + }, + "surfaceObject":0, + "occupiedByPlayerId":2 + }, + { + "position":{ + "y":2, + "x":397 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":3, + "x":372 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":373 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":374 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":375 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":376 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":377 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":378 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":379 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":380 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":381 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":382 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":383 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":384 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":385 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":386 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":387 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":388 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":389 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":390 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":391 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":392 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":393 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":394 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":395 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":396 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":3, + "x":397 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ], + [ + { + "position":{ + "y":4, + "x":372 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":373 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":374 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":375 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":376 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":377 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":378 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":379 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":380 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":381 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":382 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":383 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":384 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":385 + }, + "surfaceObject":1, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":386 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":387 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":388 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":389 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":390 + }, + "surfaceObject":5, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":391 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":392 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":393 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":394 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":395 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":396 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + }, + { + "position":{ + "y":4, + "x":397 + }, + "surfaceObject":0, + "occupiedByPlayerId":0 + } + ] + ] +} \ No newline at end of file diff --git a/tests/v1-normal-match/Round 042/OpponentCommand.txt b/tests/v1-normal-match/Round 042/OpponentCommand.txt new file mode 100644 index 0000000..0d0ef99 --- /dev/null +++ b/tests/v1-normal-match/Round 042/OpponentCommand.txt @@ -0,0 +1 @@ +Command: USE_OIL diff --git a/tests/v1-normal-match/Round 042/PlayerCommand.txt b/tests/v1-normal-match/Round 042/PlayerCommand.txt new file mode 100644 index 0000000..32cf195 --- /dev/null +++ b/tests/v1-normal-match/Round 042/PlayerCommand.txt @@ -0,0 +1 @@ +Command: USE_BOOST -- cgit v1.2.3