summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/Superghost.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bot/Games/Game/Superghost.pm')
-rw-r--r--lib/Bot/Games/Game/Superghost.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bot/Games/Game/Superghost.pm b/lib/Bot/Games/Game/Superghost.pm
index 7164ca2..60a58c4 100644
--- a/lib/Bot/Games/Game/Superghost.pm
+++ b/lib/Bot/Games/Game/Superghost.pm
@@ -11,14 +11,14 @@ command valid_move => sub {
my ($move) = @_;
return uc(substr($move, 0, -1)) eq $self->state
|| uc(substr($move, 1)) eq $self->state;
-};
+}, formatter => __PACKAGE__->meta->formatter_for('Bool');
command valid_word_from_state => sub {
my $self = shift;
my ($word) = @_;
my $state = $self->state;
return uc($word) =~ /\Q$state\E/;
-};
+}, formatter => __PACKAGE__->meta->formatter_for('Bool');
__PACKAGE__->meta->make_immutable;
no Bot::Games::OO::Game;