From 4074f2d6a9bcfb33f0da7933ac26c5df0d2f21f7 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 5 Jul 2012 10:15:42 -0500 Subject: modernize, cleanup, etc --- bin/cryptogram.pl | 1 + bin/jotto.pl | 1 + bin/mastermind.pl | 1 + bin/solve-ghost.pl | 1 + bin/solve-spook.pl | 1 + bin/solve-superghost.pl | 1 + bin/solve-xghost.pl | 1 + 7 files changed, 7 insertions(+) (limited to 'bin') 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 \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 \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 \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 \n" unless @ARGV; my $wl = Games::Word::Wordlist->new('/usr/share/dict/words'); -- cgit v1.2.3-54-g00ecf