Skip to content

ignaprados/HangmanGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HangmanGame

Python Hangman Game

Creator: IgnacioPrados

Key Technologies used: Python

Run the app

Using Python

python hangman.py

Usage

  • Guess the word given letter by letter. If you run out of opportunities you lose.
  • You can edit the posible words array by editing the hangman_guessing.py file.

Example


 _
| |
| |___    __ _      __ __    __ _     _____      __       ___
|  _  |  / _  |    |  _  \  / _  |  /_   _ \   /  _\    |  _ \
| | | | | (_| |_   | | | | | (_| |  | | | | | | (_| |_  | | | |
|_| |_|  \______|  |_| |_|  \___ |  |_| | |_|  \______| |_| |_|
                             __/ |
                            |___/


The word you guessed is banana.
Guess a letter: a
_ a _ a _ a

  ________
   |     \|
          |
          |
          |
          |
  =========
Guess a letter: b
b a _ a _ a

  ________
   |     \|
          |
          |
          |
          |
  =========
Guess a letter: g
You guessed g, this letter is not in the word, You lose a try.
b a _ a _ a

  ________
   |     \|
   O      |
          |
          |
  =========
Guess a letter: h
You guessed h, this letter is not in the word, You lose a try.
b a _ a _ a

  ________
   |     \|
   O      |
   |      |
          |
          |
  =========
Guess a letter: j
You guessed j, this letter is not in the word, You lose a try.
b a _ a _ a

  ________
   |     \|
   O      |
   |\     |
          |
          |
  =========
Guess a letter: u
You guessed u, this letter is not in the word, You lose a try.
b a _ a _ a

  ________
   |     \|
   O      |
  /|\     |
          |
          |
  =========
Guess a letter: y
You guessed y, this letter is not in the word, You lose a try.
b a _ a _ a

  ________
   |     \|
   O      |
  /|\     |
    \     |
          |
  =========
Guess a letter: n
b a n a n a
You are a winner, Congratulations.

  ________
   |     \|
   O      |
  /|\     |
    \     |
          |
  =========

© 2021 Made by IgnacioPrados

About

Python Hangman Game - Guess the word

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages