Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/s4ichi/sat_solver

CRuby library
https://github.com/s4ichi/sat_solver

Last synced: 13 days ago
JSON representation

CRuby library

Awesome Lists containing this project

README

        

sat_solver
==========

CRuby library

```ruby
require 'SATSolver'

true_case = SatSolver.new.solve(3, [[1, -2], [2, 3], [-3, -1]])

puts true_case

#return
# -> [true, true, false]
#

false_case = SatSolver.new.solve(2, [[1, 2], [1, -2], [-1, 2], [-1, -2]])

puts false_case

#return
# -> false
#

#if your input is mistake
#return
# -> nil
```