summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-04-27 01:35:59 -0500
committerdoy <doy@tozt.net>2009-04-27 01:35:59 -0500
commit59a7ebea42c16a097875fb7b8bfd36be8c616a57 (patch)
treee1144ebd1881dababc5c6b413b3f167db988fe5c
parent1bbf2d6fd9637de8159c32fad96bad07ce24d3bb (diff)
downloadbot-games-59a7ebea42c16a097875fb7b8bfd36be8c616a57.tar.gz
bot-games-59a7ebea42c16a097875fb7b8bfd36be8c616a57.zip
only allow letters in words used in ghost
-rw-r--r--lib/Bot/Games/Game/Ghost.pm2
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);