HANGMAN GAME
(USING R PROGRAMMING)
UNDER THE GUIDANCE OF: Presented by :
• Dr. A .Vikram , Ph.D Lakshmi Deepika Chilakapati-22A91A05B3
• Associate Professor
• Computer Science and Lekhya Shri Bonam-22A91A05D9
Engineering Computer Science And Engineering
• Aditya Engineering College (A)
ABSTRACT
A Hangman game is a classic word-guessing game
where one player thinks of a word, and the other
player tries to guess it by suggesting letters within a
certain number of guesses.
The game is known for its simple yet suspenseful
gameplay, often involving a "hanging" drawing that
becomes more complete with each incorrect guess.
Although Hangman is a simple word-guessing game,
the concepts used to build the game can overlap
with many core data science skills, especially in
programming, data manipulation, and algorithmic
thinking.
INTRODUCTION
In this game, your goal is to guess the hidden word,
one letter at a time. You start with a blank word,
and for every correct guess, the letter fills in the
corresponding blanks. But be careful! For every
incorrect guess, a part of the hangman is drawn.
You have a limited number of incorrect guesses
before the hangman is completely drawn, and the
game is lost. Try to guess the word before it's too
late!
HOW TO PLAY
•A random word is chosen, and its letters are represented as underscores (_).
•Guess a letter by typing it.
•If your guess is correct, the letter is revealed in the word.
•If your guess is wrong, a part of the hangman is drawn.
•Keep guessing until you either guess the word or the hangman is fully drawn!
SOFTWARE
REQUIREMENTS
System development
software
•Operating System:
Windows 7, 8, 9, 10 .
•Language: R Programming
• R (latest version)
• RStudio (optional, but highly recommended for ease of use)
• Base R functions (no external packages required for a simple
version)
R’s Role:
•String manipulation to handle the word and user input.
•Control structures to manage the game flow, guesses, and win/lose conditions.
•Randomization for selecting a word to guess.
•User input/output for interaction during the game.
•Visualization (optional) for drawing the hangman figure.
•Error handling to ensure smooth gameplay.
•State management to keep track of the current status of the game.
R provides all the tools necessary to build a fully functional Hangman
game while allowing for customizations and extensions. Through these
processes, R also reinforces skills relevant to data manipulation and
algorithmic thinking, which are essential in data science.
ADVANTAGES
Creating a Hangman game in R offers several
advantages, particularly for learners and those
interested in programming and data science. Here
are some key benefits:
1. Skill Development
2. Conceptual Understanding
3. Engagement and Motivation
4. Interactive Programming
5. Data Analysis Potential
6. Visualization Skills
7. Collaborative Learning
8. Foundation for More Complex
Projects
Conclusion
By implementing a Hangman game in R, you
touch on multiple areas relevant to data
science. This not only makes the learning
process engaging but also provides practical
examples of how foundational programming
skills and data manipulation techniques are
applied in real-world data science projects.
THANK
YOU