JoeBussard / polywordleapi

the api for playing polywordle
0 stars 0 forks source link

Keyboard map listed correct letter as present #42

Closed JoeBussard closed 2 years ago

JoeBussard commented 2 years ago

`{ "public_solution": "reels", "uuid": "d28afde2-d43b-4bdb-a2ae-c2bfbbbcae15", "user_id": "Anon", "progress": "loss", "turn": 6,

"guess_history": [
    "jason",
    "fight",
    "snobs",
    "messy",
    "perks",
    "deers"
],

"guess_map": [
    [
        [
            "j",
            "absent"
        ],
        [
            "a",
            "absent"
        ],
        [
            "s",
            "present"
        ],
        [
            "o",
            "absent"
        ],
        [
            "n",
            "absent"
        ]
    ],
    [
        [
            "f",
            "absent"
        ],
        [
            "i",
            "absent"
        ],
        [
            "g",
            "absent"
        ],
        [
            "h",
            "absent"
        ],
        [
            "t",
            "absent"
        ]
    ],
    [
        [
            "s",
            "absent"
        ],
        [
            "n",
            "absent"
        ],
        [
            "o",
            "absent"
        ],
        [
            "b",
            "absent"
        ],
        [
            "s",
            "correct"
        ]
    ],
    [
        [
            "m",
            "absent"
        ],
        [
            "e",
            "correct"
        ],
        [
            "s",
            "present"
        ],
        [
            "s",
            "absent"
        ],
        [
            "y",
            "absent"
        ]
    ],
    [
        [
            "p",
            "absent"
        ],
        [
            "e",
            "correct"
        ],
        [
            "r",
            "present"
        ],
        [
            "k",
            "absent"
        ],
        [
            "s",
            "correct"
        ]
    ],
    [
        [
            "d",
            "absent"
        ],
        [
            "e",
            "correct"
        ],
        [
            "e",
            "correct"
        ],
        [
            "r",
            "present"
        ],
        [
            "s",
            "correct"
        ]
    ]
],

"efficient_key_map": {
    "plain": [
        "q",
        "w",
        "u",
        "l",
        "z",
        "x",
        "c",
        "v"
    ],
    "absent": [
        "t",
        "y",
        "i",
        "o",
        "p",
        "a",
        "d",
        "f",
        "g",
        "h",
        "j",
        "k",
        "b",
        "n",
        "m"
    ],
    "present": [
        "r",
        "s"
    ],
    "correct": [
        "e"
    ]
}

}`

JoeBussard commented 2 years ago

has to do with guess and solution comparison algorithm

JoeBussard commented 2 years ago

I reproduced this. It is listing some letters as present instead of correct.

JoeBussard commented 2 years ago

Fixed in #45