Skip to content

Commit

Permalink
use union instead of intersect for possible tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 10, 2020
1 parent 90043dc commit 99ebedc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Wave.elm
Expand Up @@ -203,7 +203,7 @@ propagateInDirection source cell direction ( Wave wave, todo ) =
remaining_
|> Set.toList
|> List.filterMap (\value -> Dict.get ( value, direction ) wave.rules)
|> List.foldl Set.intersect Set.empty
|> List.foldl Set.union Set.empty

reduced =
Set.intersect remaining possibleInDirection
Expand Down

0 comments on commit 99ebedc

Please sign in to comment.