Build a Hangman game in Discord without writing any code
A full hangman game as a slash command, built by asking the AI three times. No Python, no copy-paste, about six minutes start to finish.
Md Shahriyar Alam
3 hours ago
Introduction
Hangman is a good test for a command builder. It has to remember a word, track which letters you have already tried, count your remaining lives, draw a figure, and know when you have won or lost — all inside one slash command.
In this video I build it without writing a single line of code. Every change is a sentence typed into Slushy, the AI built into the dashboard.
What we are building
/hangman picks a five-letter word and shows it as blanks. You guess one
letter at a time. A correct letter fills in every place it appears. A wrong
letter costs a life. Run out of lives and the word is revealed.
Step 1 — ask for the game
Open the command builder, skip the code editor entirely, and go straight to the AI with a plain sentence:
make a five character hangman game
That is the whole prompt. Slushy writes the command, and clicking accept saves it. No editing, no fixing.
Over in Discord, /hangman already works: five blanks, a prompt asking for a
letter, and a list of the letters you have guessed. Guess a, and it appears
in the right slot. Guess e, and it fills two places at once. Keep going and
you get the word — mine was eagle.
Then I deliberately lost a round to check the other ending. Lives counted down 4, 3, 2, 1, and the game revealed the word: brave. Both endings worked on the first try.
Step 2 — ask for the hangman figure
The game worked, but there was no drawing. So, second prompt:
I also want a figure
Accept, update the form, and the ASCII gallows shows up in Discord. Each wrong letter draws another part of it — head, body, arms, legs.
Step 3 — fix what you do not like
Watching it play, one thing bothered me. When the game ended, the figure disappeared from the message. So I said so:
when the game ends I don't want the figure to go away
Third prompt, accepted, done. Now the finished drawing stays on screen after the last guess, which is the part you actually want to see.
That is the pattern worth taking away: you do not need to know what is wrong in the code. Describe the behaviour you want and let the AI find it.
It fits in the free limit
Worth knowing if you are on a free server: the finished command is about 2,800 characters, and the free limit is 3,000. A complete hangman game — word list, guess tracking, lives, ASCII art, win and lose states — fits inside a free server's allowance.
Make it yours
The word list the AI wrote has plenty of words in it, but it is just a list. Ask for more, ask for harder ones, or ask it to swap the whole list for a theme — countries, animals, programming terms. Same approach: one sentence, accept, done.
One honest note
It is not magic every single time. In one round a letter I had already guessed did not get removed from the list. Small, cosmetic, and exactly the kind of thing you fix with a fourth prompt describing what you saw.
Try it
Three sentences got me a working multiplayer-ready word game. If you build your own version, use the AI rather than the code editor — that is the part worth practising.
Go make your own /hangman.
Loading comments…
Need help?
Have a question, a suggestion, or stuck on something? Reach out — we're happy to help.