The Game Board

beginner

A hangman game starts with a board: a masked word, an input, and a guess button. Each guess updates the board. The game ends when the player wins or runs out of guesses.

In this problem, you will build the core functions that power the board:

  1. maskedWord: display the word with unguessed letters hidden
  2. processGuess: apply a guess to the game state
  3. isGameOver and didPlayerWin: detect end conditions

Each step includes a read-only HTML file showing how your function plugs into the page. By the end, you will have a playable game.

Steps