Minor refactoring to kill various Rubocop warnings

This commit is contained in:
Maruno17
2021-12-17 20:29:47 +00:00
parent b5ee1b211d
commit 5dc64f1709
46 changed files with 145 additions and 151 deletions

View File

@@ -32,7 +32,7 @@ class Battle::AI
n += 1
end
return 0 if n<2
mean = sum.to_f/n.to_f
mean = sum.to_f / n
varianceTimesN = 0
choices.each do |c|
next if c[1]<=0