/Games-Literati

Finds best solutions for the current state of word games like Literati, Scrabble, and Words With Friends

Primary LanguagePerlOtherNOASSERTION

NAME

Games::Literati - For word games like Literati (or Scrabble, or Words With Friends), find the best-scoring solution(s) for a board and hand of tiles.

SYNOPSIS

use Games::Literati qw/:allGames/;
literati();
wordswithfriends();
scrabble();
superscrabble();

Example Windows-based one-liner:

perl -MGames::Literati=literati -e "$Games::Literati::WordList = './mydict.txt'; literati();"

Example linux-based one-liner:

perl -MGames::Literati=literati -e "$Games::Literati::WordList = '/usr/dict/words'; literati();"

DESCRIPTION

Games::Literati helps you find out all solutions for a given board and tiles. It can be used to play Scrabble (the original 15x15 grid), Super Scrabble (the official 21x21 extended grid), Literati (an old Yahoo! Games 15x15 grid, from which Games::Literati derives its name), and Words With Friends (a newer 15x15 grid). By overriding or extending the package, one could implement other similar letter-tile grids, with customizable bonus placements.

To use this module to play the games, a one-liner such as the following can be used:

    perl -MGames::Literati=literati -e "literati();"

(This will only work if `./wordlist' is in the current directory. Otherwise, see "PUBLIC VARIABLES", below.)

Enter the data prompted then the best 10 solutions will be displayed.

AUTHOR

Chicheng Zhang <chichengzhang AT hotmail.com> wrote the original code.

Peter C. Jones <petercj AT cpan.org> is the current maintainer, and has added various features and made bug fixes.

travis build status Coverage Status

LICENSE AND COPYRIGHT

Copyright (c) 2003, Chicheng Zhang. Copyright (C) 2016,2019,2020 by Peter C. Jones

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