mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-16 23:18:17 +02:00
Update play-pong.ps1
This commit is contained in:
parent
8af228e009
commit
a351f82ee5
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Play the Pong game
|
||||
.DESCRIPTION
|
||||
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user