Too late: https://github.com/zspencer/genetic-sudoku-solver/pull/12


--  
Zee


On Saturday, January 26, 2013 at 7:15 PM, Bill Tozier wrote:

> In lib/sudoku/puzzle/choice_vector.rb:
> > - def me(other_vector) > - Sudoku::Puzzle::ChoiceVector.new values > + def false(argument_vector) > + Sudoku::Puzzle::ChoiceVector.new values.collect {false} > + end > + > + def true(argument_vector) > + Sudoku::Puzzle::ChoiceVector.new values.collect {true} > + end > + > + def and(argument_vector) > + apply_operator(:&, argument_vector) > + end > + > + def nand(argument_vector) > + Sudoku::Puzzle::ChoiceVector.new apply_operator(:&, argument_vector).values.collect {|v| !v}  
>  
> On Jan 26, 2013, at 7:13 PM, Zee <notifications@github.com (mailto:notifications@github.com)> wrote: No, I'm reacting to the fact that if I search for values.collect {|v| !v} in this file I get 8 different sets of the same code.  
> Got it. That I can extract! Bill Tozier Line Vague Innovation, LLC bill@vagueinnovation.com (mailto:bill@vagueinnovation.com)
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/zspencer/genetic-sudoku-solver/pull/11/files#r2785683).