glimmer_wordle 1.1.0 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 450dbdcb851754bb9e443dce3511a31fe46d275ecc4db7edcbd1b4eca30322f0
4
- data.tar.gz: 5f8e3c63f36d914e2b15ab21eb386c2b7bbb4bbd897172dcf19b454d0a901dd4
3
+ metadata.gz: 81908a883313d3698443f2014abfa0b4f842843e9a9cec67cb0d89ee0771cae8
4
+ data.tar.gz: 1561702e4b94ff59217e0f017f9ef64bbf085155b41677f90a6fb5d7e5103694
5
5
  SHA512:
6
- metadata.gz: 961b5ec85887d1fe92a444dfc292985ef60ac4ebcd04916702c8bc66c4afe861bce3c958380ce3179913789fecd961507f73cdcecdfe663b06dad228f16c280e
7
- data.tar.gz: 35055490ab7a0ceb7e5c6001cd814478fc181f648a7fa6ed2ab815e04182859d3695c0ee327cdf8266998eb741e9c8db0fda1cd5cbc66f6da387e9037c7180b5
6
+ metadata.gz: 1fcd56e450e92c31270e328eb89718cfbc1b337eb70eeda8d4253c8d2cc857aa9b4510bcbe3ded8f01cc6586d505b5cd703c6b9c78756ede4d3c179ac7ed3d4d
7
+ data.tar.gz: 48a743663ef91bd2885fb4aaa4888626fa2a09583a19dc6a9661dc01c8eb7e0df0df6c943f8f122ac9b9e7a71180788a94f91f4907c69fcfd8414430b6e0db59
data/README.md CHANGED
@@ -1,10 +1,18 @@
1
- # <img src='https://raw.githubusercontent.com/AndyObtiva/glimmer_wordle/master/icons/linux/Glimmer Wordle.png' height=85 /> Glimmer Wordle 1.1.0
1
+ # <img src='https://raw.githubusercontent.com/AndyObtiva/glimmer_wordle/master/icons/linux/Glimmer Wordle.png' height=85 /> Glimmer Wordle 1.1.3
2
2
  ## Play Wordle Endlessly with No Limit!
3
3
  [![Gem Version](https://badge.fury.io/rb/glimmer_wordle.svg)](http://badge.fury.io/rb/glimmer_wordle)
4
4
 
5
5
  [Wordle](https://en.wikipedia.org/wiki/Wordle) word game desktop GUI app written [test-first](https://github.com/AndyObtiva/wordle/blob/master/spec/app/model/five_letter_word_spec.rb) using [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) (JRuby Desktop Development GUI Framework) as inspiration by [Kevin Newton's blog post](https://kddnewton.com/2022/01/29/solving-wordle-in-ruby.html).
6
6
 
7
- ![Wordle Screenshot](screenshots/glimmer-wordle.png)
7
+ Mac | Linux
8
+ ----|------
9
+ ![Wordle Screenshot](screenshots/glimmer-wordle.png) | ![Wordle Screenshot Linux](screenshots/glimmer-wordle-linux.png)
10
+
11
+ Other [Glimmer](https://github.com/AndyObtiva/glimmer) games:
12
+
13
+ [<img alt="Glimmer Tetris Icon" src="https://raw.githubusercontent.com/AndyObtiva/glimmer_tetris/master/package/linux/Glimmer%20Tetris.png" height=40 /> Glimmer Tetris](https://github.com/AndyObtiva/glimmer_tetris)
14
+
15
+ [<img alt="Glimmer Klondike Solitaire Icon" src="https://raw.githubusercontent.com/AndyObtiva/glimmer_klondike_solitaire/master/icons/linux/Glimmer%20Klondike%20Solitaire.png" height=40 /> Glimmer Klondike Solitaire](https://github.com/AndyObtiva/glimmer_klondike_solitaire)
8
16
 
9
17
  ## Demo
10
18
 
@@ -14,9 +22,13 @@
14
22
 
15
23
  ### Download
16
24
 
17
- [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer_wordle/master/icons/linux/Glimmer Wordle.png' height=40 /> Download Glimmer Wordle 1.1.0 DMG for Mac ARM64 Monterey and Older](https://www.dropbox.com/s/j2j5cyor90jr7rj/Glimmer%20Wordle-ARM64-1.1.0.dmg?dl=1)
25
+ [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer_wordle/master/icons/linux/Glimmer Wordle.png' height=40 /> Download Glimmer Wordle 1.1.2 DMG for Mac ARM64 Monterey and Older](https://www.dropbox.com/s/rmanrz81qfrpqq5/Glimmer%20Wordle-arm64-1.1.2.dmg?dl=1)
26
+
27
+ [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer_wordle/master/icons/linux/Glimmer Wordle.png' height=40 /> Download Glimmer Wordle 1.1.2 DMG for Mac x86_64 Catalina and Older](https://www.dropbox.com/s/ysureb9o1dky7w0/Glimmer%20Wordle-1.1.2.dmg?dl=1)
18
28
 
19
- [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer_wordle/master/icons/linux/Glimmer Wordle.png' height=40 /> Download Glimmer Wordle 1.1.0 DMG for Mac x86_64 Catalina and Older](https://www.dropbox.com/s/t6tjuzp4dhmuls9/Glimmer%20Wordle-1.1.0.dmg?dl=1)
29
+ [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer_wordle/master/icons/linux/Glimmer Wordle.png' height=40 /> Download Glimmer Wordle 1.1.3 DEB for Linux x86_64](https://www.dropbox.com/s/7jybodbf4pewhtd/glimmer-wordle_1.1.3-1_amd64.deb?dl=1)
30
+
31
+ [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer_wordle/master/icons/linux/Glimmer Wordle.png' height=40 /> Download Glimmer Wordle 1.1.3 RPM for Linux x86_64](https://www.dropbox.com/s/dfpjnquchxzl823/glimmer-wordle-1.1.3-1.x86_64.rpm?dl=1)
20
32
 
21
33
  ### Install Ruby Gem
22
34
 
@@ -36,6 +48,10 @@ Afterwards, run:
36
48
  glimmer_wordle
37
49
  ```
38
50
 
51
+ ## Process
52
+
53
+ [Glimmer Process](https://github.com/AndyObtiva/glimmer/blob/master/PROCESS.md)
54
+
39
55
  ## Contributing
40
56
 
41
57
  - Check out the latest master to make sure the feature hasn't been
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.3
@@ -21,7 +21,7 @@ class Wordle
21
21
  %w[K L M N O P Q R S],
22
22
  %w[T U V W X Y Z],
23
23
  ],
24
- querty: [
24
+ qwerty: [
25
25
  %w[Q W E R T Y U I O P],
26
26
  %w[A S D F G H J K L],
27
27
  %w[Z X C V B N M],
@@ -133,11 +133,11 @@ class Wordle
133
133
  }
134
134
 
135
135
  menu_item(:radio) {
136
- text '&Querty'
137
- selection @alphabet_layout == :querty
136
+ text '&Qwerty'
137
+ selection @alphabet_layout == :qwerty
138
138
 
139
139
  on_widget_selected {
140
- self.alphabet_layout = :querty
140
+ self.alphabet_layout = :qwerty
141
141
  rebuild_alphabet_container
142
142
  }
143
143
  }
@@ -170,25 +170,13 @@ class Wordle
170
170
  message_box(body_root) {
171
171
  text 'Instructions'
172
172
  message <<~MULTI_LINE_STRING
173
- Glimmer Wordle Instructions
174
-
175
173
  Make 6 guesses for a 5-letter word.
176
174
 
177
- If you enter a letter that is part of the word,
178
- and at the right location in the word,
179
- the letter will become green.
180
-
181
- If you enter a letter that is part of the word,
182
- but at the wrong location in the word,
183
- the letter will become yellow.
184
-
185
- If you enter a letter that is not part of the word,
186
- the letter will become red.
175
+ If you enter a letter that is part of the word, and at the right location, it becomes green,
187
176
 
188
- If you win or lose, you get to see the answer,
189
- and share the result emojis.
177
+ If you enter a letter that is part of the word, but at the wrong location, it becomes yellow.
190
178
 
191
- Happy Glimmer Wordle!
179
+ If you enter a letter that is not part of the word, it become red.
192
180
  MULTI_LINE_STRING
193
181
  }.open
194
182
  end
@@ -256,8 +244,8 @@ class Wordle
256
244
  line_width 2
257
245
  }
258
246
 
259
- @alphabet_letters << text(alphabet_character) {
260
- font style: :bold, height: 28
247
+ @alphabet_letters << text(alphabet_character, :default, [:default, OS.linux? ? 5 : 0]) {
248
+ font alphabet_font
261
249
  }
262
250
  }
263
251
  end
@@ -292,8 +280,8 @@ class Wordle
292
280
  line_width 2
293
281
  }
294
282
 
295
- @letters << text('') {
296
- font style: :bold, height: 40
283
+ @letters << text('', :default, [:default, OS.linux? ? 6 : 0]) {
284
+ font letter_font
297
285
  }
298
286
  }
299
287
  end
@@ -447,8 +435,6 @@ class Wordle
447
435
  grid_layout
448
436
  text 'Share Result'
449
437
 
450
- app_menu_bar
451
-
452
438
  label {
453
439
  layout_data :center, :center, true, false
454
440
  text 'Result is copied to clipboard!'
@@ -465,6 +451,18 @@ class Wordle
465
451
  @share_text_dialog.open
466
452
  end
467
453
 
454
+ def alphabet_font
455
+ the_font = {style: :bold, height: 28}
456
+ the_font.merge!(name: 'Helvetica', height: 21) if OS.linux?
457
+ the_font
458
+ end
459
+
460
+ def letter_font
461
+ the_font = {style: :bold, height: 40}
462
+ the_font.merge!(name: 'Helvetica', height: 30) if OS.linux?
463
+ the_font
464
+ end
465
+
468
466
  def dispose_alphabet_container_children
469
467
  @alphabet_rectangles.clear
470
468
  @alphabet_borders.clear
@@ -479,6 +477,7 @@ class Wordle
479
477
  }
480
478
  @alphabet_container.layout(true, true)
481
479
  @alphabet_container.pack(true)
480
+ update_alphabet_background_colors
482
481
  end
483
482
 
484
483
  def alphabet_layout=(value)
data/app/wordle.rb CHANGED
@@ -7,6 +7,7 @@ rescue
7
7
  # this runs when packaged as a gem (no bundler)
8
8
  require 'glimmer-dsl-swt'
9
9
  # add more gems if needed
10
+ require 'clipboard'
10
11
  end
11
12
 
12
13
  Clipboard.implementation = Clipboard::Java
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer_wordle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-28 00:00:00.000000000 Z
11
+ date: 2022-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement