diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-22 15:47:08 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-22 15:47:08 -0400 |
commit | 83aa502decd2113349a7883a7a0aaf4332c8cb75 (patch) | |
tree | de740fdeb9632362a1536b4c9bb24a5c7d62f5dd | |
parent | 7f1c579ea664fd007ca68f639a1ba22dd78052f8 (diff) | |
download | Bot-Zulip-Chess-83aa502decd2113349a7883a7a0aaf4332c8cb75.tar.gz Bot-Zulip-Chess-83aa502decd2113349a7883a7a0aaf4332c8cb75.zip |
correct newlines
-rw-r--r-- | lib/Bot/Zulip/Chess.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Bot/Zulip/Chess.pm b/lib/Bot/Zulip/Chess.pm index 13d563d..dcff031 100644 --- a/lib/Bot/Zulip/Chess.pm +++ b/lib/Bot/Zulip/Chess.pm @@ -178,15 +178,15 @@ sub draw_state ($self) { my $status = $self->_chessboard->status; if ($status->{mate}) { - $board .= "\nCHECKMATE\n"; + $board .= "CHECKMATE\n"; $self->reset_board; } elsif ($status->{stalemate}) { - $board .= "\nSTALEMATE\n"; + $board .= "STALEMATE\n"; $self->reset_board; } elsif ($status->{check}) { - $board .= "\nCHECK\n"; + $board .= "CHECK\n"; } my $to_move = $self->current_player; @@ -198,7 +198,7 @@ sub draw_state ($self) { } $board .= $to_move . " (" . ($self->_chessboard->to_move ? 'White' : 'Black') - . ") to move"; + . ") to move\n"; return $board; } @@ -274,7 +274,7 @@ sub format_board ($self) { $board[$i] = $prefix . $board[$i]; } - join("\n", @board) + join("\n", @board) . "\n" } __PACKAGE__->meta->make_immutable; |