summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/Ghost.pm
blob: 4d5d9c0ab00b0b5001e63b91c4ad578b91cc1a89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl
package Bot::Games::Game::Ghost;
use Moose;
extends 'Bot::Games::Game::Ghostlike';

has '+help' => (
    default => "ghost help",
);

sub valid_move {
    my $self = shift;
    my ($move) = @_;
    return uc(substr($move, 0, -1)) eq $self->state;
}

1;