
Wordle 239 2/6*
:large_green_square::black_large_square::large_yellow_square::black_large_square::black_large_square: :large_green_square::large_green_square::large_green_square::large_green_square::large_green_square:

Spoiler alert:
I don’t think this one is really a meaningful word.

Wordle 239 4/6
:large_yellow_square::black_large_square::black_large_square::large_green_square::black_large_square: :black_large_square::black_large_square::large_yellow_square::black_large_square::black_large_square: :black_large_square::large_yellow_square::black_large_square::black_large_square::black_large_square: :large_green_square::large_green_square::large_green_square::large_green_square::large_green_square:

Wordle 239 4/6
:large_green_square::black_large_square::large_yellow_square::black_large_square::black_large_square: :black_large_square::black_large_square::large_yellow_square::black_large_square::black_large_square: :large_green_square::large_yellow_square::black_large_square::large_yellow_square::black_large_square: :large_green_square::large_green_square::large_green_square::large_green_square::large_green_square:

It’s a small bird. But you didn’t play Rackedle words!

This one was shared earlier by an avid player :slightly_smiling_face: https://racket.slack.com/archives/C06V96CLD/p1644156814969069?thread_ts=1644156814.969069&cid=C06V96CLD\|https://racket.slack.com/archives/C06V96CLD/p1644156814969069?thread_ts=1644156814.969069&cid=C06V96CLD


Oh, sorry for the duplication…

Hmm… Robin from Batman and Robin also has a red chest.

So the question is: why did you play this as second guess if you didn’t know it was even a word? :slightly_smiling_face:

Yeah it’s a gamble for sure. Looking forward to observing how it plays out

after RAISE, I want to try a word with O and N, with R as the first character. Robin is the first word that comes to my mind, so I tried it, expecting that it will get rejected for not being in the dictionary. But it’s green….

ROUND might have been better?

Plus it’s a Rackedle word!

it needs an I. I’m playing the hard mode

Aha, right

ROIND?:yum:

Wordle 239 5/6
:white_large_square::large_yellow_square::white_large_square::white_large_square::white_large_square: :white_large_square::white_large_square::white_large_square::white_large_square::large_yellow_square: :large_green_square::large_yellow_square::white_large_square::large_yellow_square::white_large_square: :large_green_square::large_green_square::large_yellow_square::white_large_square::white_large_square: :large_green_square::large_green_square::large_green_square::large_green_square::large_green_square:

Thanks to wordle, now I have learned robin is a bird.

Wordle 239 4/6*
:white_large_square::white_large_square::white_large_square::large_yellow_square::white_large_square: :white_large_square::white_large_square::large_yellow_square::white_large_square::large_yellow_square: :white_large_square::large_yellow_square::large_yellow_square::large_yellow_square::large_green_square: :large_green_square::large_green_square::large_green_square::large_green_square::large_green_square:

A wordle a day keeps the dictionary away

List suffices anyway. Who needs dictionary.

I have a puzzle - well a bug somewhere.
In Sketching all drawing operations draws to the current drawing context, which is stored in a parameter current-dc
.
So (stroke "yellow")
(line 0 0 100 100)
draws a yellow line to the current drawing context.
In order to draw somewhere else, one can use parameterize
. But I seem to have broken parameterize
somehow?!
Currently this test: (define old-dc (current-dc))
(parameterize ([current-dc screen-dc])
1)
(stroke "yellow")
(line 0 0 100 100)
draws the yellow line to screen-dc
rather than to “old-dc”.
This test: (define old-dc (current-dc))
(parameterize ([current-dc screen-dc])
1)
(current-dc old-dc)
(stroke "yellow")
(line 0 0 100 100)
works as expected.
Any ideas wrt what I have to look for?

Complete example: #lang sketching
(require racket/set racket/list
(only-in racket/gui bitmap% bitmap-dc%)
(only-in sketching/parameters current-dc))
(define screen-bm (make-object bitmap% 200 200))
(define screen-dc (new bitmap-dc% [bitmap screen-bm]))
(define (setup)
(background 0))
(define (draw)
(define old-dc (current-dc))
(parameterize ([current-dc screen-dc])
1)
; (current-dc old-dc) ; works as expected if this is uncommented
(stroke "red")
(line 0 0 100 100))
; evaluate screen-bm in the repl to see the bitmap

I found the problem.
Since current-dc
is accessed frequently, I did the following:
(define dc #f)
(define current-dc (make-parameter #f (λ (x) (set! dc x) x)))
But parameterize
doesn’t call the guard when it reinstates the previous value. So I just need to set dc
to fix my problem. (And hide it in a with-dc
).

that’s one way to break parameters indeed :slightly_smiling_face:

I simply forgot I had made that optimization. I knew at the time there were a potential problem and even made a comment :slightly_smiling_face: Ah well, the next time I do something similar, I’ll make a with-dc
at once.

Here is a challenge for the Wordle fans:



:joy:

Oh wow, I did not know that’s how Wordle handled multiple letters !! I had a “todo” item to make use of info relating to multiple letters, but then I deleted it because I didn’t think Wordle gave away that info.

It’s my son’s name and I didn’t get it until the 4th answer :disappointed: