From a351f82ee54e83d06890f6c4ccd92bfb6f9c3639 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 18 Sep 2023 20:26:16 +0200 Subject: [PATCH] Update play-pong.ps1 --- Scripts/play-pong.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Scripts/play-pong.ps1 b/Scripts/play-pong.ps1 index d6daa058..9b5bcd5e 100644 --- a/Scripts/play-pong.ps1 +++ b/Scripts/play-pong.ps1 @@ -1,15 +1,15 @@ -<# +<# .SYNOPSIS - Play the Pong game + Play the Pong game .DESCRIPTION - This PowerShell script lets 2 players play the famous Pong game. + This PowerShell script lets 2 players play the famous Pong game. NOTE: Player 1: moves up, moves down | Player 2: or | to quit .EXAMPLE - PS> ./play-pong.ps1 + PS> ./play-pong.ps1 .LINK - https://github.com/fleschutz/PowerShell + https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz | License: CC0 + Author: Markus Fleschutz | License: CC0 #> function DrawScores { @@ -34,7 +34,7 @@ function DrawPaddle($y, $isLeft) { } for ($i = 0; $i -lt 5; $i++) { [System.Console]::SetCursorPosition($x, $y + $i) - [System.Console]::Write("|") + [System.Console]::Write("│") } } @@ -55,7 +55,7 @@ function DrawBall($x, $y) { return } [System.Console]::SetCursorPosition($x, $y) - Write-Host "o" -foregroundColor red -noNewline + Write-Host "🔴" -noNewline } function ClearBall($x, $y) {