Skip to content

Commit

Permalink
Merge pull request #3 from pusewicz/acc-uses-integers
Browse files Browse the repository at this point in the history
Accumulator uses integers only
  • Loading branch information
pusewicz authored May 7, 2024
2 parents 1bd89b1 + d9066e8 commit 6ebe2ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wave_function_collapse/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ def find_lowest_entropy
if ce < min_e
min_e = ce
acc.clear
acc << cc
acc << i
elsif ce == min_e
acc << cc
acc << i
end

i += 1
end
acc.sample
ucg[acc.sample]
end
end
end

0 comments on commit 6ebe2ef

Please sign in to comment.