A simple hangman game for beginners trying to learn python

Overview

Hangman Game

This is a simple hangman game for beginners trying to learn python. I have tried to keep it as simply as possible.

Sample output

Here is some sample output from my game.

__ ____ ___________ 

 you have 10 guesses left
guess a letter> g
your guess was correct
__ ____ ___g______g 

 you have 10 guesses left
guess a letter> e
your guess was correct
_e ___e ___g______g 

 you have 10 guesses left
guess a letter> d
your guess was incorrect
_e ___e ___g______g 

 you have 9 guesses left
guess a letter> f
your guess was incorrect
_e ___e ___g______g 

 you have 8 guesses left
guess a letter> v
your guess was correct
_e __ve ___g______g 

 you have 8 guesses left
guess a letter> g
you already guessed that letter
_e __ve ___g______g 

 you have 8 guesses left
guess a letter> a
your guess was correct
_e __ve ___g_a____g 

 you have 8 guesses left
guess a letter> w
your guess was correct
we __ve ___g_a____g 

 you have 8 guesses left
guess a letter> l
your guess was correct
we l_ve ___g_a____g 

 you have 8 guesses left
guess a letter> y
your guess was incorrect
we l_ve ___g_a____g 

 you have 7 guesses left
guess a letter> h
your guess was incorrect
we l_ve ___g_a____g 

 you have 6 guesses left
guess a letter> o
your guess was correct
we love __og_a____g 

 you have 6 guesses left
guess a letter> p
your guess was correct
we love p_og_a____g 

 you have 6 guesses left
guess a letter> r
your guess was correct
we love progra____g 

 you have 6 guesses left
guess a letter> x
your guess was incorrect
we love progra____g 

 you have 5 guesses left
guess a letter> b
your guess was incorrect
we love progra____g 

 you have 4 guesses left
guess a letter> n
your guess was correct
we love progra___ng 

 you have 4 guesses left
guess a letter> m
your guess was correct
we love programm_ng 

 you have 4 guesses left
guess a letter> i
your guess was correct
you won
You might also like...
This is a simple telegram bot for the game Pyal, a word guessing game inspired by Wordle

Pyal Telegram Bot This is a simple telegram bot for the game Pyal, a word guessing game inspired by Wordle. How does it work? Differently from the ori

Parkour game made in Python with Ursina Game Engine along with ano0002, Greeny127 and Someone-github
Average Clicker Game (AVG) is a Python made game using tkinter

Average-Clicker-Game Average Clicker Game (AVG) is a Python clicker game not made with pygame but with tkinter, it has worker, worker upgrades, times

Ice-Walker-Game - This repository is about the Ice Walker game made in Python.

Ice-Walker-Game Ce dépot contient le jeu Ice Walker programmé en Python. Les différentes grilles du jeu sont contenues dans le sous-dossier datas. Vou

Adventure-Game - Adventure Game which is created using Python

Adventure Game 🌇 This is a Adventure Game which is created using Python. Featur

Snake game mixed with Conway's Game of Life
Snake game mixed with Conway's Game of Life

SnakeOfLife Snake game mixed with Conway's Game of Life The rules are the same than a normal snake game but you have to avoid cells created by Conway'

Lint game data metafiles against GTA5.xsd for Rockstar's game engine (RAGE)
Lint game data metafiles against GTA5.xsd for Rockstar's game engine (RAGE)

rage-lint Lint RAGE (only GTA5 at the moment) meta/XML files for validity based off of the GTA5.xsd generated from game code. This script accepts a se

HTTP API for FGO game data. Transform the raw game data into something a bit more manageable.

FGO game data API HTTP API for FGO game data. Transform the raw game data into something a bit more manageable. View the API documentation here: https

A near-exact clone of google chrome's no internet game, or the "google dinosaur game", with some additions and extras.

dinoGame A near-exact clone of google chrome's no internet game, or the "google dinosaur game", with some additions and extras. Installation Download

Owner
null
Create a Hangman Game using Python and all techniques of Python.

Hangman Game Created by Fernando Callasaca Game rules: Choose a word and if you guess it will appear completed. In case it is not the word then the ma

Fernando Callasaca 3 Nov 1, 2021
This Country Hangman game written in Python.

country-name-guess-hangman-game This Country Hangman game written in Python. Visit https://example.com to play the game. Description How to play this

Aytaç Kaşoğlu 1 Oct 30, 2021
Use different orders of N-gram model to play Hangman game.

Hangman game The Hangman game is a game whereby one person thinks of a word, which is kept secret from another person, who tries to guess the word one

ZavierYang 4 Oct 11, 2022
Hangman Game

Hangman Game Este juego fue creado a partir de los conocimientos adquiridos en el Curso de Python: Comprehensions, Lambdas y Manejo de Errores que exi

Carlos Valencia 2 Nov 14, 2022
A hangman game that I created. Thanks to Data Flair for giving me the code!

Hangman A hangman game that I created. Thanks to Data Flair for giving me the code! Run python3 hangman.py in a terminal if you have Python 3. Please

SmashedFrenzy16 0 Dec 24, 2022
Command-line Hangman game

Hang-_an-game-python-build Hangman C command-line Hangman game. Compilation Navigate to the root of the repository from your Terminal and run make to

Hemant Choudhary 3 Jan 16, 2022
SpiderArcadeGame - A game where the player controls a little spider who is trying to protect herself from other invasive bugs

SpiderArcadeGame - A game where the player controls a little spider who is trying to protect herself from other invasive bugs

Matheus Farias de Oliveira Matsumoto 1 Mar 17, 2022
This project is an exciting fun game for beginners to build up

This project is an exciting fun game for beginners to build up. The program generates a random number from 1 to 10, or 1 to 100 any range that is specified and the user must guess the number after a hint from the computer.

PyLaboratory 0 Feb 7, 2022
Blender Game Engine Game Type Templates Logic Bricks (and Python script) based Game Templates for Blender

Blender-Game-Engine-Templates Blender Game Engine Game Type Templates Logic Bric

null 3 Oct 25, 2022
Game-of-life - A simple python program to simulate and visualise the Conway's Game of life

Conway's game of life A simple python program to simulate and visualise the Conw

Dhravya Shah 3 Feb 20, 2022