Questions tagged [wordle-game]

Wordle is a word game in which players have six attempts to guess a five-letter word with feedback given after each guess as to which letters from the guess are exactly correct or correct letter in the wrong position, similar to the game Mastermind but for letters.

Excerpt from Wordle wikipedia article:

Wordle is a web-based word game developed by Josh Wardle. Players have six attempts to guess a five-letter word, with feedback given for each guess in the form of colored tiles indicating when letters match or occupy the correct position. The mechanics are nearly identical to the 1955 pen-and-paper game Jotto and the US television game show Lingo. Wordle has a single daily solution, with all players attempting to guess the same word.

Wardle initially created the game for himself and his partner to play, eventually making it public in October 2021. The game gained a large amount of popularity in December 2021 after Wardle added the ability for players to copy their daily results as emoji squares, which were widely shared on Twitter. Many clones and variations of the game were also created, as were versions in languages besides English. The game was purchased by The New York Times Company in January 2022 for an undisclosed seven-figure sum, with plans to keep it free for all players; it was moved to their website in February 2022.

83 questions
9
votes
5 answers

How to focus the next input with React

I'm creating a game like wordle and, to do this, when the user writes a letter, the app should focus the next input. I can't do this, and I don't know why. const GameLine = (props) => { const lineIndex = props.index; const checkTry…
Hugo Folloni
  • 317
  • 1
  • 2
  • 10
7
votes
3 answers

Find 5 letter words with 25 distinct characters

Solving wordle efficiently (for humans and for computers) is all the rage right now. One particular way of solving a wordle made me curious. The idea is to select 5 words that have distinct letters so you'll end up with 25 characters. If you use…
leifg
  • 8,668
  • 13
  • 53
  • 79
3
votes
1 answer

Wordle copy having trouble with duplicate letters. (Python)

I’m trying to make a copy of the game Wordle but I’m having trouble dealing with duplicate letters. Here’s my code and I explain my logic a bit below. # a portion of the code, the logical bit # def minigame(): # wordle global wordGuess …
Hamza
  • 47
  • 5
3
votes
2 answers

Wordle implementation - dealing with duplicate letters (edge case)

I am trying to create my own implementation of wordle from scratch in angular and am stuck trying to resolve one of the edge cases. Assume the word to guess for all the following cases is "CLOSE". CASE 1 - Both duplicate letters are in the wrong…
Neeraj Athalye
  • 508
  • 5
  • 26
3
votes
2 answers

Why is my Wordle solver failing when there are repeated characters?

For context Wordle is game where you have to decipher a 5 letter word in 6 or less guesses based on certain hints. The hints you get are as follows: If a character is coloured black there are no characters that match that character in the target…
Jerome
  • 734
  • 1
  • 8
  • 28
2
votes
2 answers

Wordle solver python script. Duplicate letter problem

When there's a word that has a letter more than once, if that letter is already confirmed in the right spot, but you tell it the next instance of that letter is wrong, it crashes. You can trick it into working by saying that it's just in the wrong…
2
votes
0 answers

Haskell Five Unique Wordle Words

For fun I am trying to solve the Wordle related problem Matt Parker talks about in the linked video from his channel Standup Maths in Haskell. Basically: find 5, 5-letter words that do not share any letters in common. Thus using 25 different…
dsagman
  • 481
  • 1
  • 8
2
votes
2 answers

Looping until the result is false in Prolog

I am trying to execute a loop until the output of the predicate is false using Prolog. I am implementing the "Wordle" game and here are some of the relevant predicates I am using: available_length(L):- word(W,_), %Passing through…
User2000
  • 119
  • 2
  • 8
2
votes
1 answer

How do I create and retrieve data from localStorage in this code?

I'm curious about the saving and retrieving from localStorage in Wordle and how is it implemented in React. I'm building a Wordle clone as a project but I'm having a roadblock at this point. Most of the resources I found wouldn't go into how it…
KYin
  • 439
  • 1
  • 5
  • 21
2
votes
0 answers

Duplicate letters in wordle flutter dart

The program I created compares the letters of the target word and the guessed word. An example: the target word is "compulsory" and the guessed word is "submission". The output should be "-O-O--X-O-". "X" meaning the letter in the guessed word is…
umutcan bağdu
  • 158
  • 1
  • 1
  • 9
2
votes
1 answer

Python Wordle: determine if a given string matches to a correct anagram based on position score

Let assume I have a word word = abcde And a score board to show that the position of the characters in the word is correct or not in comparison to my desired output score = [T, F, F, T, F] Where T is for correct position, F is for incorrect. So we…
1
vote
1 answer

How to handle duplicate letters in wordle

I am wondering how to handle duplicate characters in my wordle game. Here is an example of the code: wordle = "woods" user_input = input("Enter guess: ") feedback = [] for i in range(len(wordle)): if user_input[i] == wordle [i]: …
user22047030
1
vote
2 answers

Wordle program prints wrong letters, I need help debugging the issue

https://scratch.mit.edu/projects/798882651 Wordle scratch code has a bug, whenever an input is given by the user the program prints 5 of the same sprite with the same costume regardless of input. The program should print all letters in user input as…
1
vote
2 answers

How to deal with duplicate yellow letters in a wordle clone

I am trying to make a wordle clone in C, but I cannot deal with duplicate yellow letters. For example, if the master word is "apple" and the user guess is "aplle" (not an actual word, just an example), my code returns "APlLE" instead of "AP*LE".…
1
vote
0 answers

How force a reload of a page with Node.js?

For a school project, we try to code a Wordle type game. We are implementing an incremental mode where the user starts with a 3 letters long words and then have a 4's one in case of success etc ... The fact is, we have problems from the 3 letters…
1
2 3 4 5 6