Closed bzimmer closed 1 year ago
{
"secret": "start",
"strategy": "frequency",
"rounds": [
{
"dictionary": 12947,
"next": "starn",
"scores": [
"SoARe"
],
"words": [
"soare"
],
"success": false
},
{
"dictionary": 31,
"next": "stark",
"scores": [
"SoARe",
"STARn"
],
"words": [
"soare",
"starn"
],
"success": false
},
{
"dictionary": 4,
"next": "starr",
"scores": [
"SoARe",
"STARn",
"STARk"
],
"words": [
"soare",
"starn",
"stark"
],
"success": false
},
{
"dictionary": 3,
"next": "stars",
"scores": [
"SoARe",
"STARn",
"STARk",
"STARr"
],
"words": [
"soare",
"starn",
"stark",
"starr"
],
"success": false
},
{
"dictionary": 2,
"scores": [
"SoARe",
"STARn",
"STARk",
"STARr",
"STARs"
],
"words": [
"soare",
"starn",
"stark",
"starr",
"stars"
],
"success": false
},
{
"dictionary": 1,
"scores": [
"SoARe",
"STARn",
"STARk",
"STARr",
"STARs",
"START"
],
"words": [
"soare",
"starn",
"stark",
"starr",
"stars",
"start"
],
"success": true
}
]
}
If the words list all have a hamming distance of 1 compared to their neighbor but they are not a guessing game the game never converges.
2023-01-09T20:46:02+01:00 DBG speculate with=["acock","kiack","clack","cacks","chack","clock","kacks","cacky","chock","click","cocks","crack","klick","kyack","chick","cocky","crock","kicks","crick","kicky","knack","knock","cleck","cluck","check","chuck","kecks","cruck","cocci","cocco"] words=["check","cheek","cheep","wheep"]
~/Development/src/github.com/bzimmer/qordle (speculate) > ./bin/auto-play.zsh
task: [dist] mkdir -p /Users/bzimmer/Development/src/github.com/bzimmer/qordle/dist
task: [build] go build -o /Users/bzimmer/Development/src/github.com/bzimmer/qordle/dist/qordle cmd/qordle/*.go
task: [build] go build -o /Users/bzimmer/Development/src/github.com/bzimmer/qordle/dist/qordled cmd/qordled/*.go
2023-01-10T06:48:21+01:00 INF reading from stdin
2023-01-10T06:48:24+01:00 ERR game never converged secret=mummy
2023-01-10T06:48:28+01:00 ERR game never converged secret=joker
2023-01-10T06:48:31+01:00 ERR game never converged secret=puppy
2023-01-10T06:48:35+01:00 ERR game never converged secret=belle
2023-01-10T06:48:38+01:00 ERR game never converged secret=guppy
2023-01-10T06:48:40+01:00 ERR game never converged secret=gummy
+--------+--------+---------+---------+
| secret | rounds | success | elapsed |
+--------+--------+---------+---------+
| briar | 1 | false | 2 |
| brawn | 1 | false | 2 |
| brain | 1 | false | 2 |
| urban | 1 | false | 2 |
| orbit | 1 | false | 2 |
| begin | 1 | false | 2 |
| cairn | 1 | false | 2 |
| brown | 1 | false | 2 |
+--------+--------+---------+---------+
In the case the secret word is
layer
, the algorithms fail to identify the secret quickly because so many words have a similar construction. In this case, if the edit distance for all the remaining words is 1 then find a word which has as many of remaining letters as possible for the next guess.