[Community Puzzle] Wordle colorizer

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @nicof6786,validated by @_O-MEGA,@csKingBabar and @xaav.
If you have any issues, feel free to ping them.

Is it possible to have more explanations about the case where the same letter is repeated in attempt ? I can’t understand what to do in this case :frowning:

BONGO is the chosen word, the attempts are:
OOOOO → X#XX# because there are only two O’s
ONGBA → OOOOX
NNOGO → OXO## because there is only one N

Nice ! Thanks for your help !

Thank you for creating this code exercise that is both somewhat easy, and doesn’t have any hidden extraneous conditions on it! Excellent job, and I enjoyed solving this (or rather I enjoyed when my solution worked against all the test cases and validator :laughing:) :smile:

2 Likes

i am getting over the problem of how to do yellows (For example if the answer is ABCDE and the user types AAAAA it should be YGGGG instead of YYYYY)

how do i do this?

im in python

current code:

for i in range(len(attempt)):
        letter = attempt[i]
        if letter == answer[i]:
            result += "#"
        elif answer.__contains__(letter):
            result += "O"
        else:
            result += "X"
type or paste code here

Missing tags

  • Loops
  • Conditions
  • Hash Table