{"id":284,"date":"2023-05-19T09:39:09","date_gmt":"2023-05-19T09:39:09","guid":{"rendered":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/james-neill\/?p=284"},"modified":"2023-06-01T14:46:26","modified_gmt":"2023-06-01T14:46:26","slug":"how-to-beat-your-friends-at-wordle-using-maths","status":"publish","type":"post","link":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/james-neill\/2023\/05\/19\/how-to-beat-your-friends-at-wordle-using-maths\/","title":{"rendered":"How to beat your friends at Wordle using maths"},"content":{"rendered":"\n
Wordle is an online word game available to play for free in any web browser at www.nytimes.com\/games\/wordle<\/a>. Originally developed by Josh Wardle for himself and his girlfriend, the game has exploded in popularity since its release in October 2021 and was bought by the New York Times for an undisclosed seven-figure amount in January 2022.<\/p>\n\n\n\n The goal of playing Wordle is to guess any five-letter word in only six guesses, starting with no information. After each guess, each letter in the guess will change to a different colour: green if the letter is in that position in the target word, yellow if that letter is in the target word but in a different position, and black if that letter is not in the target word. Using these clues, the aim is to find the target word in as few guesses as possible.<\/p>\n\n\n\n Wordle\u2019s rise to popularity can be explained by two key elements: only one puzzle is available each day (the same one for everyone), and that the results of each game can be easily shared on social media without spoiling the answer. This creates competition between players around each day\u2019s word and prevents players from getting bored if they were to play multiple games in succession on the same day.<\/p>\n\n\n\n When starting a game of Wordle, you have no knowledge at all about the target word. So an important question is how do you choose which word to start with? We will now investigate various possible starting words (and how to choose the words after that) using maths!<\/p>\n\n\n\n The first method we use is investigating the frequency of each letter in possible target words. There is a publicly available list of the 2309 possible target words; analysing these we see that the five most commonly appearing letters in target words are E, A, R, O, and T.<\/p>\n\n\n\n This suggests possible starting words ORATE<\/strong>, OATER<\/strong> and ROATE<\/strong>.<\/p>\n\n\n\n Another method was proposed by Tyler Glaiel in a Medium post titled \u2018The mathematically optimal first guess in Wordle<\/a>\u2019. He checked each of the 12972 possible enterable words against each of the 2309 possible target words. For each combination of enterable word and target word, a score is assigned based on how the enterable word matches the target word: 2 points for each green square and 1 point for each yellow square. While the previous method only considered the frequency of letters, this method also considers the position of letters and the overall quality of whole words.<\/p>\n\n\n\n