|
|
|
@ -123,13 +123,13 @@
|
|
|
|
|
(return-k)]))
|
|
|
|
|
(when (and forward-check? (not (equal? singlevalue _unassigned)))
|
|
|
|
|
(for ([variable (in-list variables)])
|
|
|
|
|
(when (not (variable . in? . assignments))
|
|
|
|
|
(unless (variable . in? . assignments)
|
|
|
|
|
(set! domain (hash-ref domains variable))
|
|
|
|
|
(when (not (singlevalue . in? . (domain)))
|
|
|
|
|
(unless (singlevalue . in? . (domain))
|
|
|
|
|
(set! return-value #f)
|
|
|
|
|
(return-k))
|
|
|
|
|
(for ([value (in-list (domain))])
|
|
|
|
|
(when (not (equal? value singlevalue))
|
|
|
|
|
(unless (equal? value singlevalue)
|
|
|
|
|
(send domain hide-value value))))))
|
|
|
|
|
(set! return-value #t)
|
|
|
|
|
(return-k))
|
|
|
|
|