namero 0.0.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/namero/solver.rb +4 -4
- data/lib/namero/value.rb +1 -1
- data/lib/namero/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 027c27f9e7b9a2f8e9662c961c907c4cd38c1c4f6d5461bbd4ad03673604b605
|
4
|
+
data.tar.gz: 31fe4354d07c60114a714bc33a36f3800984d76ec66f78566d2bebd3d8b80dc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 478c5e53b2d38163b353cf97ae127bdc70699dc00f3010c7be1dfcb07f70479fed3ef8d0bd468c7c1d2e1ebcc772e4cd0bed853bcfd01876c10958b4a9ff228a
|
7
|
+
data.tar.gz: 2846d3036c4be2449d30d39c0ecc2a206dea9a67ee3483a8457950b8bbdb1b65958d8fce579061bd38c776f6ef5dc7b0a05dacf8ea37249b9a3ad5347bb2a64e
|
data/lib/namero/solver.rb
CHANGED
@@ -24,10 +24,6 @@ module Namero
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
private
|
28
|
-
|
29
|
-
attr_reader :board, :updated_candidate_queue, :extensions
|
30
|
-
|
31
27
|
def fill_one_candidate(idx)
|
32
28
|
v = board[idx]
|
33
29
|
return if v.candidates.size != 1
|
@@ -35,6 +31,10 @@ module Namero
|
|
35
31
|
fill_candidate_for(v)
|
36
32
|
end
|
37
33
|
|
34
|
+
private
|
35
|
+
|
36
|
+
attr_reader :board, :updated_candidate_queue, :extensions
|
37
|
+
|
38
38
|
def fill_candidate_for(v)
|
39
39
|
board[v.index, :row].each do |v2|
|
40
40
|
unless v2.value
|
data/lib/namero/value.rb
CHANGED
data/lib/namero/version.rb
CHANGED