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.
56
questions
0
votes
0
answers
21
views
IndexError: Cannot choose from an empty sequence Python
I'm having an issue with an index error in a AI which can play wordle. The AI can run through a couple of attempts at words, getting them right, but will usually mess up on the 3rd simulation and ...
0
votes
0
answers
49
views
Removing impossible words from list to solve wordle
I am making a Wordle AI bot and need some help. My bot isn't fancy just removes words it cant be based on the feedback from previous turn, then pick a random word from the possible words for the next ...
-1
votes
0
answers
9
views
How do I do this (Unity)
I have a question that I am stuck on. If a letter is used twice in the guessed word and exists only once in the word to be found, then only one letter in the return string is marked. In case one of ...
0
votes
3
answers
72
views
RecyclerView onclick listener is not responsive
I'm currently working on a Wordle clone with Kotlin. So far I've finished building the keyboard with RecyclerView, but there are some issues with the onClick event listener, it's not very responsive. ...
0
votes
1
answer
57
views
Duplicate verification in Wordle clone
I'm working on a Wordle clone, and I'm having an issue with comparing the user input with the correct word.
For anybody unfamiliar with the verification process of Wordle; the user inputs a 5 letter ...
0
votes
0
answers
18
views
How to Preprocess Data for a Sequential RNN Wordle Solver
I'm teaching myself the basics of deep learning, and decided to test my understanding by creating a neural network that can solve Wordle puzzles. My plan is to implement an RNN that inputs a list of ...
-2
votes
2
answers
49
views
How can I make my program restart depending on the user's response to a prompt?
My code is basically a command-line version of the game wordle. After the game ends I need it to ask the player if they want to keep playing. If they say yes the program should restart.
I have tried ...
0
votes
1
answer
90
views
FOR loop in function exists before ending
I know there are already countless clones of Wordle. Nevertheless I try to program my own version.
In the function is_real_word it should be checked whether the entered word of the user occurs in the ...
0
votes
1
answer
63
views
How to get only one letter to change color
This is my code for a wordle game.
when my code runs and say the target_word is a word with no double letters like Bread. But if the person enters a word with double letters like Breed then then I ...
-1
votes
2
answers
32
views
How can I programmatically change include lay-out for java android?
How can I programmatically change
layout="@layout/keyboard"
with another lay-out layout="@layout/play_again". Or is there a better way of doing this?
<include
android:id=...
-1
votes
1
answer
40
views
Getting IndexOutOfBounds exceptions with Arraylist in a Loop
I am making a game similar to Worldle.
I am trying append input to an Arraylist each time the loop executes.
While also trying to keep the format of wordle (testnum and testnum2). I am quite new to ...
0
votes
3
answers
45
views
pygame returns string index error when assigning colour
I am trying to create a wordle clone in pygame. My function to determine the colour of letters (determine_colour) is currently posing the following error:
Traceback (most recent call last):
File &...
1
vote
1
answer
36
views
pygame user input does not render after hitting enter
I am trying to create a wordle clone in python. I am not very experienced with pygame, and am trying to set up user input in the small grey boxes on the screen. However, the code I am using will ...
0
votes
0
answers
39
views
Can't change colored tiles in Wordle
I have to make a wordle clone using React and I have it basically all figured out except for the fact that I cannot change the colors of the tiles to coordinate with the correct word. Any help would ...
2
votes
2
answers
267
views
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:
...
0
votes
2
answers
45
views
Decreasing the run time of a function
For a school project I have to program a Wordle game. Now, I'm pretty much done with it, but there's still one requirement I need to complete. A certain function needs finish within 1 second, hoewever ...
2
votes
1
answer
62
views
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 ...
0
votes
0
answers
107
views
How to make tab focus buttons available in VoiceOver (Accessibility) mode only
I'm using ReactJS and I have a lot of <button> in my code. I notice that I can use the Tab key to move over the button and there will be an outline on focused button like this:
But on this ...
0
votes
1
answer
104
views
querySelectorAll only gives output for one div in grid after forEach() loop
Recently, I have been trying to create a wordle game but with 8 letters, and it has been going well, though, when I input my answer into the div boxes, only the first div gets a response when I click ...
0
votes
0
answers
62
views
QuerySelector only functioning for one ID, multiple values give no output [duplicate]
Recently, I have been trying to create a wordle game but with 8 letters, and it has been going well, though, when I input my answer into the div boxes, only the first div gets a response when I click ...
0
votes
1
answer
97
views
How to make multiple contenteditable divs turn green if word is correct?
I have been trying to creating a wordle game for some time now, but I do not know how I would make it so if the word that the user inputs is correct, the boxes turn green. Same thing if the user ...
0
votes
0
answers
130
views
How Can I Implement Local Storage Into My Wordle Clone?
I'm currently working on a Wordle clone and I have the majority of the game set up. I'm trying to implement a local save feature so that the players' progress does not disappear after they refresh the ...
2
votes
0
answers
164
views
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 ...
0
votes
0
answers
45
views
Algorithm to select new element from array everyday (Wordle)
Like Wordle, I’m trying to implement an algorithm to select a new element from an array everyday.
My current algorithm is as:
function getRandomElement(): string {
const epochMS = new Date(2022, 0)....
0
votes
0
answers
65
views
Why am i getting this error using the useeffect hook?
So I`m following this tutorial https://www.youtube.com/watch?v=WDTNwmXUz2c&t=4351s and I'm stuck in the minute 1:10 because when I use the useEffect hook I get this error: Uncaught (in promise) ...
0
votes
0
answers
30
views
For loop to analyze every item in an array not analyzing well. (For wordle solver)
def remOra(guess, words, index):
newList = []
for word in words:
if (guess[index] != word[index]) and (guess[index] in word):
newList.append(word)
return newList
Guess ...
1
vote
0
answers
37
views
unable to fix and find errors
name errors and unboundlocalerrors keep occurring and i have no idea what is wrong as all variables seem to be defined. also when i run the code, it does not output what i want it to and often outputs ...
0
votes
0
answers
32
views
Element getting removed from every object in nested list unintentionally [duplicate]
Creating a wordle clone in python, and came up with the bug that whenever I check the player's current attempt to a list containing the correct answer for how many attempt they're allowed (Ex. ["...
0
votes
2
answers
171
views
Is there a way to fix my python Wordle program?
I am new to python and am building a wordle program in simple python. I will attach the code below:
(Note- to understand this question you will have to be familiar with the game "Wordle" (...
0
votes
1
answer
43
views
How do I get long lists of information into an array?
I am trying to build a variation of wordle in javascript+html and I need the list of all the possible wordle words in an array. I have the words in a list like this that includes all of the several ...
-1
votes
3
answers
769
views
Duplicate letters in wordle
For a school project I have to create a wordle in Python. The program I created compares the letters of the target word and the guessed word. An example: the target word is "compulsory" and ...
1
vote
1
answer
159
views
I'm making a Wordle game with Javascript, but I've come across an error that I've been struggling with for hours
I'm making a Wordle game with JavaScript. However, the ID in the UPDATE function doesn't work even though the ID I used before is full.
I tried changing the id, it didn't work. Because it returns
...
2
votes
1
answer
171
views
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 ...
1
vote
1
answer
452
views
For a wordle clone on code.org, how can I make it so that words that are in the right spot/in the word turn yellow?
So I am making a wordle clone in code.org using the dataset, yet I am facing two issues.
The first issue is that when I console.log the correct answer, sometimes it says "null" and other ...
1
vote
1
answer
36
views
Increase Speed of Wordle Bot (General For Any Programming Language)
I am working on a Wordle bot to calculate the best first (and subsequent) guess(es). I am assuming all 13,000 possible guesses are equally likely (for now), and I am running into a huge speed issue.
I ...
0
votes
1
answer
28
views
How do I detect if a variable from the 1st list is equal to another variable in the 2nd list except for the nth variable in the other list?
Sorry if this sounds dumb but I have 2 lists, one is randomly generated and one is inputted by the user. How do I check if one variable inputted by the user is in the other list except for a specific ...
0
votes
0
answers
73
views
How can I account for multiple of the same letter in my wordle game
I'm currently trying to code a wordle game but whenever multiple of the same letter appear in the word i'm inputting but less times in the word i'm trying to guess, all instances of the letter, unless ...
1
vote
2
answers
242
views
splitting a word in a string into each letter
So i am basically trying to make wordle in java(if you don't know what it is look it up its a fun word game), and I have a text file of a bunch of words. I randomly pick 1 of the words using a bufferd ...
2
votes
2
answers
675
views
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&...
1
vote
2
answers
61
views
How to use IN to check if an element is inside a string and avoid to compare duplicate element with Python
I have a string ORIGINAL = 'ready' and a word_list = ['error', 'radar', 'brave'].
I use a nested forloop to check if each letter of every word in the word_list is in ORIGINAL. If True, modify the ...
0
votes
1
answer
67
views
Termcolor returning strange string of characters
I'm trying to build my own version of Wordle, and I've gotten stuck here. This part of the code is meant to color the appropriate character green when it matches the position and letter of the secret ...
0
votes
3
answers
911
views
I am trying to compare the letters in two words however duplicate letters is causing the program to not work as intended [Python]
I am trying to build a wordle solver as a self project however I got stuck in a small part of my code. The method that checks for each letter in both the choice word and the guess work and color codes ...
1
vote
2
answers
113
views
Can i make this code more efficient / shorter to run?
So Im pretty new to javascript and coding in general. Im making a Wordle algorithm just for fun to build my skills in coding. and while making this algorithm i realized that i was going to have to ...
0
votes
2
answers
110
views
Where would I be able to locate the word bank or all the possible words inside of this code in Scratch for a remake of Wordle
Basically, I am trying to create my own game of wordle in scratch but I got stuck on where I need to make a list of possible words, so they cannot just type in all random letters, so all words they ...
0
votes
2
answers
210
views
Optimizing Wordle Bot with Python - Search for a word that contains a, b, and c?
I have been working on writing a Wordle bot, and wanted to see how it preforms with all 13,000 words. The problem is that I am running this through a for loop and it is very inefficient. After running ...
0
votes
0
answers
31
views
How to get string response from console request?
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chromedriver = 'C:/Users/Darsh Gandhi/Documents/MyPrograme/chromedriver/chromedriver.exe'
driver = webdriver....
1
vote
0
answers
434
views
How to handle multiple letters in a Wordle game
I'm making a Wordle type game (you guess a word, if your guess has the right letter in the right spot the guessed letter should go green, if it is the right letter but the wrong spot it shoulod go ...
2
votes
3
answers
1k
views
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) => {
...
1
vote
1
answer
74
views
C++ Hiding an Input Whilst its Being Typed in Windows Console
I'm pretty new to C++, and I'm trying to code a Wordle-like game, for 2 players using Visual Studio, to run in the windows cmd.
I want the user string input to be replaced with a '' or '*' character/...