Game/HitMe.ps1
if (-not $game.HandDealt) { $game.Deal() return } if ($game.IsStanding) { return } $game.PlayerHand += [PSCustomObject]@{ PSTypeName='PowerArcade.PlayingCard' Number = 1..13 | Get-Random Suite = '♠','♣','♥','♦' | Get-Random X = [int]($game.Width * .2) + (3 * $game.PlayerHand.Count) Y = [int]($game.Height * .6) + (2 * $game.PlayerHand.Count) } $game.ShowHands() $game.ShowScoreAndControls() |