Skip Menu |

This queue is for tickets about the Games-Literati CPAN distribution.

Report information
The Basics
Id: 112378
Status: resolved
Priority: 0/
Queue: Games-Literati

People
Owner: petercj [...] cpan.org
Requestors: petercj [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.01
Fixed in: 0.031



Subject: FEATURE REQUEST: choose a different wordslist filename
BACKWARD COMPATIBLE SOLUTION: * in list of 'our' variables, add: our $WordFile = './wordlist'; * add $WordFile to @EXPORT_OK list * in _var_init(), change open (my $fh, "./wordlist" ) || croak "Can not open wordfile.\n"; to open (my $fh, $WordFile ) || croak "Can not open words file \"$WordFile\"\n\t$!"; The defaults value of $WordFile means that this feature implementation is backwards compatible. I have a version with this feature, bundled with some of the other features I'm requesting in separate issues. I am working on getting them to a public repository for review, but I wanted to get these requests in the system first, and do a bit more testing on the bugfix. HISTORY & DISCLAIMER: I've played various online scrabble-like games for a long time, including Literati and now Words with Friends. Back in about 2005, I wrote my own simple tile-player in perl; sometime between then and 2009, I found Games::Literati (which was much better than my script), and have been using a tweaked version as my "greedy opponent" player ever since (living with the effects of bug#29539 as a way to make it slightly less greedy). However, I finally decided I needed a greedier opponent, so started looking into the scoring bug, along with cleaning up my added features. If owner is amenable, I would be willing to co-maintain this module, and add all these features/fixes myself. If owner is unreachable in a month or two, I will probably request to adopt Games::Literati as having been abandoned.
Updated source code v0.03 available in <https://github.com/pryrt/Games-Literati>, includes $WordList, which can be set to the path to your dictionary/wordlist (defaults to ./wordlist to maintain compatibility with v0.01)