summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/Chess.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bot/Games/Game/Chess.pm')
-rw-r--r--lib/Bot/Games/Game/Chess.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bot/Games/Game/Chess.pm b/lib/Bot/Games/Game/Chess.pm
index 752b381..473fe21 100644
--- a/lib/Bot/Games/Game/Chess.pm
+++ b/lib/Bot/Games/Game/Chess.pm
@@ -29,7 +29,8 @@ augment turn => sub {
my $self = shift;
my ($player, $move) = @_;
$self->add_player($player) unless $self->has_player($player);
- return unless $self->has_player($player);
+ return "The game has already begun between " . join ' and ', $self->players
+ unless $self->has_player($player);
my $status = eval { $self->game->go_move($move) };
return $@ if $@;