summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-07-05 10:15:42 -0500
committerJesse Luehrs <doy@tozt.net>2012-07-05 10:27:29 -0500
commit4074f2d6a9bcfb33f0da7933ac26c5df0d2f21f7 (patch)
tree9d34241644d3d8babf199f362a9d2b7ee2180d75 /bin
parenta12e592c538f370277e787cd57d01d512e1ca835 (diff)
downloadgames-word-4074f2d6a9bcfb33f0da7933ac26c5df0d2f21f7.tar.gz
games-word-4074f2d6a9bcfb33f0da7933ac26c5df0d2f21f7.zip
modernize, cleanup, etc
Diffstat (limited to 'bin')
-rw-r--r--bin/cryptogram.pl1
-rw-r--r--bin/jotto.pl1
-rw-r--r--bin/mastermind.pl1
-rw-r--r--bin/solve-ghost.pl1
-rw-r--r--bin/solve-spook.pl1
-rw-r--r--bin/solve-superghost.pl1
-rw-r--r--bin/solve-xghost.pl1
7 files changed, 7 insertions, 0 deletions
diff --git a/bin/cryptogram.pl b/bin/cryptogram.pl
index 7d89e6c..e965af7 100644
--- a/bin/cryptogram.pl
+++ b/bin/cryptogram.pl
@@ -2,6 +2,7 @@
use strict;
use warnings;
use Games::Word qw/random_permutation/;
+# PODNAME: cryptogram.pl
my $alphabet = 'abcdefghijklmnopqrstuvwxyz';
my $key = random_permutation $alphabet;
diff --git a/bin/jotto.pl b/bin/jotto.pl
index 4d9f509..f26c9b1 100644
--- a/bin/jotto.pl
+++ b/bin/jotto.pl
@@ -3,6 +3,7 @@ use strict;
use warnings;
use Games::Word qw/shared_letters/;
use Games::Word::Wordlist;
+# PODNAME: jotto.pl
my $wl = Games::Word::Wordlist->new('/usr/share/dict/words');
$wl->remove_words($wl->words_like(qr/^(.{0,4}|.{6,})$/));
diff --git a/bin/mastermind.pl b/bin/mastermind.pl
index 8f8ab34..b3c595e 100644
--- a/bin/mastermind.pl
+++ b/bin/mastermind.pl
@@ -3,6 +3,7 @@ use strict;
use warnings;
use Games::Word qw/random_string_from shared_letters
shared_letters_by_position/;
+# PODNAME: mastermind.pl
my $word = random_string_from "abcdefg", 5;
while (1) {
diff --git a/bin/solve-ghost.pl b/bin/solve-ghost.pl
index c65cd91..f969a39 100644
--- a/bin/solve-ghost.pl
+++ b/bin/solve-ghost.pl
@@ -2,6 +2,7 @@
use strict;
use warnings;
use Games::Word::Wordlist;
+# PODNAME: solve-ghost.pl
die "Usage: $0 <word_prefix>\n" unless @ARGV;
my $wl = Games::Word::Wordlist->new('/usr/share/dict/words');
diff --git a/bin/solve-spook.pl b/bin/solve-spook.pl
index f28c8e8..2ef27de 100644
--- a/bin/solve-spook.pl
+++ b/bin/solve-spook.pl
@@ -2,6 +2,7 @@
use strict;
use warnings;
use Games::Word::Wordlist;
+# PODNAME: solve-spook.pl
die "Usage: $0 <letter_pool>\n" unless @ARGV;
my $wl = Games::Word::Wordlist->new('/usr/share/dict/words');
diff --git a/bin/solve-superghost.pl b/bin/solve-superghost.pl
index e5fcbee..d3a1eee 100644
--- a/bin/solve-superghost.pl
+++ b/bin/solve-superghost.pl
@@ -2,6 +2,7 @@
use strict;
use warnings;
use Games::Word::Wordlist;
+# PODNAME: solve-superghost.pl
die "Usage: $0 <subword>\n" unless @ARGV;
my $wl = Games::Word::Wordlist->new('/usr/share/dict/words');
diff --git a/bin/solve-xghost.pl b/bin/solve-xghost.pl
index 7502803..aea1872 100644
--- a/bin/solve-xghost.pl
+++ b/bin/solve-xghost.pl
@@ -2,6 +2,7 @@
use strict;
use warnings;
use Games::Word::Wordlist;
+# PODNAME: solve-xghost.pl
die "Usage: $0 <subword>\n" unless @ARGV;
my $wl = Games::Word::Wordlist->new('/usr/share/dict/words');