blob: 1d65683a1e191a33051e08319007902d706f1e1b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/perl
package Bot::Games::Game::Ghost;
use Bot::Games::OO;
extends 'Bot::Games::Game::Ghostlike';
has '+help' => (
default => "ghost help",
);
command valid_move => {
my $self = shift;
my ($move) = @_;
return uc(substr($move, 0, -1)) eq $self->state;
};
__PACKAGE__->meta->make_immutable;
no Bot::Games::OO;
1;
|