Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
2K views3 pages

C++ Hangman Game Proposal: The " Is Written in C++ Language For The Following Reasons

This document proposes a C++ Hangman game that will choose a random word from a list and allow the player to guess letters. The game uses object oriented programming principles in C++, which is chosen for its flexibility, wide availability, low-level features, and OOP support. The player has 5 tries to correctly guess the word before a hangman character is displayed, with the objective being to save the character from being hanged by guessing the word.

Uploaded by

ihtisham khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views3 pages

C++ Hangman Game Proposal: The " Is Written in C++ Language For The Following Reasons

This document proposes a C++ Hangman game that will choose a random word from a list and allow the player to guess letters. The game uses object oriented programming principles in C++, which is chosen for its flexibility, wide availability, low-level features, and OOP support. The player has 5 tries to correctly guess the word before a hangman character is displayed, with the objective being to save the character from being hanged by guessing the word.

Uploaded by

ihtisham khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

C++ Hangman Game Proposal

Introduction:
In the game of Hangman, the computer chooses a
word at random from a given list of words. This word is the
answer. The player then tries to guess the word, by guessing one
letter at a time. Whenever the user guesses a letter that is in the
answer, all occurrences of that letter are revealed to the user.
The game ends when the user has guessed every letter in the
word, before he reaches the allowed number of strikes (usually
5).
The “Hangman Game is written in C++ language for the following
reasons:

 C++ is a flexible, structured programming language.


 C++ is widely available.
 C++ include certain low-level features that are normally
available only in assembly or machine language.
 C++ supports Object Oriented Program (OOP).
Objective:
The objective of the game is to guess a word
(phrase). The player has maximum of 5 tries before his character
is hanged. If the player guesses correctly his character will be
saved from being hanged.
Working:
This project has been written in Dev C++ software. After the
coding the game will run in the following manner:
1. A number of words will already be stored in the compiler
memory and at start of the game the compiler will
automatically choose a random word.
2. At the start the user will only know the number of letters in
the word and he will be asked to guess a letter that is in the
word.
3. The player can only guess on character at a time.
4. The player will have a total of five tries.
5. If the player guesses all the letters correctly his character
will be saved from being hanged and a message will appear
on the screen as “YOU WON”.
6. If the player fails to guess correctly his character will be
hanged and a message will appear on the screen as “Sorry,
you lose...you've been hanged”.
Conclusion:
This program is just a fun guessing game. This
program is an interactive Hangman game. The focus is to use
and manipulate strings and loops.
OBJECT ORIENTED PROGRAMMING

PROJECT PROPOSAL

Name: Ihtisham Khan


Roll num: FA18-BSCS-089
Class/Section: BSCS/B
Date: 09-04-2019

You might also like