diff options
Diffstat (limited to 'lib/Bot/Games')
-rw-r--r-- | lib/Bot/Games/Game/Chess.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Bot/Games/Game/Chess.pm b/lib/Bot/Games/Game/Chess.pm index 2f0adef..1739b9d 100644 --- a/lib/Bot/Games/Game/Chess.pm +++ b/lib/Bot/Games/Game/Chess.pm @@ -79,10 +79,9 @@ sub format_turn { my $self = shift; my ($turn) = @_; my $ret = $self->turn_count . ". "; - if ($self->game->to_move) { - $ret .= "... "; - } + $ret .= "... " if $self->game->to_move; $ret .= $turn->{san}; + return $ret; } __PACKAGE__->meta->make_immutable; |