Skip to content

Commit

Permalink
Merge branch 'main' into Debug--#4
Browse files Browse the repository at this point in the history
  • Loading branch information
caelum02 authored Oct 23, 2023
2 parents c331488 + f7ba921 commit eabac62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from jux.env import JuxEnv
from jux.config import JuxBufferConfig
from jux.state import State
from jux.actions import JuxAction

def replay_run_early_phase(jux_env: JuxEnv, state: State, lux_actions):
"""
Expand All @@ -17,7 +18,7 @@ def replay_run_early_phase(jux_env: JuxEnv, state: State, lux_actions):

# Bid Step
bid, faction = jux.actions.bid_action_from_lux(next(lux_actions))
state, (obs, rwd, dones, infos) = jux_env.step_bid(initial_state, bid, faction)
state, (obs, rwd, dones, infos) = jux_env.step_bid(state, bid, faction)

# Factory Placement Step
while state.real_env_steps < 0:
Expand Down

0 comments on commit eabac62

Please sign in to comment.