wordle_decoder 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -0
- data/lib/wordle_decoder/version.rb +1 -1
- data/lib/wordle_decoder/word_search.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 142d0e03da9022f5d873efb10f7afdb33da950bdbe1d13140e71dc30bb6dd31e
|
4
|
+
data.tar.gz: 7621746e54d4f3be4ba98b8e933d9d427386c6cbf0167a19408a8b89c7c5e4b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c3927f1af5e0b16acf3a40337a3a5a12b2da1d959cabec515b56cb955a2ad42311958a6e39e132834ee545393524e47e04ad5c6169ccf4df5d858da9f249910
|
7
|
+
data.tar.gz: 8e02f0dfd8b94f99d655ea2aa647b2a96aa80b6dc5545eacda109a92ac6f66157043b4f20eaef9e39a985e9eb36f37c2ec05aacb01d80c8d373c9ea3aa279eca
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.1.7] - 2022-04-02
|
4
|
+
|
5
|
+
- Don't fail when the answer contains an "x" - https://github.com/mattruzicka/wordle_decoder/issues/5
|
6
|
+
|
3
7
|
## [0.1.6] - 2022-03-20
|
4
8
|
|
5
9
|
- Updated license - [58dd8f5](https://github.com/mattruzicka/wordle_decoder/commit/58dd8f50eb1d115236c2b14a25b39e598e6955ec)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -27,6 +27,10 @@ Wordle 258 3/6
|
|
27
27
|
```
|
28
28
|
You'll then be prompted to confirm the word of the day, or if it couldn't figure it out, you'll be asked for it. After that, it'll _try_ to guess your guesses.
|
29
29
|
|
30
|
+
## Example
|
31
|
+
|
32
|
+
<img width="528" alt="Screen Shot 2022-03-19 at 4 45 59 PM" src="https://user-images.githubusercontent.com/806788/159139538-fc58bc6f-8cfe-44d1-9177-5072e42ea318.png">
|
33
|
+
|
30
34
|
## Why?
|
31
35
|
|
32
36
|
I wasn't sure if something like this was possible and thought it'd be a fun project to build. It does a pretty good job, at least some of the time... I built an excuse to play Wordle.
|
@@ -15,11 +15,11 @@ class WordleDecoder
|
|
15
15
|
less_common_letter_to_words_arrays[index][char]
|
16
16
|
when :least
|
17
17
|
least_common_letter_to_words_arrays[index][char]
|
18
|
-
end
|
18
|
+
end || []
|
19
19
|
end
|
20
20
|
|
21
21
|
def chars_at_index(chars, index, commonality)
|
22
|
-
chars.uniq.flat_map { |
|
22
|
+
chars.uniq.flat_map { |char| char_at_index(char, index, commonality) }
|
23
23
|
end
|
24
24
|
|
25
25
|
def frequency_score(word)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordle_decoder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Ruzicka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cli-ui
|