summaryrefslogtreecommitdiff
path: root/tests/v1-normal-match/Round 001
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2020-04-18 17:45:28 +0200
committerJustin Wernick <justin@worthe-it.co.za>2020-04-18 17:45:28 +0200
commit5009074b5ba323e5312e999d766a01120990a61e (patch)
treecaf5c02671bd36b376be0d6d61bc9817d072d9d4 /tests/v1-normal-match/Round 001
parent80485b855c5628adc2fa619de21164ded1a0cae1 (diff)
Tests comparing against a replay, and fixing the found bugs
Diffstat (limited to 'tests/v1-normal-match/Round 001')
-rw-r--r--tests/v1-normal-match/Round 001/JsonMap.json706
-rw-r--r--tests/v1-normal-match/Round 001/OpponentCommand.txt1
-rw-r--r--tests/v1-normal-match/Round 001/PlayerCommand.txt1
3 files changed, 708 insertions, 0 deletions
diff --git a/tests/v1-normal-match/Round 001/JsonMap.json b/tests/v1-normal-match/Round 001/JsonMap.json
new file mode 100644
index 0000000..2cf435d
--- /dev/null
+++ b/tests/v1-normal-match/Round 001/JsonMap.json
@@ -0,0 +1,706 @@
+{
+ "currentRound":1,
+ "maxRounds":600,
+ "player":{
+ "id":1,
+ "position":{
+ "y":1,
+ "x":1
+ },
+ "speed":5,
+ "state":"READY",
+ "powerups":[],
+ "boosting":false,
+ "boostCounter":0
+ },
+ "opponent":{
+ "id":2,
+ "position":{
+ "y":4,
+ "x":1
+ },
+ "speed":5
+ },
+ "worldMap":[
+ [
+ {
+ "position":{
+ "y":1,
+ "x":1
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":1
+ },
+ {
+ "position":{
+ "y":1,
+ "x":2
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":3
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":4
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":5
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":6
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":7
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":8
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":9
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":10
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":11
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":12
+ },
+ "surfaceObject":1,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":13
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":14
+ },
+ "surfaceObject":1,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":15
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":16
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":17
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":18
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":19
+ },
+ "surfaceObject":1,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":20
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":1,
+ "x":21
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ }
+ ],
+ [
+ {
+ "position":{
+ "y":2,
+ "x":1
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":2
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":3
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":4
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":5
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":6
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":7
+ },
+ "surfaceObject":1,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":8
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":9
+ },
+ "surfaceObject":3,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":10
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":11
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":12
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":13
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":14
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":15
+ },
+ "surfaceObject":1,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":16
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":17
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":18
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":19
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":20
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":2,
+ "x":21
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ }
+ ],
+ [
+ {
+ "position":{
+ "y":3,
+ "x":1
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":2
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":3
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":4
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":5
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":6
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":7
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":8
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":9
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":10
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":11
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":12
+ },
+ "surfaceObject":1,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":13
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":14
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":15
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":16
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":17
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":18
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":19
+ },
+ "surfaceObject":1,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":20
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":3,
+ "x":21
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ }
+ ],
+ [
+ {
+ "position":{
+ "y":4,
+ "x":1
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":2
+ },
+ {
+ "position":{
+ "y":4,
+ "x":2
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":3
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":4
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":5
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":6
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":7
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":8
+ },
+ "surfaceObject":1,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":9
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":10
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":11
+ },
+ "surfaceObject":1,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":12
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":13
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":14
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":15
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":16
+ },
+ "surfaceObject":1,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":17
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":18
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":19
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":20
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ },
+ {
+ "position":{
+ "y":4,
+ "x":21
+ },
+ "surfaceObject":0,
+ "occupiedByPlayerId":0
+ }
+ ]
+ ]
+} \ No newline at end of file
diff --git a/tests/v1-normal-match/Round 001/OpponentCommand.txt b/tests/v1-normal-match/Round 001/OpponentCommand.txt
new file mode 100644
index 0000000..8ef4270
--- /dev/null
+++ b/tests/v1-normal-match/Round 001/OpponentCommand.txt
@@ -0,0 +1 @@
+Command: ACCELERATE
diff --git a/tests/v1-normal-match/Round 001/PlayerCommand.txt b/tests/v1-normal-match/Round 001/PlayerCommand.txt
new file mode 100644
index 0000000..8ef4270
--- /dev/null
+++ b/tests/v1-normal-match/Round 001/PlayerCommand.txt
@@ -0,0 +1 @@
+Command: ACCELERATE