diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-06-02 21:16:19 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-06-02 21:16:19 -0500 |
commit | 06d773397d06f8aafd1929d41fcca070e527f2aa (patch) | |
tree | da3d160af5bd7e7a8b0605de2b3fafe2e3e75e88 /lib/Bot/Games | |
parent | a5020cfdb1f6408654ff778a8d04cc39ac44f3ae (diff) | |
download | bot-games-06d773397d06f8aafd1929d41fcca070e527f2aa.tar.gz bot-games-06d773397d06f8aafd1929d41fcca070e527f2aa.zip |
formatting
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; |