Implementation of Hangman Game using C++

Offered By
Coursera Project Network
In this Guided Project, you will:

You'll be able to write the main functions of the game

You'll be able to test each and every function to make sure they have nor logical error

Integrating all the functions together and finalizing the whole game

Clock2 hours
IntermediateIntermediate
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

By the end of this project, we will create a simple fully functioning hangman game using C++. In this project you’ll be able to write functions that will print messages, draw hangman, print available letters and calculate the number of tries, and last but not least, you will be able to get the words that’ll be guessed randomly from a text file. In this project we’ll use Codeblocks IDE which is an open source IDE and it’s very simple to write our code in , which will help us implement all the needed functions and classes that is necessary to build our game

Skills you will develop

Software TestingReading Data from txt filesImplementing FunctionsSoftware GamingC++

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Writing the Print Message Function which is a function responsible for displaying any message you want in the game

  2. Drawing the hangman in case of wrong guessed letters.

  3. Printing all the letters guessed and the available letters which are not yet guessed

  4. Checking if the player has won the game or not and you’ll load words randomly from a text file.

  5. Calculating the numbers of tries left, finalizing the game and test it.

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.