- HTML
- CSS
- JS
Hangman game
This project is a great all-around test. You'll need good HTML to ensure accessible navigation. There are many tricky CSS details, and the game logic will test your JS.
Premium challenges are available with Pro.
Join 764 people who have taken this challenge
📝Brief
Your challenge is to build out this Hangman game and get it looking as close to the design as possible.
You can use any tools you like to help you complete the challenge. So, if you've got something you'd like to practice, feel free to give it a go.
We provide the data in a local data.json file for you to use for word selections.
Your users should be able to:
- Learn how to play Hangman from the main menu.
- Start a game and choose a category.
- Play Hangman with a random word selected from that category.
- See their current health decrease based on incorrect letter guesses.
- Win the game if they complete the whole word.
- Lose the game if they make eight wrong guesses.
- Pause the game and choose to continue, pick a new category, or quit.
- View the optimal layout for the interface depending on their device's screen size.
- See hover and focus states for all interactive elements on the page.
- Navigate the entire game only using their keyboard.
Download the project and go through the README.md file. This will provide further details about the project and help you get set up.
Want some support on the challenge? Join our community and ask questions in the help channel.
🗃Assets provided
- Figma design files
- Mobile, tablet & desktop layouts
- Professional design system for colors, fonts, etc.
- Optimized image assets
- README file to help you get started
- HTML file with pre-written content
💡Ideas to test yourself
- Try using the JSON data to choose words based on category selection
- Ensure the game is fully accessible for people using only keyboard navigation
- Use a JavaScript framework/library to practice building using components
Challenge FAQs
- How can I get help if I'm stuck on a challenge?
- How do I submit my solution?
- Is there an official solution I can take a look at?
- Do I get a code review when I post my solution?
- Can I use libraries/frameworks on these projects?
- Can I use these projects in my portfolio?
- How often are new challenges added?
- What is the difference between the desktop-design, mobile-design, and desktop-preview images in my starter code?
- Can I use these challenges within my own free or commercial content/tutorials/projects?
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord