kaggle-environments 0.2.0__py3-none-any.whl → 1.20.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of kaggle-environments might be problematic. Click here for more details.
- kaggle_environments/__init__.py +49 -13
- kaggle_environments/agent.py +177 -124
- kaggle_environments/api.py +31 -0
- kaggle_environments/core.py +298 -173
- kaggle_environments/envs/cabt/cabt.js +164 -0
- kaggle_environments/envs/cabt/cabt.json +28 -0
- kaggle_environments/envs/cabt/cabt.py +186 -0
- kaggle_environments/envs/cabt/cg/__init__.py +0 -0
- kaggle_environments/envs/cabt/cg/cg.dll +0 -0
- kaggle_environments/envs/cabt/cg/game.py +75 -0
- kaggle_environments/envs/cabt/cg/libcg.so +0 -0
- kaggle_environments/envs/cabt/cg/sim.py +48 -0
- kaggle_environments/envs/cabt/test_cabt.py +120 -0
- kaggle_environments/envs/chess/chess.js +4289 -0
- kaggle_environments/envs/chess/chess.json +60 -0
- kaggle_environments/envs/chess/chess.py +4241 -0
- kaggle_environments/envs/chess/test_chess.py +60 -0
- kaggle_environments/envs/connectx/connectx.ipynb +3186 -0
- kaggle_environments/envs/connectx/connectx.js +1 -1
- kaggle_environments/envs/connectx/connectx.json +15 -1
- kaggle_environments/envs/connectx/connectx.py +6 -23
- kaggle_environments/envs/connectx/test_connectx.py +70 -24
- kaggle_environments/envs/football/football.ipynb +75 -0
- kaggle_environments/envs/football/football.json +91 -0
- kaggle_environments/envs/football/football.py +277 -0
- kaggle_environments/envs/football/helpers.py +95 -0
- kaggle_environments/envs/football/test_football.py +360 -0
- kaggle_environments/envs/halite/__init__.py +0 -0
- kaggle_environments/envs/halite/halite.ipynb +44741 -0
- kaggle_environments/envs/halite/halite.js +199 -83
- kaggle_environments/envs/halite/halite.json +31 -18
- kaggle_environments/envs/halite/halite.py +164 -303
- kaggle_environments/envs/halite/helpers.py +720 -0
- kaggle_environments/envs/halite/test_halite.py +190 -0
- kaggle_environments/envs/hungry_geese/__init__.py +0 -0
- kaggle_environments/envs/{battlegeese/battlegeese.js → hungry_geese/hungry_geese.js} +38 -22
- kaggle_environments/envs/{battlegeese/battlegeese.json → hungry_geese/hungry_geese.json} +22 -15
- kaggle_environments/envs/hungry_geese/hungry_geese.py +316 -0
- kaggle_environments/envs/hungry_geese/test_hungry_geese.py +0 -0
- kaggle_environments/envs/identity/identity.json +6 -5
- kaggle_environments/envs/identity/identity.py +15 -2
- kaggle_environments/envs/kore_fleets/__init__.py +0 -0
- kaggle_environments/envs/kore_fleets/helpers.py +1005 -0
- kaggle_environments/envs/kore_fleets/kore_fleets.ipynb +114 -0
- kaggle_environments/envs/kore_fleets/kore_fleets.js +658 -0
- kaggle_environments/envs/kore_fleets/kore_fleets.json +164 -0
- kaggle_environments/envs/kore_fleets/kore_fleets.py +555 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/Bot.java +54 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/README.md +26 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/jars/hamcrest-core-1.3.jar +0 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/jars/junit-4.13.2.jar +0 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/Board.java +518 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/Cell.java +61 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/Configuration.java +24 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/Direction.java +166 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/Fleet.java +72 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/KoreJson.java +97 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/Observation.java +72 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/Pair.java +13 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/Player.java +68 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/Point.java +65 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/Shipyard.java +70 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/kore/ShipyardAction.java +59 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/main.py +73 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/test/BoardTest.java +567 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/test/ConfigurationTest.java +25 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/test/KoreJsonTest.java +62 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/test/ObservationTest.java +46 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/test/PointTest.java +21 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/test/ShipyardTest.java +22 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/test/configuration.json +1 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/test/fullob.json +1 -0
- kaggle_environments/envs/kore_fleets/starter_bots/java/test/observation.json +1 -0
- kaggle_environments/envs/kore_fleets/starter_bots/python/__init__.py +0 -0
- kaggle_environments/envs/kore_fleets/starter_bots/python/main.py +27 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/Bot.ts +34 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/DoNothingBot.ts +12 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/MinerBot.ts +62 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/README.md +55 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/interpreter.ts +402 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/Board.ts +514 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/Cell.ts +63 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/Configuration.ts +25 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/Direction.ts +169 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/Fleet.ts +76 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/KoreIO.ts +70 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/Observation.ts +45 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/Pair.ts +11 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/Player.ts +68 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/Point.ts +65 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/Shipyard.ts +72 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/ShipyardAction.ts +58 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/main.py +73 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/miner.py +73 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/package.json +23 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/test/BoardTest.ts +551 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/test/ConfigurationTest.ts +16 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/test/ObservationTest.ts +33 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/test/PointTest.ts +17 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/test/ShipyardTest.ts +18 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/test/configuration.json +1 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/test/fullob.json +1 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/test/observation.json +1 -0
- kaggle_environments/envs/kore_fleets/starter_bots/ts/tsconfig.json +22 -0
- kaggle_environments/envs/kore_fleets/test_kore_fleets.py +331 -0
- kaggle_environments/envs/lux_ai_2021/README.md +3 -0
- kaggle_environments/envs/lux_ai_2021/__init__.py +0 -0
- kaggle_environments/envs/lux_ai_2021/agents.py +11 -0
- kaggle_environments/envs/lux_ai_2021/dimensions/754.js +2 -0
- kaggle_environments/envs/lux_ai_2021/dimensions/754.js.LICENSE.txt +296 -0
- kaggle_environments/envs/lux_ai_2021/dimensions/main.js +1 -0
- kaggle_environments/envs/lux_ai_2021/index.html +43 -0
- kaggle_environments/envs/lux_ai_2021/lux_ai_2021.json +100 -0
- kaggle_environments/envs/lux_ai_2021/lux_ai_2021.py +231 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/__init__.py +0 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/js_simple/lux/game_constants.js +6 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/js_simple/lux/game_constants.json +59 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/js_simple/lux/game_objects.js +145 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/js_simple/lux/io.js +14 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/js_simple/lux/kit.js +209 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/js_simple/lux/map.js +107 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/js_simple/lux/parser.js +79 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/js_simple/main.js +88 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/js_simple/main.py +75 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/js_simple/simple.tar.gz +0 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/python/lux/__init__.py +0 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/python/lux/annotate.py +20 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/python/lux/constants.py +25 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/python/lux/game.py +86 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/python/lux/game_constants.json +59 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/python/lux/game_constants.py +7 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/python/lux/game_map.py +106 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/python/lux/game_objects.py +154 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/python/random_agent.py +38 -0
- kaggle_environments/envs/lux_ai_2021/test_agents/python/simple_agent.py +82 -0
- kaggle_environments/envs/lux_ai_2021/test_lux.py +19 -0
- kaggle_environments/envs/lux_ai_2021/testing.md +23 -0
- kaggle_environments/envs/lux_ai_2021/todo.md.og +18 -0
- kaggle_environments/envs/lux_ai_s3/README.md +21 -0
- kaggle_environments/envs/lux_ai_s3/agents.py +5 -0
- kaggle_environments/envs/lux_ai_s3/index.html +42 -0
- kaggle_environments/envs/lux_ai_s3/lux_ai_s3.json +47 -0
- kaggle_environments/envs/lux_ai_s3/lux_ai_s3.py +178 -0
- kaggle_environments/envs/lux_ai_s3/luxai_s3/__init__.py +1 -0
- kaggle_environments/envs/lux_ai_s3/luxai_s3/env.py +819 -0
- kaggle_environments/envs/lux_ai_s3/luxai_s3/globals.py +9 -0
- kaggle_environments/envs/lux_ai_s3/luxai_s3/params.py +101 -0
- kaggle_environments/envs/lux_ai_s3/luxai_s3/profiler.py +141 -0
- kaggle_environments/envs/lux_ai_s3/luxai_s3/pygame_render.py +222 -0
- kaggle_environments/envs/lux_ai_s3/luxai_s3/spaces.py +27 -0
- kaggle_environments/envs/lux_ai_s3/luxai_s3/state.py +464 -0
- kaggle_environments/envs/lux_ai_s3/luxai_s3/utils.py +12 -0
- kaggle_environments/envs/lux_ai_s3/luxai_s3/wrappers.py +156 -0
- kaggle_environments/envs/lux_ai_s3/test_agents/python/agent.py +78 -0
- kaggle_environments/envs/lux_ai_s3/test_agents/python/lux/__init__.py +0 -0
- kaggle_environments/envs/lux_ai_s3/test_agents/python/lux/kit.py +31 -0
- kaggle_environments/envs/lux_ai_s3/test_agents/python/lux/utils.py +17 -0
- kaggle_environments/envs/lux_ai_s3/test_agents/python/main.py +66 -0
- kaggle_environments/envs/lux_ai_s3/test_lux.py +9 -0
- kaggle_environments/envs/mab/__init__.py +0 -0
- kaggle_environments/envs/mab/agents.py +12 -0
- kaggle_environments/envs/mab/mab.js +100 -0
- kaggle_environments/envs/mab/mab.json +74 -0
- kaggle_environments/envs/mab/mab.py +146 -0
- kaggle_environments/envs/open_spiel/__init__.py +0 -0
- kaggle_environments/envs/open_spiel/games/__init__.py +0 -0
- kaggle_environments/envs/open_spiel/games/chess/chess.js +441 -0
- kaggle_environments/envs/open_spiel/games/chess/image_config.jsonl +20 -0
- kaggle_environments/envs/open_spiel/games/chess/openings.jsonl +20 -0
- kaggle_environments/envs/open_spiel/games/connect_four/__init__.py +0 -0
- kaggle_environments/envs/open_spiel/games/connect_four/connect_four.js +284 -0
- kaggle_environments/envs/open_spiel/games/connect_four/connect_four_proxy.py +86 -0
- kaggle_environments/envs/open_spiel/games/go/__init__.py +0 -0
- kaggle_environments/envs/open_spiel/games/go/go.js +481 -0
- kaggle_environments/envs/open_spiel/games/go/go_proxy.py +99 -0
- kaggle_environments/envs/open_spiel/games/tic_tac_toe/__init__.py +0 -0
- kaggle_environments/envs/open_spiel/games/tic_tac_toe/tic_tac_toe.js +345 -0
- kaggle_environments/envs/open_spiel/games/tic_tac_toe/tic_tac_toe_proxy.py +98 -0
- kaggle_environments/envs/open_spiel/games/universal_poker/__init__.py +0 -0
- kaggle_environments/envs/open_spiel/games/universal_poker/universal_poker.js +431 -0
- kaggle_environments/envs/open_spiel/games/universal_poker/universal_poker_proxy.py +159 -0
- kaggle_environments/envs/open_spiel/html_playthrough_generator.py +31 -0
- kaggle_environments/envs/open_spiel/observation.py +128 -0
- kaggle_environments/envs/open_spiel/open_spiel.py +565 -0
- kaggle_environments/envs/open_spiel/proxy.py +138 -0
- kaggle_environments/envs/open_spiel/test_open_spiel.py +191 -0
- kaggle_environments/envs/rps/__init__.py +0 -0
- kaggle_environments/envs/rps/agents.py +84 -0
- kaggle_environments/envs/rps/helpers.py +25 -0
- kaggle_environments/envs/rps/rps.js +117 -0
- kaggle_environments/envs/rps/rps.json +63 -0
- kaggle_environments/envs/rps/rps.py +90 -0
- kaggle_environments/envs/rps/test_rps.py +110 -0
- kaggle_environments/envs/rps/utils.py +7 -0
- kaggle_environments/envs/tictactoe/test_tictactoe.py +43 -77
- kaggle_environments/envs/tictactoe/tictactoe.ipynb +1397 -0
- kaggle_environments/envs/tictactoe/tictactoe.json +10 -2
- kaggle_environments/envs/tictactoe/tictactoe.py +1 -1
- kaggle_environments/errors.py +2 -4
- kaggle_environments/helpers.py +377 -0
- kaggle_environments/main.py +214 -50
- kaggle_environments/schemas.json +23 -18
- kaggle_environments/static/player.html +206 -74
- kaggle_environments/utils.py +46 -73
- kaggle_environments-1.20.0.dist-info/METADATA +25 -0
- kaggle_environments-1.20.0.dist-info/RECORD +211 -0
- {kaggle_environments-0.2.0.dist-info → kaggle_environments-1.20.0.dist-info}/WHEEL +1 -2
- kaggle_environments-1.20.0.dist-info/entry_points.txt +3 -0
- kaggle_environments/envs/battlegeese/battlegeese.py +0 -219
- kaggle_environments/temp.py +0 -14
- kaggle_environments-0.2.0.dist-info/METADATA +0 -393
- kaggle_environments-0.2.0.dist-info/RECORD +0 -33
- kaggle_environments-0.2.0.dist-info/entry_points.txt +0 -3
- kaggle_environments-0.2.0.dist-info/top_level.txt +0 -1
- {kaggle_environments-0.2.0.dist-info → kaggle_environments-1.20.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
import { describe } from 'mocha';
|
|
2
|
+
import { expect } from 'chai';
|
|
3
|
+
|
|
4
|
+
import * as fs from 'fs';
|
|
5
|
+
|
|
6
|
+
import { Board } from "../kore/Board";
|
|
7
|
+
import { Direction } from '../kore/Direction';
|
|
8
|
+
import { Point } from '../kore/Point';
|
|
9
|
+
import { Fleet } from '../kore/Fleet';
|
|
10
|
+
import { Shipyard } from '../kore/Shipyard';
|
|
11
|
+
import { ShipyardAction } from '../kore/ShipyardAction';
|
|
12
|
+
|
|
13
|
+
const getStarterBoard = () => {
|
|
14
|
+
const rawConfig = fs.readFileSync('./test/configuration.json','utf8');
|
|
15
|
+
const rawObs = fs.readFileSync('./test/observation.json', 'utf8');
|
|
16
|
+
|
|
17
|
+
return Board.fromRaw(rawObs, rawConfig);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
describe('Board', () => {
|
|
21
|
+
it('init works correctly', () => {
|
|
22
|
+
const rawConfig = fs.readFileSync('./test/configuration.json','utf8');
|
|
23
|
+
const rawObs = fs.readFileSync('./test/observation.json', 'utf8');
|
|
24
|
+
|
|
25
|
+
const board = Board.fromRaw(rawObs, rawConfig);
|
|
26
|
+
|
|
27
|
+
expect(board.step).to.equal(16);
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
describe('kore', () => {
|
|
31
|
+
it('regenerates', () => {
|
|
32
|
+
const board = getStarterBoard();
|
|
33
|
+
|
|
34
|
+
const nextBoard = board.next();
|
|
35
|
+
|
|
36
|
+
expect(board.cells[3].kore).to.be.lessThan(nextBoard.cells[3].kore);
|
|
37
|
+
})
|
|
38
|
+
it('is picked up by fleets', () => {
|
|
39
|
+
const board = getStarterBoard();
|
|
40
|
+
|
|
41
|
+
const p = new Point(10, 10);
|
|
42
|
+
board.getCellAtPosition(p).kore = 100;
|
|
43
|
+
board.getCellAtPosition(p.add(Direction.SOUTH)).kore = 100;
|
|
44
|
+
|
|
45
|
+
const fleet = new Fleet("test-fleet", 100, Direction.SOUTH, p, 100.0, "8N", 0, board);
|
|
46
|
+
|
|
47
|
+
board.addFleet(fleet);
|
|
48
|
+
|
|
49
|
+
const nextBoard = board.next();
|
|
50
|
+
|
|
51
|
+
const nextFleet = nextBoard.getFleetAtPoint(p.add(Direction.SOUTH));
|
|
52
|
+
expect(nextFleet.kore).to.be.greaterThan(fleet.kore);
|
|
53
|
+
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
describe('spawnShips', () => {
|
|
59
|
+
it('spawnsShips', () => {
|
|
60
|
+
const board = getStarterBoard();
|
|
61
|
+
const shipyardId = board.players[0].shipyardIds[0];
|
|
62
|
+
const shipyard = board.shipyards.get(shipyardId);
|
|
63
|
+
|
|
64
|
+
shipyard.setNextAction(ShipyardAction.spawnShips(1));
|
|
65
|
+
|
|
66
|
+
const nextBoard = board.next();
|
|
67
|
+
const nextShipyard = nextBoard.shipyards.get(shipyardId);
|
|
68
|
+
|
|
69
|
+
expect(shipyard.shipCount).to.equal(0);
|
|
70
|
+
expect(nextShipyard.shipCount).to.equal(1);
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
it('can spawn 0 ships', () => {
|
|
74
|
+
const board = getStarterBoard();
|
|
75
|
+
const shipyardId = board.players[0].shipyardIds[0];
|
|
76
|
+
const shipyard = board.shipyards.get(shipyardId);
|
|
77
|
+
|
|
78
|
+
shipyard.setNextAction(ShipyardAction.spawnShips(0));
|
|
79
|
+
|
|
80
|
+
const nextBoard = board.next();
|
|
81
|
+
const nextShipyard = nextBoard.shipyards.get(shipyardId);
|
|
82
|
+
|
|
83
|
+
expect(shipyard.shipCount).to.equal(0);
|
|
84
|
+
expect(nextShipyard.shipCount).to.equal(0);
|
|
85
|
+
})
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
describe('launchShips', () => {
|
|
89
|
+
it('launches', () => {
|
|
90
|
+
const board = getStarterBoard();
|
|
91
|
+
const shipyardId = board.players[0].shipyardIds[0];
|
|
92
|
+
const shipyard = board.shipyards.get(shipyardId);
|
|
93
|
+
shipyard.shipCount = 100;
|
|
94
|
+
|
|
95
|
+
shipyard.setNextAction(ShipyardAction.launchFleetWithFlightPlan(10, "N"));
|
|
96
|
+
|
|
97
|
+
const nextBoard = board.next();
|
|
98
|
+
const nextShipyard = nextBoard.shipyards.get(shipyardId);
|
|
99
|
+
const launchedFleet = nextBoard.getFleetAtPoint(shipyard.position.add(Direction.NORTH));
|
|
100
|
+
|
|
101
|
+
expect(shipyard.shipCount).to.equal(100);
|
|
102
|
+
expect(nextShipyard.shipCount).to.equal(90);
|
|
103
|
+
expect(!!launchedFleet).to.be.true;
|
|
104
|
+
expect(launchedFleet.shipCount).to.equal(10);
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
it('can spawn 0 ships', () => {
|
|
108
|
+
const board = getStarterBoard();
|
|
109
|
+
const shipyardId = board.players[0].shipyardIds[0];
|
|
110
|
+
const shipyard = board.shipyards.get(shipyardId);
|
|
111
|
+
|
|
112
|
+
shipyard.setNextAction(ShipyardAction.spawnShips(0));
|
|
113
|
+
|
|
114
|
+
const nextBoard = board.next();
|
|
115
|
+
const nextShipyard = nextBoard.shipyards.get(shipyardId);
|
|
116
|
+
|
|
117
|
+
expect(shipyard.shipCount).to.equal(0);
|
|
118
|
+
expect(nextShipyard.shipCount).to.equal(0);
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
describe('flight plan', () => {
|
|
124
|
+
it('decrements', () => {
|
|
125
|
+
const board = getStarterBoard();
|
|
126
|
+
|
|
127
|
+
const p = new Point(10, 11);
|
|
128
|
+
|
|
129
|
+
const f = new Fleet("test-fleet", 10, Direction.SOUTH, p, 100.0, "8N", 0, board);
|
|
130
|
+
|
|
131
|
+
board.addFleet(f);
|
|
132
|
+
|
|
133
|
+
const nextBoard = board.next();
|
|
134
|
+
|
|
135
|
+
const nextFleet = nextBoard.getFleetAtPoint(new Point(10, 10));
|
|
136
|
+
expect(nextFleet.direction.toChar()).to.equal(Direction.SOUTH.toChar());
|
|
137
|
+
expect(nextFleet.flightPlan).to.equal("7N");
|
|
138
|
+
})
|
|
139
|
+
|
|
140
|
+
it('changed direction', () => {
|
|
141
|
+
const board = getStarterBoard();
|
|
142
|
+
|
|
143
|
+
const p = new Point(10, 11);
|
|
144
|
+
|
|
145
|
+
const f = new Fleet("test-fleet", 10, Direction.NORTH, p, 100.0, "S", 0, board);
|
|
146
|
+
|
|
147
|
+
board.addFleet(f);
|
|
148
|
+
|
|
149
|
+
const nextBoard = board.next();
|
|
150
|
+
|
|
151
|
+
const nextFleet = nextBoard.getFleetAtPoint(new Point(10, 10));
|
|
152
|
+
expect(nextFleet.direction.toChar()).to.equal(Direction.SOUTH.toChar());
|
|
153
|
+
expect(nextFleet.flightPlan).to.equal("");
|
|
154
|
+
})
|
|
155
|
+
|
|
156
|
+
it('converts to shipyard', () => {
|
|
157
|
+
const board = getStarterBoard();
|
|
158
|
+
|
|
159
|
+
const p = new Point(10, 11);
|
|
160
|
+
|
|
161
|
+
const f = new Fleet("test-fleet", 10, Direction.SOUTH, p, 100.0, "C", 0, board);
|
|
162
|
+
|
|
163
|
+
board.addFleet(f);
|
|
164
|
+
|
|
165
|
+
const nextBoard = board.next();
|
|
166
|
+
|
|
167
|
+
expect(!!nextBoard.getShipyardAtPoint(p)).to.be.false;
|
|
168
|
+
const nextFleet = nextBoard.getFleetAtPoint(p.add(Direction.SOUTH));
|
|
169
|
+
expect(nextFleet.playerId).to.equal(0);
|
|
170
|
+
expect(nextFleet.shipCount).to.equal(10);
|
|
171
|
+
expect(nextFleet.direction.toChar()).to.equal(Direction.SOUTH.toChar());
|
|
172
|
+
})
|
|
173
|
+
|
|
174
|
+
it('does not convert to shipyard if not enough ships', () => {
|
|
175
|
+
const board = getStarterBoard();
|
|
176
|
+
|
|
177
|
+
const p = new Point(10, 11);
|
|
178
|
+
|
|
179
|
+
const f = new Fleet("test-fleet", 100, Direction.NORTH, p, 100.0, "C", 0, board);
|
|
180
|
+
|
|
181
|
+
board.addFleet(f);
|
|
182
|
+
|
|
183
|
+
const nextBoard = board.next();
|
|
184
|
+
|
|
185
|
+
expect(!!nextBoard.getShipyardAtPoint(p)).to.be.true;
|
|
186
|
+
const nextShipyard = nextBoard.getShipyardAtPoint(p);
|
|
187
|
+
expect(nextShipyard.playerId).to.equal(0);
|
|
188
|
+
expect(nextShipyard.shipCount).to.equal(50);
|
|
189
|
+
})
|
|
190
|
+
|
|
191
|
+
it('works with multiple converts ', () => {
|
|
192
|
+
let board = getStarterBoard();
|
|
193
|
+
|
|
194
|
+
const p = new Point(10, 11);
|
|
195
|
+
|
|
196
|
+
const f = new Fleet("test-fleet", 100, Direction.NORTH, p, 100.0, "CCC", 0, board);
|
|
197
|
+
|
|
198
|
+
board.addFleet(f);
|
|
199
|
+
|
|
200
|
+
board = board.next();
|
|
201
|
+
board = board.next();
|
|
202
|
+
board = board.next();
|
|
203
|
+
|
|
204
|
+
expect(true).to.be.true;
|
|
205
|
+
})
|
|
206
|
+
})
|
|
207
|
+
|
|
208
|
+
describe('coalescence', () => {
|
|
209
|
+
it('correctly joins allied fleets', () => {
|
|
210
|
+
const board = getStarterBoard();
|
|
211
|
+
|
|
212
|
+
const p1 = new Point(10, 11);
|
|
213
|
+
const p2 = new Point(10, 9);
|
|
214
|
+
|
|
215
|
+
const f1 = new Fleet("f1", 10, Direction.SOUTH, p1, 100.0, "", 0, board);
|
|
216
|
+
const f2 = new Fleet("f2", 11, Direction.NORTH, p2, 100.0, "", 0, board);
|
|
217
|
+
|
|
218
|
+
board.addFleet(f1);
|
|
219
|
+
board.addFleet(f2);
|
|
220
|
+
|
|
221
|
+
const nextBoard = board.next();
|
|
222
|
+
|
|
223
|
+
const combinedFleet = nextBoard.getFleetAtPoint(new Point(10, 10));
|
|
224
|
+
expect(combinedFleet.direction.toChar()).to.equal(Direction.NORTH.toChar());
|
|
225
|
+
expect(combinedFleet.shipCount).to.equal(21);
|
|
226
|
+
})
|
|
227
|
+
|
|
228
|
+
it('joins on first tie break', () => {
|
|
229
|
+
const board = getStarterBoard();
|
|
230
|
+
|
|
231
|
+
const p1 = new Point(10, 11);
|
|
232
|
+
const p2 = new Point(10, 9);
|
|
233
|
+
|
|
234
|
+
const f1 = new Fleet("f1", 10, Direction.SOUTH, p1, 100.0, "", 0, board);
|
|
235
|
+
const f2 = new Fleet("f2", 10, Direction.NORTH, p2, 101.0, "10S", 0, board);
|
|
236
|
+
|
|
237
|
+
board.addFleet(f1);
|
|
238
|
+
board.addFleet(f2);
|
|
239
|
+
|
|
240
|
+
const nextBoard = board.next();
|
|
241
|
+
|
|
242
|
+
const combinedFleet = nextBoard.getFleetAtPoint(new Point(10, 10));
|
|
243
|
+
expect(combinedFleet.direction.toChar()).to.equal(Direction.NORTH.toChar());
|
|
244
|
+
expect(combinedFleet.shipCount).to.equal(20);
|
|
245
|
+
expect(combinedFleet.flightPlan).to.equal("9S");
|
|
246
|
+
})
|
|
247
|
+
|
|
248
|
+
it('joins on second tie break', () => {
|
|
249
|
+
const board = getStarterBoard();
|
|
250
|
+
|
|
251
|
+
const p1 = new Point(10, 11);
|
|
252
|
+
const p2 = new Point(10, 9);
|
|
253
|
+
|
|
254
|
+
const f1 = new Fleet("f1", 10, Direction.SOUTH, p1, 100.0, "", 0, board);
|
|
255
|
+
const f2 = new Fleet("f2", 10, Direction.NORTH, p2, 100.0, "", 0, board);
|
|
256
|
+
|
|
257
|
+
board.addFleet(f1);
|
|
258
|
+
board.addFleet(f2);
|
|
259
|
+
|
|
260
|
+
const nextBoard = board.next();
|
|
261
|
+
|
|
262
|
+
const combinedFleet = nextBoard.getFleetAtPoint(new Point(10, 10));
|
|
263
|
+
expect(combinedFleet.direction.toChar()).to.equal(Direction.NORTH.toChar());
|
|
264
|
+
expect(combinedFleet.shipCount).to.equal(20);
|
|
265
|
+
})
|
|
266
|
+
})
|
|
267
|
+
|
|
268
|
+
describe('fleet battles', () => {
|
|
269
|
+
it('resolve correctly with a winner', () => {
|
|
270
|
+
const board = getStarterBoard();
|
|
271
|
+
|
|
272
|
+
const p1 = new Point(9, 11);
|
|
273
|
+
const p2 = new Point(10, 9);
|
|
274
|
+
|
|
275
|
+
const f1 = new Fleet("f1", 10, Direction.SOUTH, p1, 100.0, "", 0, board);
|
|
276
|
+
const f2 = new Fleet("f2", 11, Direction.NORTH, p2, 100.0, "", 1, board);
|
|
277
|
+
|
|
278
|
+
board.addFleet(f1);
|
|
279
|
+
board.addFleet(f2);
|
|
280
|
+
|
|
281
|
+
const nextBoard = board.next();
|
|
282
|
+
|
|
283
|
+
expect(!!nextBoard.getFleetAtPoint(new Point(10, 10))).to.be.true;
|
|
284
|
+
const survivingFleet = nextBoard.getFleetAtPoint(new Point(10, 10));
|
|
285
|
+
expect(survivingFleet.direction.toChar()).to.equal(Direction.NORTH.toChar());
|
|
286
|
+
expect(survivingFleet.shipCount).to.equal(1);
|
|
287
|
+
expect(survivingFleet.playerId).to.equal(1);
|
|
288
|
+
})
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
it('resolve correctly with a tie', () => {
|
|
292
|
+
const board = getStarterBoard();
|
|
293
|
+
|
|
294
|
+
const p1 = new Point(10, 11);
|
|
295
|
+
const p2 = new Point(9, 9);
|
|
296
|
+
|
|
297
|
+
const f1 = new Fleet("f1", 10, Direction.SOUTH, p1, 100.0, "", 0, board);
|
|
298
|
+
const f2 = new Fleet("f2", 10, Direction.NORTH, p2, 100.0, "", 1, board);
|
|
299
|
+
|
|
300
|
+
board.addFleet(f1);
|
|
301
|
+
board.addFleet(f2);
|
|
302
|
+
|
|
303
|
+
const nextBoard = board.next();
|
|
304
|
+
|
|
305
|
+
const collision = new Point(10, 10);
|
|
306
|
+
expect(!!nextBoard.getFleetAtPoint(collision)).to.be.false;
|
|
307
|
+
expect(board.getCellAtPosition(collision).kore + 100).to.be.lessThan(nextBoard.getCellAtPosition(collision).kore);
|
|
308
|
+
})
|
|
309
|
+
})
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
describe('fleet collisions', () => {
|
|
313
|
+
it('resolve correctly with a winner', () => {
|
|
314
|
+
const board = getStarterBoard();
|
|
315
|
+
|
|
316
|
+
const p1 = new Point(10, 11);
|
|
317
|
+
const p2 = new Point(10, 9);
|
|
318
|
+
|
|
319
|
+
const f1 = new Fleet("f1", 10, Direction.SOUTH, p1, 100.0, "", 0, board);
|
|
320
|
+
const f2 = new Fleet("f2", 11, Direction.NORTH, p2, 100.0, "", 1, board);
|
|
321
|
+
|
|
322
|
+
board.addFleet(f1);
|
|
323
|
+
board.addFleet(f2);
|
|
324
|
+
|
|
325
|
+
const nextBoard = board.next();
|
|
326
|
+
|
|
327
|
+
expect(!!nextBoard.getFleetAtPoint(new Point(10, 10))).to.be.true;
|
|
328
|
+
const survivingFleet = nextBoard.getFleetAtPoint(new Point(10, 10));
|
|
329
|
+
expect(survivingFleet.direction.toChar()).to.equal(Direction.NORTH.toChar());
|
|
330
|
+
expect(survivingFleet.shipCount).to.equal(1);
|
|
331
|
+
expect(survivingFleet.playerId).to.equal(1);
|
|
332
|
+
})
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
it('resolve correctly with multiples from one player', () => {
|
|
336
|
+
const board = getStarterBoard();
|
|
337
|
+
|
|
338
|
+
const p1 = new Point(10, 11);
|
|
339
|
+
const p2 = new Point(10, 9);
|
|
340
|
+
const p3 = new Point(9, 10);
|
|
341
|
+
|
|
342
|
+
const f1 = new Fleet("f1", 10, Direction.SOUTH, p1, 100.0, "", 0, board);
|
|
343
|
+
const f2 = new Fleet("f2", 11, Direction.NORTH, p2, 100.0, "", 1, board);
|
|
344
|
+
const f3 = new Fleet("f3", 2, Direction.EAST, p3, 100.0, "", 0, board);
|
|
345
|
+
|
|
346
|
+
board.addFleet(f1);
|
|
347
|
+
board.addFleet(f2);
|
|
348
|
+
board.addFleet(f3);
|
|
349
|
+
|
|
350
|
+
const nextBoard = board.next();
|
|
351
|
+
|
|
352
|
+
expect(!!nextBoard.getFleetAtPoint(new Point(10, 10))).to.be.true;
|
|
353
|
+
const survivingFleet = nextBoard.getFleetAtPoint(new Point(10, 10));
|
|
354
|
+
expect(survivingFleet.direction.toChar()).to.equal(Direction.SOUTH.toChar());
|
|
355
|
+
expect(survivingFleet.shipCount).to.equal(1);
|
|
356
|
+
expect(survivingFleet.playerId).to.equal(0);
|
|
357
|
+
})
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
it('resolve correctly with multiples players', () => {
|
|
361
|
+
const board = getStarterBoard();
|
|
362
|
+
|
|
363
|
+
const p1 = new Point(10, 11);
|
|
364
|
+
const p2 = new Point(10, 9);
|
|
365
|
+
const p3 = new Point(9, 10);
|
|
366
|
+
|
|
367
|
+
const f1 = new Fleet("f1", 10, Direction.SOUTH, p1, 100.0, "", 0, board);
|
|
368
|
+
const f2 = new Fleet("f2", 11, Direction.NORTH, p2, 100.0, "", 1, board);
|
|
369
|
+
const f3 = new Fleet("f3", 2, Direction.EAST, p3, 100.0, "", 2, board);
|
|
370
|
+
|
|
371
|
+
board.addFleet(f1);
|
|
372
|
+
board.addFleet(f2);
|
|
373
|
+
board.addFleet(f3);
|
|
374
|
+
|
|
375
|
+
const nextBoard = board.next();
|
|
376
|
+
|
|
377
|
+
expect(!!nextBoard.getFleetAtPoint(new Point(10, 10))).to.be.true;
|
|
378
|
+
const survivingFleet = nextBoard.getFleetAtPoint(new Point(10, 10));
|
|
379
|
+
expect(survivingFleet.direction.toChar()).to.equal(Direction.NORTH.toChar());
|
|
380
|
+
expect(survivingFleet.shipCount).to.equal(1);
|
|
381
|
+
expect(survivingFleet.playerId).to.equal(1);
|
|
382
|
+
})
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
it('resolve correctly with a tie', () => {
|
|
386
|
+
const board = getStarterBoard();
|
|
387
|
+
|
|
388
|
+
const p1 = new Point(10, 11);
|
|
389
|
+
const p2 = new Point(10, 9);
|
|
390
|
+
|
|
391
|
+
const f1 = new Fleet("f1", 10, Direction.SOUTH, p1, 100.0, "", 0, board);
|
|
392
|
+
const f2 = new Fleet("f2", 10, Direction.NORTH, p2, 100.0, "", 1, board);
|
|
393
|
+
|
|
394
|
+
board.addFleet(f1);
|
|
395
|
+
board.addFleet(f2);
|
|
396
|
+
|
|
397
|
+
const nextBoard = board.next();
|
|
398
|
+
|
|
399
|
+
const collision = new Point(10, 10);
|
|
400
|
+
expect(!!nextBoard.getFleetAtPoint(new Point(10, 10))).to.be.false;
|
|
401
|
+
expect(board.getCellAtPosition(collision).kore + 100).to.be.lessThan(nextBoard.getCellAtPosition(collision).kore);
|
|
402
|
+
})
|
|
403
|
+
})
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
describe('fleet/shipyard collisions', () => {
|
|
407
|
+
it('works when they are allied', () => {
|
|
408
|
+
const board = getStarterBoard();
|
|
409
|
+
|
|
410
|
+
const p1 = new Point(10, 11);
|
|
411
|
+
const p2 = new Point(10, 10);
|
|
412
|
+
|
|
413
|
+
const f1 = new Fleet("f1", 10, Direction.SOUTH, p1, 100.0, "", 0, board);
|
|
414
|
+
const s1 = new Shipyard("s1", 0, p2, 0, 100, board, null);
|
|
415
|
+
|
|
416
|
+
board.addFleet(f1);
|
|
417
|
+
board.addShipyard(s1);
|
|
418
|
+
|
|
419
|
+
const nextBoard = board.next();
|
|
420
|
+
|
|
421
|
+
expect(!!nextBoard.getFleetAtPoint(p2)).to.be.false;
|
|
422
|
+
expect(!!nextBoard.getShipyardAtPoint(p2)).to.be.true;
|
|
423
|
+
const nextShipyard = nextBoard.getShipyardAtPoint(p2);
|
|
424
|
+
expect(nextShipyard.shipCount).to.equal(10);
|
|
425
|
+
expect(nextShipyard.playerId).to.equal(0);
|
|
426
|
+
expect(s1.turnsControlled).to.equal(100);
|
|
427
|
+
expect(nextShipyard.turnsControlled).to.equal(101);
|
|
428
|
+
expect(nextBoard.players[0].kore).to.equal(board.players[0].kore + 100);
|
|
429
|
+
})
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
it('smaller fleet does not take over larger shipyard', () => {
|
|
433
|
+
const board = getStarterBoard();
|
|
434
|
+
|
|
435
|
+
const p1 = new Point(10, 11);
|
|
436
|
+
const p2 = new Point(10, 10);
|
|
437
|
+
|
|
438
|
+
const f1 = new Fleet("f1", 10, Direction.SOUTH, p1, 100.0, "", 1, board);
|
|
439
|
+
const s1 = new Shipyard("s1", 100, p2, 0, 100, board, null);
|
|
440
|
+
|
|
441
|
+
board.addFleet(f1);
|
|
442
|
+
board.addShipyard(s1);
|
|
443
|
+
|
|
444
|
+
const nextBoard = board.next();
|
|
445
|
+
|
|
446
|
+
expect(!!nextBoard.getFleetAtPoint(p2)).to.be.false;
|
|
447
|
+
expect(!!nextBoard.getShipyardAtPoint(p2)).to.be.true;
|
|
448
|
+
const nextShipyard = nextBoard.getShipyardAtPoint(p2);
|
|
449
|
+
expect(nextShipyard.shipCount).to.equal(90);
|
|
450
|
+
expect(nextShipyard.playerId).to.equal(0);
|
|
451
|
+
expect(s1.turnsControlled).to.equal(100);
|
|
452
|
+
expect(nextShipyard.turnsControlled).to.equal(101);
|
|
453
|
+
expect(nextBoard.players[0].kore).to.equal(board.players[0].kore + 100);
|
|
454
|
+
})
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
it('equal fleet does not take over larger shipyard', () => {
|
|
458
|
+
const board = getStarterBoard();
|
|
459
|
+
|
|
460
|
+
const p1 = new Point(10, 11);
|
|
461
|
+
const p2 = new Point(10, 10);
|
|
462
|
+
|
|
463
|
+
const f1 = new Fleet("f1", 100, Direction.SOUTH, p1, 100.0, "", 1, board);
|
|
464
|
+
const s1 = new Shipyard("s1", 100, p2, 0, 100, board, null);
|
|
465
|
+
|
|
466
|
+
board.addFleet(f1);
|
|
467
|
+
board.addShipyard(s1);
|
|
468
|
+
|
|
469
|
+
const nextBoard = board.next();
|
|
470
|
+
|
|
471
|
+
expect(!!nextBoard.getFleetAtPoint(p2)).to.be.false;
|
|
472
|
+
expect(!!nextBoard.getShipyardAtPoint(p2)).to.be.true;
|
|
473
|
+
const nextShipyard = nextBoard.getShipyardAtPoint(p2);
|
|
474
|
+
expect(nextShipyard.shipCount).to.equal(0);
|
|
475
|
+
expect(nextShipyard.playerId).to.equal(0);
|
|
476
|
+
expect(s1.turnsControlled).to.equal(100);
|
|
477
|
+
expect(nextShipyard.turnsControlled).to.equal(101);
|
|
478
|
+
expect(nextBoard.players[0].kore).to.equal(board.players[0].kore + 100);
|
|
479
|
+
})
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
it('larger fleet does take over smaller shipyard', () => {
|
|
483
|
+
const board = getStarterBoard();
|
|
484
|
+
|
|
485
|
+
const p1 = new Point(10, 11);
|
|
486
|
+
const p2 = new Point(10, 10);
|
|
487
|
+
|
|
488
|
+
const f1 = new Fleet("f1", 110, Direction.SOUTH, p1, 100.0, "", 1, board);
|
|
489
|
+
const s1 = new Shipyard("s1", 100, p2, 0, 100, board, null);
|
|
490
|
+
|
|
491
|
+
board.addFleet(f1);
|
|
492
|
+
board.addShipyard(s1);
|
|
493
|
+
|
|
494
|
+
const nextBoard = board.next();
|
|
495
|
+
|
|
496
|
+
expect(!!nextBoard.getFleetAtPoint(p2)).to.be.false;
|
|
497
|
+
expect(!!nextBoard.getShipyardAtPoint(p2)).to.be.true;
|
|
498
|
+
const nextShipyard = nextBoard.getShipyardAtPoint(p2);
|
|
499
|
+
expect(nextShipyard.shipCount).to.equal(10);
|
|
500
|
+
expect(nextShipyard.playerId).to.equal(1);
|
|
501
|
+
expect(s1.turnsControlled).to.equal(100);
|
|
502
|
+
expect(nextShipyard.turnsControlled).to.equal(1);
|
|
503
|
+
expect(nextBoard.players[1].kore).to.equal(board.players[1].kore + 100);
|
|
504
|
+
})
|
|
505
|
+
})
|
|
506
|
+
|
|
507
|
+
describe('fleet adjenct damage', () => {
|
|
508
|
+
it('resolves correctly when both die', () => {
|
|
509
|
+
const board = getStarterBoard();
|
|
510
|
+
|
|
511
|
+
const p1 = new Point(10, 11);
|
|
512
|
+
const f1 = new Fleet("f1", 100, Direction.NORTH, p1, 100.0, "", 0, board);
|
|
513
|
+
const p1Kore = board.getCellAtPosition(p1.add(Direction.NORTH)).kore;
|
|
514
|
+
board.addFleet(f1);
|
|
515
|
+
|
|
516
|
+
const p2 = p1.add(Direction.NORTH).add(Direction.NORTH).add(Direction.EAST);
|
|
517
|
+
const f2 = new Fleet("f2", 100, Direction.SOUTH, p2, 100.0, "", 1, board);
|
|
518
|
+
board.addFleet(f2);
|
|
519
|
+
|
|
520
|
+
const nextBoard = board.next();
|
|
521
|
+
|
|
522
|
+
const p1NextKore = nextBoard.getCellAtPosition(p1.add(Direction.NORTH)).kore;
|
|
523
|
+
expect(!nextBoard.fleets.has("f1")).to.be.true;
|
|
524
|
+
expect(p1Kore + 100 < p1NextKore).to.be.true;
|
|
525
|
+
})
|
|
526
|
+
|
|
527
|
+
it('resolves correctly when only one dies', () => {
|
|
528
|
+
const board = getStarterBoard();
|
|
529
|
+
|
|
530
|
+
const p1 = new Point(10, 11);
|
|
531
|
+
const f1 = new Fleet("f1", 50, Direction.NORTH, p1, 100.0, "", 0, board);
|
|
532
|
+
const p1Kore = board.getCellAtPosition(p1.add(Direction.NORTH)).kore;
|
|
533
|
+
board.addFleet(f1);
|
|
534
|
+
|
|
535
|
+
const p2 = p1.add(Direction.NORTH).add(Direction.NORTH).add(Direction.EAST);
|
|
536
|
+
const f2 = new Fleet("f2", 100, Direction.SOUTH, p2, 100.0, "", 1, board);
|
|
537
|
+
board.addFleet(f2);
|
|
538
|
+
|
|
539
|
+
const nextBoard = board.next();
|
|
540
|
+
|
|
541
|
+
const p1NextKore = nextBoard.getCellAtPosition(p1.add(Direction.NORTH)).kore;
|
|
542
|
+
expect(!nextBoard.fleets.has("f1")).to.be.true;
|
|
543
|
+
expect(p1Kore + 50 < p1NextKore && p1Kore + 55 > p1NextKore).to.be.true;
|
|
544
|
+
|
|
545
|
+
const f2next = nextBoard.fleets.get("f2");
|
|
546
|
+
expect(f2.kore + 50 <= f2next.kore && f2.kore + 55 > f2next.kore).to.be.true;
|
|
547
|
+
});
|
|
548
|
+
});
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { describe } from 'mocha';
|
|
2
|
+
import { expect } from 'chai';
|
|
3
|
+
|
|
4
|
+
import * as fs from 'fs';
|
|
5
|
+
|
|
6
|
+
import { Configuration } from "../kore/Configuration";
|
|
7
|
+
|
|
8
|
+
describe('Configuration', () => {
|
|
9
|
+
it('init works correctly', () => {
|
|
10
|
+
const rawConfig = fs.readFileSync('./test/configuration.json','utf8');
|
|
11
|
+
|
|
12
|
+
const config = new Configuration(rawConfig);
|
|
13
|
+
|
|
14
|
+
expect(config.regenRate).to.equal(.02);
|
|
15
|
+
})
|
|
16
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { describe } from 'mocha';
|
|
2
|
+
import { expect } from 'chai';
|
|
3
|
+
|
|
4
|
+
import * as fs from 'fs';
|
|
5
|
+
|
|
6
|
+
import { Observation } from "../kore/Observation";
|
|
7
|
+
|
|
8
|
+
describe('Observation', () => {
|
|
9
|
+
it('valid observation works', () => {
|
|
10
|
+
const rawObs = fs.readFileSync('./test/observation.json', 'utf8');
|
|
11
|
+
const ob = new Observation(rawObs);
|
|
12
|
+
|
|
13
|
+
expect(ob.player).to.equal(0);
|
|
14
|
+
expect(ob.step).to.equal(16);
|
|
15
|
+
expect(ob.playerFleets.length).to.equal(4);
|
|
16
|
+
expect(ob.playerFleets[0].size).to.equal(0);
|
|
17
|
+
expect(ob.playerShipyards.length).to.equal(4);
|
|
18
|
+
expect(ob.playerShipyards[0].size).to.equal(1);
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
it('full observation works', () => {
|
|
22
|
+
const rawObs = fs.readFileSync('./test/fullob.json', 'utf8');
|
|
23
|
+
const ob = new Observation(rawObs);
|
|
24
|
+
|
|
25
|
+
expect(ob.player).to.equal(0);
|
|
26
|
+
expect(ob.step).to.equal(200);
|
|
27
|
+
expect(ob.playerHlt.length).to.equal(2);
|
|
28
|
+
expect(ob.playerFleets.length).to.equal(2);
|
|
29
|
+
expect(ob.playerFleets[0].size).to.equal(1);
|
|
30
|
+
expect(ob.playerShipyards.length).to.equal(2);
|
|
31
|
+
expect(ob.playerShipyards[0].size).to.equal(6);
|
|
32
|
+
})
|
|
33
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { describe } from 'mocha';
|
|
2
|
+
import { expect } from 'chai';
|
|
3
|
+
|
|
4
|
+
import { Point } from "../kore/Point";
|
|
5
|
+
|
|
6
|
+
describe('Point', () => {
|
|
7
|
+
it('fontIndex toIndex isIdetity', () => {
|
|
8
|
+
const idx = 254;
|
|
9
|
+
const size = 31;
|
|
10
|
+
|
|
11
|
+
const point = Point.fromIndex(idx, size);
|
|
12
|
+
const mirroredIdx = point.toIndex(size);
|
|
13
|
+
|
|
14
|
+
expect(mirroredIdx).to.equal(idx);
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { describe } from 'mocha';
|
|
2
|
+
import { expect } from 'chai';
|
|
3
|
+
|
|
4
|
+
import { Shipyard } from "../kore/Shipyard";
|
|
5
|
+
import { Point } from '../kore/Point';
|
|
6
|
+
|
|
7
|
+
describe('Shipyard', () => {
|
|
8
|
+
const turns = [0, 1, 2, 293, 294, 295];
|
|
9
|
+
const expected = [1, 1, 2, 9, 10, 10]
|
|
10
|
+
for (let i = 0; i < turns.length; i ++) {
|
|
11
|
+
it(`max spawn is correct at ${turns[i]} turns controlled`, () => {
|
|
12
|
+
const shipyard = new Shipyard("A", 0, new Point(0, 0), 1, turns[i], null, null);
|
|
13
|
+
|
|
14
|
+
expect(shipyard.maxSpawn).to.equal(expected[i]);
|
|
15
|
+
})
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"episodeSteps": 401, "actTimeout": 3, "runTimeout": 9600, "startingKore": 6000, "size": 31, "spawnCost": 10, "convertCost": 50, "regenRate": 0.02, "maxRegenCellKore": 500, "agentTimeout": 60, "randomSeed": 1464814655, "__raw_path__": "java/main.py"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"kore": [0.0, 0.0, 506.992, 505.069, 0.0, 0.0, 0.0, 0.0, 419.865, 0.0, 290.82, 501.384, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 507.098, 419.865, 0.0, 419.865, 0.0, 0.0, 0.0, 0.0, 505.069, 506.992, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 367.426, 0.0, 472.378, 0.0, 210.032, 52.493, 0.0, 0.0, 314.858, 0.0, 0.0, 52.493, 210.032, 0.0, 472.378, 0.0, 367.426, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 506.992, 0.0, 509.253, 367.426, 506.992, 502.462, 0.0, 506.992, 0.0, 0.0, 400.173, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 502.569, 0.0, 0.0, 506.992, 0.0, 502.462, 506.992, 367.426, 509.253, 0.0, 506.992, 505.069, 0.0, 367.426, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 327.724, 0.0, 0.0, 0.0, 505.345, 0.0, 501.328, 0.0, 0.0, 0.0, 472.378, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 367.426, 0.0, 505.069, 0.0, 0.0, 504.406, 0.0, 0.0, 501.945, 0.0, 210.032, 506.992, 0.0, 0.0, 0.0, 0.0, 0.0, 74.135, 472.378, 105.024, 0.0, 0.0, 0.0, 0.0, 0.0, 506.992, 210.032, 0.0, 504.355, 0.0, 0.0, 504.406, 0, 0.0, 0.0, 0.0, 509.66, 0.0, 501.885, 508.922, 0.0, 0.0, 157.437, 504.462, 364.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 504.396, 504.462, 157.437, 0.0, 0.0, 501.844, 504.355, 0.0, 509.66, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 262.485, 0.0, 157.437, 506.205, 0.0, 0.0, 262.485, 0.0, 0.0, 0.0, 171.185, 0.0, 0.0, 501.799, 157.437, 0.0, 262.485, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 367.426, 506.992, 0.0, 210.032, 0.0, 262.485, 0.0, 0.0, 0.0, 110.023, 0.0, 0.0, 0.0, 0.0, 105.024, 0.0, 0.0, 0.0, 0.0, 157.437, 0.0, 0.0, 0.0, 262.485, 0.0, 210.032, 0.0, 506.992, 226.428, 0.0, 419.865, 0.0, 0.0, 0.0, 506.992, 157.437, 0.0, 0.0, 329.782, 0.0, 30.018, 287.219, 0.0, 0.0, 0, 0.0, 80.233, 0.0, 0.0, 504.396, 52.493, 0.0, 419.865, 0.0, 0.0, 157.437, 506.992, 0.0, 0.0, 0.0, 419.865, 0.0, 472.378, 0.0, 0.0, 0.0, 504.013, 78.951, 160.69, 501.799, 0.0, 0.0, 502.665, 0.0, 0.0, 157.437, 506.563, 157.437, 0.0, 0.0, 509.52, 0.0, 0.0, 509.698, 207.219, 96.102, 508.199, 0.0, 0.0, 0.0, 290.785, 0.0, 419.865, 0.0, 502.569, 472.378, 0.0, 304.465, 0.0, 0.0, 0.0, 0.0, 0.0, 502.149, 0.0, 0.0, 0.0, 504.355, 0.0, 0, 0.0, 509.287, 0.0, 0.0, 0.0, 0.0, 0.0, 304.265, 0.0, 472.378, 502.569, 0.0, 419.865, 507.098, 210.032, 0.0, 0.0, 0.0, 0.0, 0.0, 455.017, 105.024, 0.0, 502.462, 0.0, 262.485, 0.0, 0.0, 105.024, 0.0, 0, 262.485, 0.0, 502.462, 0.0, 105.024, 504.248, 0.0, 0.0, 0.0, 0.0, 0.0, 130.187, 507.098, 0.0, 52.493, 0.0, 0.0, 504.759, 137.956, 215.334, 48.645, 0.0, 193.355, 151.923, 0, 504.314, 508.639, 336.859, 0.0, 501.817, 359.916, 503.869, 0.0, 311.502, 394.83, 0.0, 120.63399999999999, 255.181, 165.806, 503.597, 0.0, 0.0, 33.798, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 347.298, 271.605, 172.617, 0.0, 138.627, 394.234, 503.221, 0.0, 504.071, 211.268, 197.11, 0.0, 223.128, 374.437, 489.777, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.86, 0, 0.0, 0.0, 22.418, 15.789, 0.0, 276.643, 0.0, 454.734, 0.0, 216.047, 0.0, 482.34, 509.253, 0.0, 0.0, 12.055, 52.493, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 300.887, 124.229, 62.549, 0.0, 0.0, 293.845, 500.321, 508.317, 131.274, 0.0, 505.666, 0.0, 76.24, 500.404, 502.391, 294.329, 0.0, 0.0, 47.514, 114.842, 485.939, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 52.493, 17.918, 0.0, 0.0, 509.253, 452.772, 0.0, 484.331, 68.625, 143.07, 0.0, 42.889, 0.0, 12.116, 13.911, 0.0, 0.0, 0, 9.31, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 415.606, 318.218, 189.918, 0.0, 164.566, 217.113, 500.0, 0.0, 501.143, 223.134, 96.391, 0.0, 112.635, 195.318, 248.226, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 52.493, 0.0, 0.0, 505.989, 134.193, 333.494, 178.212, 0.0, 472.378, 367.426, 0.0, 507.171, 504.206, 404.461, 0.0, 283.63, 479.969, 441.558, 0.0, 127.723, 164.318, 0.0, 28.154, 258.813, 168.677, 502.143, 0.0, 0.0, 33.413, 0.0, 507.098, 210.032, 0.0, 0.0, 0.0, 0.0, 0.0, 483.494, 105.024, 0.0, 502.462, 0.0, 262.485, 0.0, 0.0, 105.024, 0.0, 0.0, 262.485, 0.0, 502.462, 0.0, 105.024, 248.324, 0.0, 0.0, 0.0, 0.0, 0.0, 130.054, 507.098, 419.865, 0.0, 502.569, 472.378, 0.0, 211.524, 0.0, 0.0, 0.0, 0.0, 0.0, 502.149, 0.0, 0.0, 0.0, 482.396, 0.0, 0.0, 0.0, 502.149, 0.0, 0.0, 0.0, 0.0, 0.0, 304.735, 0.0, 472.378, 502.569, 0.0, 419.865, 0.0, 472.378, 0.0, 0.0, 0.0, 420.981, 67.298, 171.611, 501.799, 0.0, 0.0, 502.665, 0.0, 0.0, 157.437, 493.431, 131.62, 0.0, 0.0, 502.665, 0.0, 0.0, 501.799, 88.631, 81.856, 506.154, 0.0, 0.0, 0.0, 290.467, 0.0, 419.865, 0.0, 0.0, 0.0, 506.992, 157.437, 0.0, 0.0, 419.865, 0.0, 52.493, 504.396, 0.0, 0.0, 105.024, 0.0, 0, 0, 0.0, 320.984, 32.961, 0.0, 257.584, 0.0, 0.0, 157.437, 472.417, 0.0, 0.0, 0.0, 419.865, 0.0, 367.426, 506.992, 0.0, 210.032, 0.0, 262.485, 0.0, 0.0, 0.0, 157.437, 0.0, 0.0, 0.0, 0.0, 105.024, 0.0, 0.0, 0.0, 0.0, 157.437, 0.0, 0.0, 0.0, 262.485, 0.0, 145.864, 0.0, 506.992, 287.418, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 262.485, 0.0, 157.437, 501.799, 0.0, 0.0, 262.485, 0.0, 0.0, 0.0, 147.895, 0.0, 0.0, 501.799, 157.437, 0.0, 184.177, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 502.462, 0.0, 504.355, 501.844, 0.0, 0.0, 157.437, 504.462, 504.396, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 504.396, 504.462, 157.437, 0.0, 0.0, 506.56, 500.716, 0.0, 502.462, 0.0, 0.0, 0.0, 0.0, 506.992, 0.0, 0.0, 504.355, 0.0, 210.032, 506.992, 0.0, 0.0, 0.0, 0.0, 0.0, 105.024, 472.378, 105.024, 0.0, 0.0, 0.0, 0.0, 0.0, 506.992, 210.032, 0.0, 504.355, 0.0, 0.0, 506.992, 0, 0.0, 505.069, 0.0, 367.426, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 472.378, 0.0, 0.0, 0.0, 501.328, 0.0, 501.328, 0.0, 0.0, 0.0, 472.378, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 367.426, 0.0, 505.069, 506.992, 0.0, 509.253, 367.426, 506.992, 502.462, 0.0, 506.992, 0.0, 0.0, 502.569, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 502.569, 0.0, 0.0, 506.992, 0.0, 502.462, 506.992, 367.426, 509.253, 0.0, 506.992, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 367.426, 0.0, 472.378, 0.0, 210.032, 52.493, 0.0, 0.0, 314.858, 0.0, 0.0, 52.493, 210.032, 0.0, 472.378, 0.0, 367.426, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 506.992, 505.069, 0.0, 0.0, 0.0, 0.0, 419.865, 0.0, 419.865, 507.098, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 507.098, 419.865, 0.0, 419.865, 0.0, 0.0, 0.0, 0.0, 505.069, 506.992, 0.0, 0.0], "players": [[1, {"0-1": [441, 71, 200], "151-1": [262, 45, 49], "169-1": [153, 40, 31], "193-1": [383, 77, 8], "198-2": [835, 28, 3], "199-3": [327, 99, 2]}, {"194-1": [448, 90, 100, 1, "3N"]}], [8, {"0-2": [519, 13, 200], "183-1": [698, 16, 17], "187-1": [699, 7, 13], "192-2": [358, 15, 8]}, {"143-2": [823, 840, 57, 0, ""], "190-2": [680, 112, 57, 2, "3C"], "195-2": [545, 109, 21, 3, "5NE"], "197-1": [395, 31, 21, 0, "3E1S6W"], "199-1": [761, 26, 21, 2, "3W6N4E"], "200-1": [357, 0, 21, 3, "1N1E1S"]}]], "player": 0, "step": 200, "remainingOverageTime": 60}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"kore": [0.0, 0.0, 0.0, 1.372, 0.0, 0.0, 0.0, 31.574, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 37.066, 0.0, 37.066, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 31.574, 0.0, 0.0, 0.0, 1.372, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 17.847, 5.493, 31.574, 19.218, 37.066, 20.593, 8.234, 0.0, 6.864, 0.0, 0.0, 0.0, 49.419, 0.0, 0.0, 0.0, 6.864, 0.0, 8.234, 20.593, 37.066, 19.218, 31.574, 5.493, 17.847, 0.0, 0.0, 0.0, 0.0, 0.0, 20.593, 4.119, 0.0, 1.372, 0.0, 0.0, 0.0, 0.0, 0.0, 20.593, 0.0, 0.0, 0.0, 27.454, 0.0, 0.0, 0.0, 20.593, 0.0, 0.0, 0.0, 0.0, 0.0, 1.372, 0.0, 4.119, 20.593, 0.0, 0.0, 1.372, 17.847, 4.119, 0.0, 9.612, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 28.828, 28.828, 0.0, 0.0, 0.0, 0.0, 0.0, 28.828, 28.828, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 9.612, 0.0, 4.119, 17.847, 1.372, 0.0, 5.493, 0.0, 9.612, 0.0, 6.864, 0.0, 1.372, 0.0, 0.0, 0.0, 0.0, 13.728, 0.0, 0.0, 0.0, 0.0, 0.0, 13.728, 0.0, 0.0, 0.0, 0.0, 1.372, 0.0, 6.864, 0.0, 9.612, 0.0, 5.493, 0.0, 0.0, 31.574, 1.372, 0.0, 6.864, 4.119, 0.0, 1.372, 24.712, 0.0, 0.0, 0.0, 5.493, 13.728, 0.0, 0.0, 0.0, 13.728, 5.493, 0.0, 0.0, 0.0, 24.712, 1.372, 0.0, 4.119, 6.864, 0.0, 1.372, 31.574, 0.0, 0.0, 19.218, 0.0, 0.0, 0.0, 0.0, 9.612, 0.0, 34.321, 0.0, 0.0, 32.947, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 32.947, 0.0, 0.0, 0, 0.0, 9.612, 0.0, 0.0, 0.0, 0.0, 19.218, 0.0, 31.574, 37.066, 0.0, 0.0, 1.372, 1.372, 0.0, 19.218, 0.0, 28.828, 0.0, 0.0, 38.437, 0.0, 10.981, 5.493, 10.981, 0.0, 38.437, 0.0, 0.0, 28.828, 0.0, 19.218, 0.0, 1.372, 1.372, 0.0, 0.0, 37.066, 31.574, 0.0, 20.593, 0.0, 0.0, 0.0, 24.712, 0, 0.0, 0.0, 12.356, 0.0, 0.0, 0.0, 6.864, 0.0, 0.0, 0.0, 6.864, 0.0, 0.0, 0.0, 12.356, 0.0, 0.0, 34.321, 24.712, 0.0, 0.0, 0.0, 20.593, 0.0, 0.0, 8.234, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 21.964, 13.728, 6.864, 20.593, 9.612, 4.119, 0.0, 4.119, 9.612, 20.593, 6.864, 13.728, 21.964, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 8.234, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.372, 10.981, 0.0, 0.0, 13.728, 0.0, 0.0, 0.0, 0.0, 0.0, 13.728, 0.0, 0.0, 10.981, 1.372, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6.864, 20.593, 28.828, 0.0, 15.101, 0.0, 0.0, 6.864, 1.372, 0.0, 0.0, 0.0, 0.0, 9.612, 5.493, 9.612, 0.0, 0.0, 0.0, 0.0, 1.372, 6.864, 0.0, 0.0, 15.101, 0.0, 28.828, 20.593, 6.864, 0.0, 0.0, 0.0, 0.0, 28.828, 13.728, 0.0, 0.0, 10.981, 6.864, 17.847, 5.493, 0.0, 0.0, 24.712, 41.182, 0.0, 41.182, 24.712, 0.0, 0.0, 5.493, 17.847, 6.864, 10.981, 0.0, 0.0, 13.728, 28.828, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 15.101, 0.0, 1.372, 10.981, 0.0, 0.0, 0.0, 64.521, 131.787, 2.747, 57.655, 2.747, 131.787, 64.521, 0.0, 0.0, 0.0, 10.981, 1.372, 0.0, 15.101, 0.0, 0.0, 0.0, 0.0, 0.0, 37.066, 0.0, 1.372, 0.0, 0.0, 13.728, 1.372, 0.0, 0.0, 4.119, 23.338, 0.0, 0.0, 42.555, 27.454, 12.356, 27.454, 42.555, 0.0, 0.0, 23.338, 4.119, 0.0, 0.0, 1.372, 13.728, 0.0, 0.0, 1.372, 0.0, 37.066, 0.0, 20.593, 0.0, 27.454, 0.0, 0.0, 0.0, 0.0, 2.747, 0.0, 0.0, 0.0, 12.356, 37.066, 32.947, 123.55, 32.947, 37.066, 12.356, 0.0, 0.0, 0.0, 2.747, 0.0, 0.0, 0.0, 0.0, 27.454, 0.0, 20.593, 0.0, 37.066, 0.0, 1.372, 0.0, 0.0, 13.728, 1.372, 0.0, 0.0, 4.119, 23.338, 0.0, 0.0, 42.555, 27.454, 12.356, 27.454, 42.555, 0.0, 0.0, 23.338, 4.119, 0.0, 0.0, 1.372, 13.728, 0.0, 0.0, 1.372, 0.0, 37.066, 0.0, 0.0, 0.0, 0.0, 0.0, 15.101, 0.0, 1.372, 10.981, 0.0, 0.0, 0.0, 64.521, 131.787, 2.747, 57.655, 2.747, 131.787, 64.521, 0.0, 0.0, 0.0, 10.981, 1.372, 0.0, 15.101, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 28.828, 13.728, 0.0, 0.0, 10.981, 6.864, 17.847, 5.493, 0.0, 0.0, 24.712, 41.182, 0.0, 41.182, 24.712, 0.0, 0.0, 5.493, 17.847, 6.864, 10.981, 0.0, 0.0, 13.728, 28.828, 0.0, 0.0, 0.0, 0.0, 6.864, 20.593, 28.828, 0.0, 15.101, 0.0, 0.0, 6.864, 1.372, 0.0, 0.0, 0.0, 0.0, 9.612, 5.493, 9.612, 0.0, 0.0, 0.0, 0.0, 1.372, 6.864, 0.0, 0.0, 15.101, 0.0, 28.828, 20.593, 6.864, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.372, 10.981, 0.0, 0.0, 13.728, 0.0, 0.0, 0.0, 0.0, 0.0, 13.728, 0.0, 0.0, 10.981, 1.372, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 8.234, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 21.964, 13.728, 6.864, 20.593, 9.612, 4.119, 0.0, 4.119, 9.612, 20.593, 6.864, 13.728, 21.964, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 8.234, 0.0, 0.0, 20.593, 0.0, 0.0, 0.0, 24.712, 34.321, 0.0, 0.0, 12.356, 0.0, 0.0, 0.0, 6.864, 0.0, 0.0, 0.0, 6.864, 0.0, 0.0, 0.0, 12.356, 0.0, 0.0, 0, 24.712, 0.0, 0.0, 0.0, 20.593, 0.0, 31.574, 37.066, 0.0, 0.0, 1.372, 1.372, 0.0, 19.218, 0.0, 28.828, 0.0, 0.0, 38.437, 0.0, 10.981, 5.493, 10.981, 0.0, 38.437, 0.0, 0.0, 28.828, 0.0, 19.218, 0.0, 1.372, 1.372, 0.0, 0.0, 37.066, 31.574, 0.0, 19.218, 0.0, 0.0, 0.0, 0.0, 9.612, 0.0, 0, 0.0, 0.0, 32.947, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 32.947, 0.0, 0.0, 34.321, 0.0, 9.612, 0.0, 0.0, 0.0, 0.0, 19.218, 0.0, 0.0, 31.574, 1.372, 0.0, 6.864, 4.119, 0.0, 1.372, 24.712, 0.0, 0.0, 0.0, 5.493, 13.728, 0.0, 0.0, 0.0, 13.728, 5.493, 0.0, 0.0, 0.0, 24.712, 1.372, 0.0, 4.119, 6.864, 0.0, 1.372, 31.574, 0.0, 0.0, 5.493, 0.0, 9.612, 0.0, 6.864, 0.0, 1.372, 0.0, 0.0, 0.0, 0.0, 13.728, 0.0, 0.0, 0.0, 0.0, 0.0, 13.728, 0.0, 0.0, 0.0, 0.0, 1.372, 0.0, 6.864, 0.0, 9.612, 0.0, 5.493, 0.0, 1.372, 17.847, 4.119, 0.0, 9.612, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 28.828, 28.828, 0.0, 0.0, 0.0, 0.0, 0.0, 28.828, 28.828, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 9.612, 0.0, 4.119, 17.847, 1.372, 0.0, 0.0, 20.593, 4.119, 0.0, 1.372, 0.0, 0.0, 0.0, 0.0, 0.0, 20.593, 0.0, 0.0, 0.0, 27.454, 0.0, 0.0, 0.0, 20.593, 0.0, 0.0, 0.0, 0.0, 0.0, 1.372, 0.0, 4.119, 20.593, 0.0, 0.0, 0.0, 0.0, 0.0, 17.847, 5.493, 31.574, 19.218, 37.066, 20.593, 8.234, 0.0, 6.864, 0.0, 0.0, 0.0, 49.419, 0.0, 0.0, 0.0, 6.864, 0.0, 8.234, 20.593, 37.066, 19.218, 31.574, 5.493, 17.847, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.372, 0.0, 0.0, 0.0, 31.574, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 37.066, 0.0, 37.066, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 31.574, 0.0, 0.0, 0.0, 1.372, 0.0, 0.0, 0.0], "players": [[500, {"0-1": [254, 0, 16]}, {}], [500, {"0-2": [208, 0, 16]}, {}], [500, {"0-3": [752, 0, 16]}, {}], [500, {"0-4": [706, 0, 16]}, {}]], "player": 0, "step": 16, "remainingOverageTime": 60}
|