print('Sudoku.py -h [or] --hard')
print('Sudoku.py -v [or] --evil')
print('Sudoku.py -b [or] --blank')
- print('Sudoku.py --file file.problem')
- print('Sudoku.py --gen 9 20')
+ print('Sudoku.py --file file.problem [--csolver]')
+ print('Sudoku.py --gen 9 20 [--csolver]')
print('All problems generated by websudoku.com')
sys.exit()
sj = csolverlb.getElementRange(solver,ej)
d = [si,sj]
domain = (c_void_p *len(d))(*d)
- equals = csolverlb.createPredicateOperator(solver, c_uint(ps.CompOp.SATC_EQUALS), domain, c_uint(2))
+ equals = csolverlb.createPredicateOperator(solver, c_uint(ps.CompOp.SATC_EQUALS))
inp = [ei,ej]
inputs = (c_void_p*len(inp))(*inp)
b = csolverlb.applyPredicate(solver,equals, inputs, c_uint(2))
sconst = csolverlb.getElementRange(solver,econst)
d = [s1,sconst]
domain = (c_void_p *len(d))(*d)
- equals = csolverlb.createPredicateOperator(solver, c_uint(ps.CompOp.SATC_EQUALS), domain, c_uint(2))
+ equals = csolverlb.createPredicateOperator(solver, c_uint(ps.CompOp.SATC_EQUALS))
inp = [elem,econst]
inputs = (c_void_p*len(inp))(*inp)
constr.append( csolverlb.applyPredicate(solver,equals, inputs, c_uint(2)))