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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2aaa74ed4dcd02533ea8a1930192aa9922c493fedaae4f54ef451c398d5b8d10
4
- data.tar.gz: 26695283d3b9052b51e74041a2dcb119eef6b2146eb2c455a30b43fa0f2faee8
3
+ metadata.gz: 142d0e03da9022f5d873efb10f7afdb33da950bdbe1d13140e71dc30bb6dd31e
4
+ data.tar.gz: 7621746e54d4f3be4ba98b8e933d9d427386c6cbf0167a19408a8b89c7c5e4b1
5
5
  SHA512:
6
- metadata.gz: 4beb10037a3cf7d88b0304a679042bd5cfb5afed1f55cc9d6e2409899494b953e4f3e1e85c308736a8aad14b8ccef825e01bbbdeda5122707c20dd0c1a1328fd
7
- data.tar.gz: f7deb6c6ff1213f4db2e96cdd3550299a1658a5b8954154939341c542e7e9c96383d53b3558a4c6e9d3181327c55d9b540026ce881350400ec8e74a21b7aa724
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wordle_decoder (0.1.5)
4
+ wordle_decoder (0.1.6)
5
5
  cli-ui (~> 1.5)
6
6
 
7
7
  GEM
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class WordleDecoder
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
@@ -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 { |c| char_at_index(c, index, commonality) }
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.6
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-03-19 00:00:00.000000000 Z
11
+ date: 2022-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cli-ui