Update play-pong.ps1

This commit is contained in:
Markus Fleschutz 2023-09-18 20:26:16 +02:00
parent 8af228e009
commit a351f82ee5

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Play the Pong game Play the Pong game
.DESCRIPTION .DESCRIPTION
@ -34,7 +34,7 @@ function DrawPaddle($y, $isLeft) {
} }
for ($i = 0; $i -lt 5; $i++) { for ($i = 0; $i -lt 5; $i++) {
[System.Console]::SetCursorPosition($x, $y + $i) [System.Console]::SetCursorPosition($x, $y + $i)
[System.Console]::Write("|") [System.Console]::Write("")
} }
} }
@ -55,7 +55,7 @@ function DrawBall($x, $y) {
return return
} }
[System.Console]::SetCursorPosition($x, $y) [System.Console]::SetCursorPosition($x, $y)
Write-Host "o" -foregroundColor red -noNewline Write-Host "🔴" -noNewline
} }
function ClearBall($x, $y) { function ClearBall($x, $y) {