I made a game of Hangman that "cheats" by changing the word it's thinking of in order to make it as hard as possible to guess. But while it cheats, it never lies: it remains consistent with what it's told you so far about the word length, matching letters, non-matching letters etc.
I was originally inspired by Nick Berry's excellent analysis of hangman strategy
, many years ago. I reversed his procedure to instead come up with the hardest words to guess
when playing hangman. But then just this week, a conversation with a work colleague got me thinking: what would a game of hangman be like if the hangman was allowed to cheat?
The game works by jumping in between you making a guess and it telling you whether or not the guess is correct. It considers all of the possible words that it could
have been thinking about and "switches" to the one that maximises the number of guesses it expects you to have to make. I've written a blog post
with more detail about its strategy and what it feels like to play it and I've open-sourced the whole thing
It needs a pretty modern browser to work; sorry if your mobile phone isn't up to the challenge. Good luck!