Hangman Game in Python

Stängt Publicerat 4 år sedan Betalades vid leverans
Stängt Betalades vid leverans

This was my original solution / approach for the popular MitX Python Hangman Problem.

Full Code :

[login to view URL]

However, I am no Dev and this is me having some fun with my niece. So, she asked, "where is the hangman ? Where is the Scaffold ?" Why does it take forever to load ? Why can I only play once ? " :(

I am telling you, tough crowd we have on our hands ... lol :)

I have a pretty basic understanding on how to give her what she asks but not sure how to implement it on my code :

1. The computer loads a list of X amount of words from a file, but it takes a ridiculous amount of time to load the file and pick a word.

2. After each failed attempt, display the scaffold and a piece of the Hangman.

There must be a more efficient way of doing this :

if (guesses == 0):

print "_________"

print "| |"

print "|"

print "|"

print "|"

print "|"

print "|________"

elif (guesses == 1):

print "_________"

print "| |"

print "| O"

print "|"

print "|"

print "|"

print "|________"

elif (guesses == 2):

print "_________"

print "| |"

print "| O"

print "| |"

print "| |"

print "|"

print "|________"

elif (guesses == 3):

print "_________"

print "| |"

print "| O"

print "| \|"

print "| |"

print "|"

print "|________"

elif (guesses == 4):

print "_________"

print "| |"

print "| O"

print "| \|/"

print "| |"

print "|"

print "|________"

elif (guesses == 5):

print "_________"

print "| |"

print "| O"

print "| \|/"

print "| |"

print "| / "

print "|________"

elif (guesses == 6):

print "_________"

print "| |"

print "| O"

print "| \|/"

print "| |"

print "| / \ "

print "|________"

print "\n"

3. Between guesses, clear screen and keep it clean , just guessed letters, and the scaffold.

4. Keep track of how many games have been played / won / lost and whether to play again or not.

While true :

do

X

else

break()

Can you please help ?

Thanks.

Python Programvaruarkitektur

Projekt-id: #23977311

About the project

14 offerter Distansprojekt Aktivt 4 år sedan

14 frilansare har lagt bud på i genomsnitt $42 för det här jobbet

naryl

Hello. I'm a professional developer and doing everything you mentioned shouldn't take me more than an hour. I'll avoid using overcomplicated code and language features so you may learn a thing or two too. :) Let me kno Mer

$30 USD inom 1 dag
(42 omdömen)
5.6
TellezMiotta

Hi! My name is Fernando Téllez. I am a senior year student of electrical engineering at Universidad Simón Bolívar (USB), one of the most prestigious universities in my country (Ranked 34° at the QS University Rankings: Mer

$45 USD inom 7 dagar
(17 omdömen)
4.9
artemzlobin900

Hello. Fast work, High quality, The Best result is promised. I can do it in a day. If you trust me, Thank you. I look forward to having a great, successful and rewarding relationship with you. Best regards.

$20 USD inom 1 dag
(9 omdömen)
3.8
ShadowBlade88

Hey, I am an experienced Python developer. I looked over your code and can provide the requested changes - faster loading, displaying hangman etc. Feel free to get in contact with me to discuss this further. Kind rega Mer

$30 USD inom 2 dagar
(16 omdömen)
3.9
science64

Hello, I understand your problem and i can rewrite faster and better looking hangman and you can enjoy more with your niece :) Best

$30 USD inom 7 dagar
(13 omdömen)
3.7
devjrmax

Hello! I am a master's student in the area of Computational Intelligence. My researches are developed in Python, Matlab, C and PHP, but my biggest experience is in Python, having 4 years of experience. I can help you w Mer

$30 USD inom 3 dagar
(5 omdömen)
2.7
phoenixBattleRid

Dear As a python expert, I can complete that github code in 2 days. Also, I know well how to play hangman game Best Regards.

$200 USD inom 7 dagar
(2 omdömen)
2.5
jbayton2492

Hola amigo yo puedo ayudarte con tu proyecto. Tengo experiencia trabajando con python y estoy seguro que podemos hacer ese juego mas divertido saludos.

$25 USD inom 5 dagar
(4 omdömen)
2.1
dusanfili46

Hello. How is it going today? After double-checked your posting carefully, I thought I am the best freelancer for this project. I am a professional ✅ python ✅ Expert who has many experiences of more 7 years. so I am Mer

$30 USD inom 1 dag
(4 omdömen)
1.6
Geiler

Hi, I'm expert in the Python. I can hel you.........................................................!

$30 USD inom 1 dag
(1 omdöme)
0.5
nunombispo

Hello, I have over 10 years experience of software development and 3 with Python. I can provide a good implementation for you Hangman. Best regards, Nuno Bispo

$41 USD inom 3 dagar
(0 omdömen)
0.0