summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/Spook.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-06-01 02:10:39 -0500
committerJesse Luehrs <doy@tozt.net>2009-06-01 02:10:39 -0500
commit5d697170e22d75928a361e1c7b1d007632de29c1 (patch)
tree052505907344ae583b05860201ff6ad9deb6caf2 /lib/Bot/Games/Game/Spook.pm
parent017f677e7047eaf607c49d7a496ce252def15ba9 (diff)
downloadbot-games-5d697170e22d75928a361e1c7b1d007632de29c1.tar.gz
bot-games-5d697170e22d75928a361e1c7b1d007632de29c1.zip
format more methods as bools
Diffstat (limited to 'lib/Bot/Games/Game/Spook.pm')
-rw-r--r--lib/Bot/Games/Game/Spook.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bot/Games/Game/Spook.pm b/lib/Bot/Games/Game/Spook.pm
index 415c5b4..f15ddfa 100644
--- a/lib/Bot/Games/Game/Spook.pm
+++ b/lib/Bot/Games/Game/Spook.pm
@@ -12,7 +12,7 @@ command valid_move => sub {
my ($move) = @_;
return is_subpermutation($self->state, uc($move))
&& length($self->state) + 1 == length($move);
-};
+}, formatter => __PACKAGE__->meta->formatter_for('Bool');
command valid_word_from_state => sub {
my $self = shift;
@@ -20,7 +20,7 @@ command valid_word_from_state => sub {
$word = uc join '', sort split(//, $word);
my $state = join '', sort split(//, $self->state);
return $word eq $state;
-};
+}, formatter => __PACKAGE__->meta->formatter_for('Bool');
__PACKAGE__->meta->make_immutable;
no Bot::Games::OO::Game;