Wordle is NP-hard

03/30/2022
by   Daniel Lokshtanov, et al.
0

Wordle is a single-player word-guessing game where the goal is to discover a secret word w that has been chosen from a dictionary D. In order to discover w, the player can make at most ℓ guesses, which must also be words from D, all words in D having the same length k. After each guess, the player is notified of the positions in which their guess matches the secret word, as well as letters in the guess that appear in the secret word in a different position. We study the game of Wordle from a complexity perspective, proving NP-hardness of its natural formalization: to decide given a dictionary D and an integer ℓ if the player can guarantee to discover the secret word within ℓ guesses. Moreover, we prove that hardness holds even over instances where words have length k = 5, and that even in this case it is NP-hard to approximate the minimum number of guesses required to guarantee discovering the secret word. We also present results regarding its parameterized complexity and offer some related open problems.

READ FULL TEXT
research
03/22/2020

The Computational Complexity of Evil Hangman

The game of Hangman is a classical asymmetric two player game in which o...
research
04/11/2022

Rank One Approximation as a Strategy for Wordle

This paper presents a mathematical method of playing the puzzle game Wor...
research
10/09/2017

Two-player entangled games are NP-hard

We show that the maximum success probability of players sharing quantum ...
research
03/25/2020

The Exact Query Complexity of Yes-No Permutation Mastermind

Mastermind is famous two-players game. The first player (codemaker) choo...
research
04/02/2020

Dots Polygons

We present a new game, Dots Polygons, played on a planar point set. ...
research
06/30/2021

Backgammon is Hard

We study the computational complexity of the popular board game backgamm...
research
06/01/2020

Walking through Doors is Hard, even without Staircases: Proving PSPACE-hardness via Planar Assemblies of Door Gadgets

A door gadget has two states and three tunnels that can be traversed by ...

Please sign up or login with your details

Forgot password? Click here to reset