Skip to content

Commit

Permalink
Error in initialization for box positions
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-asmar committed Oct 18, 2024
1 parent 347ba76 commit 37b6b1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/BoxPush/box_push_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,9 @@ function map_string_to_state(mg::MetaDiGraph, map_str::String, orientation::Tupl


agent_pos_1, agent_pos_2 = (0, 0), (0, 0)
small_box_pos = Vector{Tuple{Int, Int}}(undef, num_b)
large_box_pos = Vector{Tuple{Int, Int}}(undef, Int(num_B / 2))
small_box_pos = fill((0, 0), num_b)
large_box_pos = fill((0, 0), Int(num_B / 2))

small_box_counter, large_box_counter = 1, 1

for (i, line) in enumerate(lines)
Expand Down

0 comments on commit 37b6b1b

Please sign in to comment.