summaryrefslogtreecommitdiffstats
path: root/lib/Bot
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-06-02 21:16:19 -0500
committerJesse Luehrs <doy@tozt.net>2009-06-02 21:16:19 -0500
commit06d773397d06f8aafd1929d41fcca070e527f2aa (patch)
treeda3d160af5bd7e7a8b0605de2b3fafe2e3e75e88 /lib/Bot
parenta5020cfdb1f6408654ff778a8d04cc39ac44f3ae (diff)
downloadbot-games-06d773397d06f8aafd1929d41fcca070e527f2aa.tar.gz
bot-games-06d773397d06f8aafd1929d41fcca070e527f2aa.zip
formatting
Diffstat (limited to 'lib/Bot')
-rw-r--r--lib/Bot/Games/Game/Chess.pm5
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;