Skip to content

Commit

Permalink
Add solve task.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Nov 24, 2012
1 parent 053ff06 commit dd08732
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Rakefile
Expand Up @@ -10,3 +10,8 @@ task :default => :specs
task :specs do
sh "rspec sudoku_spec.rb"
end

task :solve, [:puzzle] do |t, args|
fail "Provide puzzle name" if args.puzzle.nil?
sh "ruby sudoku.rb puzzles/#{args.puzzle}.sud"
end

0 comments on commit dd08732

Please sign in to comment.