wordle 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/Gemfile.lock +1 -1
- data/README.md +6 -3
- data/lib/wordle/game.rb +1 -0
- data/lib/wordle/legend.rb +29 -0
- data/lib/wordle/version.rb +1 -1
- data/lib/wordle.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bceb772c3a50a1803ac5c31a26e2e5bed4f513fe3ed3dfcf3e49f1dc81bbe8db
|
4
|
+
data.tar.gz: ad55755d24fa6fa2a958f48b4eecec62fc1778174bf387f21ef95b3834e1908e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de15a996681e69b87c62b883acdcb7f75295d96e4eadae1f733af630bc699a8024e3579ee52d110d74c11faa17cb6339500fa884efcb6319119fb5edf15f4bba
|
7
|
+
data.tar.gz: b3949c9858e6b02234d74ef791df3acba82334ee0a4dd92bd86fb65c84bbc1c5fb76c14c59d4bf2804443afdaf9c8938de961ac2b6799eef2902ccf69fb959c7
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
Ruby implementation of [Wordle](https://www.powerlanguage.co.uk/wordle/).
|
4
4
|
|
5
|
-
<img width="
|
5
|
+
<img width="306" alt="Screen Shot 2022-01-09 at 3 38 34 PM" src="https://user-images.githubusercontent.com/22665228/148705881-bb355419-a133-40a2-b853-233ba721be22.png">
|
6
|
+
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
@@ -12,6 +13,8 @@ Ruby implementation of [Wordle](https://www.powerlanguage.co.uk/wordle/).
|
|
12
13
|
|
13
14
|
Just run `wordle` from the command line.
|
14
15
|
|
16
|
+
The word list [leaves something to be desired](https://github.com/JonathanWThom/wordle/issues/1). PRs welcome!
|
17
|
+
|
15
18
|
## Development
|
16
19
|
|
17
20
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -20,7 +23,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
20
23
|
|
21
24
|
## Contributing
|
22
25
|
|
23
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
26
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/JonathanWThom/wordle. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/JonathanWThom/wordle/blob/main/CODE_OF_CONDUCT.md).
|
24
27
|
|
25
28
|
## License
|
26
29
|
|
@@ -28,4 +31,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
28
31
|
|
29
32
|
## Code of Conduct
|
30
33
|
|
31
|
-
Everyone interacting in the Wordle project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
34
|
+
Everyone interacting in the Wordle project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/JonathanWThom/wordle/blob/main/CODE_OF_CONDUCT.md).
|
data/lib/wordle/game.rb
CHANGED
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Wordle
|
4
|
+
class Legend
|
5
|
+
def self.print
|
6
|
+
new.print
|
7
|
+
end
|
8
|
+
|
9
|
+
def print
|
10
|
+
puts green_example
|
11
|
+
puts yellow_example
|
12
|
+
puts gray_example
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def green_example
|
18
|
+
"#{'w'.green}eary - The letter w is in the word and in the correct spot."
|
19
|
+
end
|
20
|
+
|
21
|
+
def yellow_example
|
22
|
+
"p#{'i'.yellow}lls - The letter i is in the word but in the wrong spot."
|
23
|
+
end
|
24
|
+
|
25
|
+
def gray_example
|
26
|
+
"vag#{'u'.gray}e - The letter u is not in the word in any spot."
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/lib/wordle/version.rb
CHANGED
data/lib/wordle.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Thom
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- lib/wordle/game.rb
|
36
36
|
- lib/wordle/guess_analyzer.rb
|
37
37
|
- lib/wordle/guess_validator.rb
|
38
|
+
- lib/wordle/legend.rb
|
38
39
|
- lib/wordle/list.rb
|
39
40
|
- lib/wordle/version.rb
|
40
41
|
- sig/wordle.rbs
|