README.md in ga-0.1.0 vs README.md in ga-0.1.1

- old
+ new

@@ -29,11 +29,10 @@ * `Unit#initialize(genome)` need copy genome * `Unit#fitness` return fitness * `Unit#fitness=` #set fitness * `Unit#cross!(target_unit)` * `Unit#mutate!` -* `Unit#<=>(target_unit)` ``` class Unit include GA @@ -61,19 +60,15 @@ (rand(3) + 1).times do i = rand(3) genome[i] = (genome[i] + rand(3)) % 3 end end - - def <=>(target) - self.fitness <=> target.fitness - end end ``` ### Evolve -`Unit#evolve(total_units, generations, crossover_rate, variation_rate)` return latest units +`Unit#evolve(total_units, generations, crossover_rate, muration_rate)` return latest units ``` units = Unit.evolve(32, 100, 0.8, 0.15) best = units.max ```