mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 17:38:19 +02:00
Update play-pong.ps1
This commit is contained in:
parent
8af228e009
commit
a351f82ee5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user