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.