Skip to content

Commit

Permalink
fix breakage when room logic and genetic alg split
Browse files Browse the repository at this point in the history
  • Loading branch information
ghadishayban committed Jul 17, 2012
1 parent 8374449 commit 5e3221f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-clj/roomba/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

(defn calc-fitness
[strategy]
(let [totals (repeatedly number-of-sessions #(room/run-cleaning-session strategy))
(let [totals (repeatedly number-of-sessions #(run-cleaning-session strategy))
total-sum (reduce + totals)]
(double (/ total-sum number-of-sessions))))

Expand Down

0 comments on commit 5e3221f

Please sign in to comment.