Skip to content

Commit f058bc1

Browse files
committed
prioritize first action
1 parent 0eeed0b commit f058bc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def GetPlayerActions(self, state: State):
4444
if state.world_model.myself.is_goalie:
4545
actions.append(PlayerAction(helios_goalie=HeliosGoalie()))
4646
elif state.world_model.myself.is_kickable:
47+
# First action is the most important one
48+
actions.append(PlayerAction(helios_shoot=HeliosShoot()))
4749
actions.append(PlayerAction(helios_offensive_planner=HeliosOffensivePlanner(lead_pass=True,
4850
direct_pass=True,
4951
through_pass=True,
@@ -53,8 +55,7 @@ def GetPlayerActions(self, state: State):
5355
simple_shoot=True,
5456
simple_dribble=True,
5557
cross=True,
56-
server_side_decision=True)))
57-
actions.append(PlayerAction(helios_shoot=HeliosShoot()))
58+
server_side_decision=False)))
5859
else:
5960
actions.append(PlayerAction(helios_basic_move=HeliosBasicMove()))
6061
else:

0 commit comments

Comments
 (0)