summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/Ghost.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-06-01 02:56:04 -0500
committerJesse Luehrs <doy@tozt.net>2009-06-01 02:57:29 -0500
commit8177ff4ccdcc04b636b52aeeb1a0b3d901a60c54 (patch)
treeae5f3203462d41a0fbd4165d9c4777454f8d4c44 /lib/Bot/Games/Game/Ghost.pm
parentda928b59285b96179db5cecd1325efe3aff1e93b (diff)
downloadbot-games-8177ff4ccdcc04b636b52aeeb1a0b3d901a60c54.tar.gz
bot-games-8177ff4ccdcc04b636b52aeeb1a0b3d901a60c54.zip
use 'Bool' as the formatter rather than manually looking it up
Diffstat (limited to 'lib/Bot/Games/Game/Ghost.pm')
-rw-r--r--lib/Bot/Games/Game/Ghost.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Bot/Games/Game/Ghost.pm b/lib/Bot/Games/Game/Ghost.pm
index 3912f52..43798f7 100644
--- a/lib/Bot/Games/Game/Ghost.pm
+++ b/lib/Bot/Games/Game/Ghost.pm
@@ -27,7 +27,7 @@ has challenger => (
predicate => 'has_challenger',
command => 1,
);
-command 'has_challenger', formatter => __PACKAGE__->meta->formatter_for('Bool');
+command 'has_challenger', formatter => 'Bool';
has wordlist => (
is => 'ro',
@@ -127,14 +127,14 @@ command valid_move => sub {
my $self = shift;
my ($move) = @_;
return uc(substr($move, 0, -1)) eq $self->state;
-}, formatter => __PACKAGE__->meta->formatter_for('Bool');
+}, formatter => 'Bool';
command valid_word_from_state => sub {
my $self = shift;
my ($word) = @_;
my $word_prefix = substr($word, 0, length($self->state));
return uc($word_prefix) eq $self->state;
-}, formatter => __PACKAGE__->meta->formatter_for('Bool');
+}, formatter => 'Bool';
sub current_player_index {
my $self = shift;