Skip to content

Commit ba5f2e1

Browse files
committed
update server prioritizes first action
1 parent 1425a3c commit ba5f2e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def GetPlayerActions(self, state: pb2.State):
4444
if state.world_model.self.is_goalie:
4545
actions.append(pb2.PlayerAction(helios_goalie=pb2.HeliosGoalie()))
4646
elif state.world_model.self.is_kickable:
47+
# First action has the highest priority
48+
actions.append(pb2.PlayerAction(helios_shoot=pb2.HeliosShoot()))
4749
actions.append(pb2.PlayerAction(helios_offensive_planner=pb2.HeliosOffensivePlanner(lead_pass=True,
4850
direct_pass=True,
4951
through_pass=True,
@@ -55,7 +57,6 @@ def GetPlayerActions(self, state: pb2.State):
5557
cross=True,
5658
server_side_decision=False
5759
)))
58-
actions.append(pb2.PlayerAction(helios_shoot=pb2.HeliosShoot()))
5960
else:
6061
actions.append(pb2.PlayerAction(helios_basic_move=pb2.HeliosBasicMove()))
6162
else:

0 commit comments

Comments
 (0)