Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s4ichi/sat_solver
CRuby library
https://github.com/s4ichi/sat_solver
Last synced: 13 days ago
JSON representation
CRuby library
- Host: GitHub
- URL: https://github.com/s4ichi/sat_solver
- Owner: s4ichi
- Created: 2014-08-02T16:52:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-02T22:24:03.000Z (over 10 years ago)
- Last Synced: 2023-08-19T17:28:01.129Z (about 1 year ago)
- Language: C++
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```