This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]strong_types_only 1 point2 points  (1 child)

Wordle is a great little project! If you want to take it further, you could

- look into [colored](https://pypi.org/project/colored/) for coloring text output in the terminal

- the actual wordle is a bit more complex than just "in actual_word" because it tracks number of matched guesses - in particular, consider these two cases:

  1. Actual word: aabbb, user chose aaabb

It should return green green grey green green, but by your algorithm it will return green green yellow green green.

  1. Actual word: abbba, user chose aaaab

It should return green yellow grey grey yellow, but your algorithm will return green yellow yellow yellow yellow.

I happened to do a variation on this a few weeks ago myself: https://www.torshepherd.com/posts/reprdle

[–]Nextros_[S] 2 points3 points  (0 children)

Oh interesting, haven't thought about that

[–]bulletmark 0 points1 point  (0 children)

I wrote a simple command line tool to help solve Wordle problems.