Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Commit 75747c6

Browse files
update config & submodules & gridmaster slightly
1 parent 34f4cb0 commit 75747c6

File tree

7 files changed

+26
-60
lines changed

7 files changed

+26
-60
lines changed

bot/connection

bot/gridmaster/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void ft_on_tick(unsigned long tick)
3636
{
3737
core_action_createUnit(nextUnit);
3838
nextUnit++;
39-
if (nextUnit > 2)
39+
if (nextUnit > 1)
4040
nextUnit = 0;
4141
}
4242

bot/gridmaster/src/pathfinding.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ static unsigned long movement_cost(t_pos pos, t_obj *unit)
6161
return ULONG_MAX / 2;
6262
}
6363
}
64-
else if (obj->type == OBJ_BOMB && obj->state == STATE_ALIVE)
65-
{
66-
return ULONG_MAX / 2;
67-
}
64+
// else if (obj->type == OBJ_BOMB && obj->state == STATE_ALIVE)
65+
// {
66+
// return ULONG_MAX / 2;
67+
// }
6868
else if (obj->type == OBJ_MONEY && obj->state == STATE_ALIVE)
6969
{
7070
if (unit->s_unit.unit_type == UNIT_CARRIER || unit->s_unit.unit_type == UNIT_MINER)

config.game.json

Lines changed: 17 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,41 @@
22
"gridSize": 20,
33
"seed": 1,
44
"idleIncome": 0,
5-
"idleIncomeTimeOut": 600,
5+
"idleIncomeTimeOut": 0,
66
"resourceHp": 50,
77
"resourceIncome": 200,
8-
"moneyObjIncome": 75,
8+
"moneyObjIncome": 100,
99
"coreHp": 200,
10-
"initialBalance": 300,
10+
"initialBalance": 200,
1111
"wallHp": 50,
1212
"wallBuildCost": 20,
1313
"bombHp": 50,
14-
"bombCountdown": 25,
14+
"bombCountdown": 10,
1515
"bombThrowCost": 50,
1616
"bombReach": 3,
1717
"bombDamage": 50,
18-
"worldGenerator": "jigsaw",
18+
"worldGenerator": "distanced_resources",
1919
"worldGeneratorConfig": {
20-
"templatePlaceAttemptCount": 1000,
21-
"additionalWallPlaceAttemptCount": 50,
22-
"mirrorMap": true,
23-
"resourceCount": 35,
24-
"moneysCount": 25,
25-
"minTemplateSpacing": 1,
26-
"minCoreDistance": 5,
27-
"baseResourceIncome": 150,
28-
"resourceAdditionalIncomePerAdjacentWall": 40,
29-
"resourceMultiplierIfFullySurrounded": 1.3,
30-
"randomResourceIncomeVariation": 30,
31-
"randomMoneyIncomeVariation": 20
20+
"moneyChance": 4,
21+
"resourceOrMoneyCount": 35
3222
},
3323
"units": [
3424
{
3525
"name": "Warrior",
3626
"cost": 150,
37-
"hp": 25,
27+
"hp": 35,
3828
"baseMoveCooldown": 3,
39-
"maxMoveCooldown": 12,
29+
"maxMoveCooldown": 5,
4030
"damageCore": 10,
4131
"damageUnit": 6,
42-
"damageResource": 2,
43-
"damageWall": 3,
32+
"damageResource": 4,
33+
"damageWall": 5,
4434
"buildType": 0
4535
},
4636
{
4737
"name": "Miner",
4838
"cost": 100,
49-
"hp": 15,
39+
"hp": 20,
5040
"baseMoveCooldown": 5,
5141
"maxMoveCooldown": 10,
5242
"damageCore": 3,
@@ -57,39 +47,15 @@
5747
},
5848
{
5949
"name": "Carrier",
60-
"cost": 125,
61-
"hp": 5,
62-
"baseMoveCooldown": 0,
63-
"maxMoveCooldown": 0,
50+
"cost": 200,
51+
"hp": 10,
52+
"baseMoveCooldown": 1,
53+
"maxMoveCooldown": 1,
6454
"damageCore": 1,
6555
"damageUnit": 1,
66-
"damageResource": 2,
56+
"damageResource": 1,
6757
"damageWall": 1,
6858
"buildType": 0
69-
},
70-
{
71-
"name": "Builder",
72-
"cost": 300,
73-
"hp": 30,
74-
"baseMoveCooldown": 2,
75-
"maxMoveCooldown": 8,
76-
"damageCore": 5,
77-
"damageUnit": 3,
78-
"damageResource": 2,
79-
"damageWall": 3,
80-
"buildType": 1
81-
},
82-
{
83-
"name": "Bomberman",
84-
"cost": 200,
85-
"hp": 40,
86-
"baseMoveCooldown": 1,
87-
"maxMoveCooldown": 10,
88-
"damageCore": 20,
89-
"damageUnit": 10,
90-
"damageResource": 5,
91-
"damageWall": 10,
92-
"buildType": 2
9359
}
9460
],
9561
"corePositions": [

config.server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"timeoutTicks": 3000,
1010
"timeoutMs": 60000,
1111
"clientWaitTimeoutMs": 500,
12-
"enableTerminalVisualizer": false
12+
"enableTerminalVisualizer": true
1313
}

0 commit comments

Comments
 (0)