Project: Building a Hangman Game

Learn how to use an AI assistant to develop a Hangman game with procedural programming techniques, enhancing our coding skills and understanding of game logic.

Guided project: The Hangman

In this lesson, we’ll walk you through the initial steps to solve a project using an AI coding assistant. After we’ve brainstormed the solution together with AI and solved one of the helper functions, we expect you to complete the solution.

Problem statement

Create a Hangman game in which the computer chooses a word and gives a hint related to that word. The player then guesses the hidden word. Each word has a corresponding hint (e.g., “fruit,” “movie,” “place”) that should be displayed alongside the word represented by dashes.

Get hands-on with 1400+ tech skills courses.