diff options
author | doy <doy@tozt.net> | 2009-04-27 01:35:59 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-04-27 01:35:59 -0500 |
commit | 59a7ebea42c16a097875fb7b8bfd36be8c616a57 (patch) | |
tree | e1144ebd1881dababc5c6b413b3f167db988fe5c | |
parent | 1bbf2d6fd9637de8159c32fad96bad07ce24d3bb (diff) | |
download | bot-games-59a7ebea42c16a097875fb7b8bfd36be8c616a57.tar.gz bot-games-59a7ebea42c16a097875fb7b8bfd36be8c616a57.zip |
only allow letters in words used in ghost
-rw-r--r-- | lib/Bot/Games/Game/Ghost.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bot/Games/Game/Ghost.pm b/lib/Bot/Games/Game/Ghost.pm index 4ce59ec..703c336 100644 --- a/lib/Bot/Games/Game/Ghost.pm +++ b/lib/Bot/Games/Game/Ghost.pm @@ -57,7 +57,7 @@ augment turn => sub { return "You must respond to " . $self->challenger . "'s challenge!" if $self->has_challenger; return "$state isn't a valid move!" - unless $self->valid_move($state); + unless $state =~ /a-z/i && $self->valid_move($state); $self->current_player($self->next_player); return $self->state($state); |