The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

hangman - A text-based hangman

VERSION

This document describes version 0.062 of hangman (from Perl distribution Games-Hangman), released on 2020-05-23.

SYNOPSIS

 % hangman
 % hangman -l Proverb::TWW; # select specific word-/phraselist

 % hangman --help
 % hangman --version

Example of game display:

    ____
   |    |      Phrase #:    2
   |    o      Guessed : abcmtwxyz
   |   /|\     Average :  50%
   |    |
   |   /
  _|_
 |   |______
 |          |
 |__________|

 List  : Proverb::TWW
 Phrase: A--'- w--- t-at ---- w---.
 Guess :

DESCRIPTION

This is yet another text-based implementation of the popular word game Hangman. In Hangman, you guess a word letter-by-letter. There is a maximum of seven wrong guesses. Each wrong guess will incrementally draw a figure of a man being hung. What's different about this particular variant:

  • Longer phrases are allowed

  • Wordlists (or phrase list) are searched from WordList::* modules

OPTIONS

--list=s, -l

Select word-/phraselist, will be searched in Wordlist::* or WordList::Phrase::.

--wordlist=s, -w

Alias for --wordlist.

--min-len=i

Minimum word/phrase length. The default is 5 for word, 0 for phrase.

--max-len=i

Maximum word/phrase length. The default is unlimited.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Games-Hangman.

SOURCE

Source repository is at https://github.com/perlancar/perl-Games-Hangman.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Games-Hangman

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

hangman from bsdgames Debian package

hangman from ppt (Perl Power Tools) on CPAN

WordList::*

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020, 2016, 2015, 2014 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.