This gem validates sudoku grids. A sudoku grid is a 9x9 grid such that each column, each row and each of the nine 3x3 grids that compose the grid contain all of the digits from 1 to 9.
The gem provides three possible responses: The sudoku is valid. The sudoku is valid, but incomplete. The sudoku is invalid.
Add this line to your application's Gemfile:
gem 'validator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install validator
To use the validator, enter the following at the command line: validator validate_grid path/to/file/containing_sudoku_grid
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request