Package peppy :: Package plugins :: Package games :: Module hangman_mode
[frames] | no frames]

Module hangman_mode


Major mode for playing hangman using the words in the buffer.

Adapted from hangman.py from the wxPython distribution by Harm van der
Heijden.  From the code:

A simple wxPython game, inspired by the old bsd game by Ken Arnold.

From the original man page:

 In hangman, the computer picks a word from the on-line
 word list and you must try to guess it.  The computer
 keeps track of which letters have been guessed and how
 many wrong guesses you have made on the screen in a
 graphic fashion.

That says it all, doesn't it?

Have fun with it,

Harm van der Heijden (H.v.d.Heijden@phys.tue.nl)

Classes
  PlayHangman
Start a game of hangman.
  RestartGame
Restart the current game with a new word.
  HangmanWnd
  HangmanMode
Major mode for playing hangman.
  HangmanPlugin
Peppy plugin that registers the Hangman mode and its actions.
Variables
  icondict = {'hangman.png': '\x89PNG\r\n\x1a\n\x00\x00\x00\rIHD...
Variables Details

icondict

Value:
{'hangman.png': '\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x\
00\x00\x00\x10\x08\x06\
\x00\x00\x00\x1f\xf3\xffa\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x8\
8\x00\
\x00\x00oIDAT8\x8d\xedS\xb1\r\x800\x0c\xb3Y\x98\x98y\x85oz\r\xcf\xf2\x\
84Y\
\x02J\xa1Q(\x13\x03\x96\xa26m\xea$\x95CI\xf0 Y\x1f4 \x89\xc7~\xc8\x823\
\x84\
...