Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sudokusolver_ng

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sudokusolver_ng

  • 2.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

sudokusolver_ng

Commandline program and library for solving Sudoku puzzles

Build Status

History

This software was translated from the python source code obtained from Peter Norvig's website:

http://www.norvig.com/sudoku.html http://www.norvig.com/sudo.py

Thank you to Peter Norvig for the original python source code, algorithms and exceptionally clear explanations.

All this work was done by Martin-Louis Bright, and then gemified and converted to Ruby 1.9 by Kasper Grubbe. The original project is called "sudokusolver" and is available from Rubygems here: https://rubygems.org/gems/sudokusolver, this is a fork moved to Github.

Install

Add this to your Gemfile:

gem 'sudokusolver_ng'

And remember to bundle

Usage

require 'sudokusolver_ng'

# The puzzle representation is simply the 9 rows of the Sudoku grid stringed together
# from top to bottom (periods representing blank squares)

puzzle = "4.....8.5.3..........7......2.....6.....8.4......1.......6.3.7.5..2.....1.4......"
s = SudokuSolverNg.new
s.print_grid(s.search(s.parse_grid(puzzle)))

FAQs

Package last updated on 17 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc