diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-06-01 02:56:04 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-06-01 02:57:29 -0500 |
commit | 8177ff4ccdcc04b636b52aeeb1a0b3d901a60c54 (patch) | |
tree | ae5f3203462d41a0fbd4165d9c4777454f8d4c44 /lib/Bot/Games/Game/Xghost.pm | |
parent | da928b59285b96179db5cecd1325efe3aff1e93b (diff) | |
download | bot-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/Xghost.pm')
-rw-r--r-- | lib/Bot/Games/Game/Xghost.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bot/Games/Game/Xghost.pm b/lib/Bot/Games/Game/Xghost.pm index 6c783ab..516fff6 100644 --- a/lib/Bot/Games/Game/Xghost.pm +++ b/lib/Bot/Games/Game/Xghost.pm @@ -12,13 +12,13 @@ command valid_move => sub { my ($move) = @_; return is_substring($self->state, uc($move)) && length($self->state) + 1 == length($move); -}, formatter => __PACKAGE__->meta->formatter_for('Bool'); +}, formatter => 'Bool'; command valid_word_from_state => sub { my $self = shift; my ($word) = @_; return is_substring($self->state, uc($move)); -}, formatter => __PACKAGE__->meta->formatter_for('Bool'); +}, formatter => 'Bool'; __PACKAGE__->meta->make_immutable; no Bot::Games::OO::Game; |