From d41b91fb3e2156924067db53f418abf70551fbb1 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 3 Jul 2021 11:31:01 -0700 Subject: [PATCH] Plugins/Battleship: make scoreboard slightly less wide --- Plugins/Battleship.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Battleship.pm b/Plugins/Battleship.pm index 508fefb1..d398c9bd 100644 --- a/Plugins/Battleship.pm +++ b/Plugins/Battleship.pm @@ -2,7 +2,7 @@ # # Purpose: Simplified version of the Battleship board game. In this variant, # there is one game grid/board and every player's ships share it without -# overlapping. This adds nn element of strategy: everybody knows where their +# overlapping. This adds an element of strategy: everybody knows where their # own ships are located, ergo they know where NOT to aim. This helps to speed # games up by removing some randomness. # @@ -963,7 +963,7 @@ sub show_scoreboard { foreach my $player (sort { $b->{health} <=> $a->{health} } @{$self->{state_data}->{players}}) { next if $player->{removed}; - my $buf = sprintf("%-15s shots: %2d, hit: %2d, miss: %2d, acc: %3d%%, sunk: %2d, ships left: %d, sections left: %2d", + my $buf = sprintf("%-10s shots: %2d, hit: %2d, miss: %2d, acc: %3d%%, sunk: %2d, ships left: %d, sections left: %2d", "$player->{name}:", $player->{shots}, $player->{hit},