-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.rb
66 lines (43 loc) · 1.89 KB
/
Config.rb
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module AntConfig
# Testbot config
NUM_TURNS = 1000 # Max number of turns per game
# Tournament runs on Xeon X5675 3.07GHz servers (totaalnet); bogomips: 6117.71
# My laptop is a Core 2 Duo SU7300 1.3GHz; bogomips: 2678.11
# So server is 2.28 times faster
#
# Still, this margin is not enough.....
# Bloody random timeout occurring; crank it up and hope for the best in the comp.
TURN_TIME = 1300 # Num msec per bot per turn
# Num msec safety margin for handling turn
#TURN_MARGIN = 200 # This value for the tournament
TURN_MARGIN = 400 # This value for testing.
LOG_OUTPUT = true
LOG_STATUS = true # if LOG_OUTPUT is false, log status info only
MAX_GET_WALK = 50 # Max search time for paths
DEFENSIVE_LIMIT = 20 # Number of ants needed to be present
# before ants start attacking as well
AGGRESIVE_LIMIT = 30 # At this number, the ant will
# choose fights sooner
ANALYZE_LIMIT = 40 # After this number of ants, analyze will
# give preferences to hurting instead of
# playing safe
THROTTLE_LIMIT = 210
KAMIKAZE_LIMIT = 150 # Number of ants after which all enemies
# are attacked without reserve.
# -1 for no limit
FOOD_LIMIT = 5 # Max number of food items per turn
# for which to do path searches
HARVEST_LIMIT = 100 # Harvesting starts at this number of
# ants
# Stuff for collectives
ASSEMBLE_LIMIT = 10 # Number of ants in game before we
# start to assemble collectives
ASSEMBLY_LIMIT = 30 # Number of turns to wait until giving
# up on assembly
SAFE_LIMIT = 5 # Disband if there was no threat
# to the collective for given number of moves
INCOMPLETE_LIMIT = 15 # Disband if could not assemble collective for
# given number of moves
FIGHT_DISTANCE = 20 # If not attacked and enemy detected within
# given distance, move there to pick a fight
end