4 ms·
I love it, thanks for sharing. Is the confidence a percentage? How is it determined?
by yaps8 5y ago
I love it, thanks for sharing. Is the confidence a percentage? How is it determined?
- mattlock 5y agoYeah, you can think of it as a percentage. The min is 1 and the max is 99. It could be 100, but I don't trust my mostly untested side project that much, so I cut it off at 99 :) The base confidence score is determined based on how many words a guess technically could be, that's here - https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaacd14aab0c8a0971fe1bbb43a76ad5ff8/lib/wordle_decoder/word_position.rb#L32 https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaac... Then, I sort of just willy nilly add/subtract from that based on the "intrinsic" score of the word which is computed here - https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaacd14aab0c8a0971fe1bbb43a76ad5ff8/lib/wordle_decoder/word.rb#L11 https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaac... and then the "contextualized" score AKA how well it works with other words, which is computed here - https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaacd14aab0c8a0971fe1bbb43a76ad5ff8/lib/wordle_decoder/guess.rb#L55 https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaac...