more to it?

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !

more to it?

Postby Phil Last on Thu Feb 03, 2022 10:10 am

wordle←{('black' 'yellow' 'green')[⍺(∊+=)⍵]}
User avatar
Phil Last
 
Posts: 624
Joined: Thu Jun 18, 2009 6:29 pm
Location: Wessex

Re: more to it?

Postby StefanoLanzavecchia on Sat Feb 05, 2022 8:23 am

How about:
Code: Select all
      'stars' wordle 'steam'
 green  green  yellow  black  yellow
?
Shouldn't it be:
Code: Select all
 green  green  yellow  black  black
?
Don't you need a progressive membership?
User avatar
StefanoLanzavecchia
 
Posts: 109
Joined: Fri Oct 03, 2008 9:37 am

Re: more to it?

Postby Phil Last on Sat Feb 05, 2022 10:20 am

This was what I was thinking. (∊+=) does exactly what the help implies. The game as implemented doesn't.
      .
┌───┬───┬───┬───┬───┐
│ W │ E │ A │ R │ Y │
└───┴───┴───┴───┴───┘
The letter W [green] is in the word and in the correct spot.

┌───┬───┬───┬───┬───┐
│ P │ I │ L │ L │ S │
└───┴───┴───┴───┴───┘
The letter I [yellow] is in the word but in the wrong spot.

Unfortunately the help dodges the issue by referring to the "I" rather than the "L"

I think most would agree that in:
      'buses' wordle 'steam'
black black yellow yellow yellow
both "S"s are in the wrong place
User avatar
Phil Last
 
Posts: 624
Joined: Thu Jun 18, 2009 6:29 pm
Location: Wessex


Return to APL Chat

Who is online

Users browsing this forum: No registered users and 1 guest