Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A common word-guessing game, usually involving a pictorial representation of a stick figure being hanged, progressively rendered for each wrong guess
8
votes
3
answers
4k
views
2-player in a Python hangman game
This is a follow-up: Python Hangman Program
I'm working on adding a few features to my hangman game, and I just implemented two-player gameplay, in the form of one player chooses the word to be guessed … def game(word):
'''Play one game of Hangman for the given word.
Returns True if the player wins, False if the player loses.''' …
7
votes
2
answers
12k
views
Python Hangman program
To learn Python, I've been working through Learn Python the Hard Way, and to exercise my Python skills I wrote a little Python Hangman game (PyHangman - creative, right?):
#! … def main():
image = Gallows()
wordlist = Wordlist()
new_page()
print("\nWelcome to Hangman!")
print("Guess the word before the man is hung and you win!") …