File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
src/main/java/ir/sharif/aichallenge/server/logic/dto/payloads Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,17 @@ ANT_MAX_VIEW_DISTANCE = 4
99ANT_MAX_ATTACK_DISTANCE = 4
1010ANT_ATTACK_DAMAGE = 1
1111CHAT_LIMIT = 5
12- MAX_MESSAGE_LENGTH = 24
12+ MAX_MESSAGE_LENGTH = 32
1313GAME_MAXIMUM_TURN_COUNT = 50
1414RATE_DEATH_RESOURCE = 0.8
15- MAP_WIDTH = 31
16- MAP_HEIGHT = 31
15+ MAP_WIDTH = 32
16+ MAP_HEIGHT = 32
1717BASE_MAX_ATTACK_DISTANCE = 6
1818BASE_ATTACK_DAMAGE = 3
1919BASE_INIT_HEALTH = 10
2020WORKER_MAX_CARRYING_RESOURCE_AMOUNT = 10;
2121
22+ # Number of agents for EACH TEAM
2223# SCORPION = Soldier, ANT = Worker :)
2324INIT_SCORPIONS = 0
2425INIT_ANTS = 4
Original file line number Diff line number Diff line change 66import ir .sharif .aichallenge .server .logic .model .ant .Ant ;
77
88public class GameConfigDTO {
9- // int map_width;
10- // int map_height;
9+ int map_width ;
10+ int map_height ;
1111 int ant_type ;
1212 int base_x ;
1313 int base_y ;
@@ -21,8 +21,8 @@ public class GameConfigDTO {
2121
2222 public GameConfigDTO (Game game , int antId ) {
2323 Ant ant = game .getAntByID (antId );
24- // this.map_width = game.getMap().getXAxisLength();
25- // this.map_height = game.getMap().getYAxisLength();
24+ this .map_width = game .getMap ().getXAxisLength ();
25+ this .map_height = game .getMap ().getYAxisLength ();
2626 this .ant_type = ant .getAntType ().getValue ();
2727 this .base_x = game .getColony (ant .getColonyId ()).getBase ().getX ();
2828 this .base_y = game .getColony (ant .getColonyId ()).getBase ().getY ();
You can’t perform that action at this time.
0 commit comments