Skip to content

Commit

Permalink
Remove wall from Sokoban state
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumagnaguagno committed Nov 16, 2023
1 parent 38a07c0 commit 85de3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/sokoban/external.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def problem(state, tasks, *args)
storage = state['storage']
deadlocks = state['deadlock'] = []
map = []
state['wall'].each {|wall,|
state.delete('wall').each {|wall,|
x, y = wall.delete_prefix('p').split('_')
(map[y.to_i] ||= [])[x.to_i] = true
}
Expand Down

0 comments on commit 85de3c5

Please sign in to comment.