-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.js
51 lines (51 loc) · 1.43 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
/**
* Number of seams to select from when choosing a path
* The larger the number, the more random the possibilities
*/
NUMBER_OF_SEAMS: 12,
/**
* What percentage of the game to stop building
* ships. After this percentage is hit the
* game will just focus on collecting halite with
* the ships it has.
*/
STOP_BUILDING_TURN: 65,
/**
* The turn number to start considering
* building a dropoff. If built too soon the dropoff
* will likely be really close to the shipyard
*/
START_DROPOFF_TURN: 75,
/**
* Maximum number of dropoffs to build
*/
MAXIMUM_NUM_DROPOFFS: 2,
/**
* What percentage of maximum capacity should a ship
* go back to drop off halite
*/
RETREAT_PERCENTAGE: 85,
/**
* What percentage of halite remaining should a ship
* decide to move on to another cell in the map
*/
GET_MOVING_PERCENTAGE: 5,
/**
* What percentage of the time should a ship choose
* a random direction instead of trying to follow the
* seam. This is important otherwise every ship is trying
* to do the same thing.
*/
ENTROPY: 100,
/**
* Number of ships to build before focusing on gathering
* halite
*/
NUMBER_OF_SHIPS: 16,
/**
* Amount of halite a cell should have in it to consider
* going there
*/
HALITE_THRESHOLD: 100
};