Game/Deal.ps1
$playerHand = $game.DrawCard($game.Width * .2, $game.Height *.6), $game.DrawCard(($game.Width * .2) +3 , ($game.Height *.6) + 2) $dealerHand = $game.DrawCard(($game.Width * .75),($game.Height * .25)), [PSCustomObject]@{ PSTypeName='PowerArcade.PlayingCard' Number = 0 Suite = '♠','♣'| Get-Random X = [int]($game.Width * .75) + 3 Y = [int]($game.Height * .25) + 2 } $game | Add-Member NoteProperty PlayerHand $playerHand -Force $game | Add-Member NoteProperty DealerHand $dealerHand -Force $game | Add-Member NoteProperty HandDealt $true -Force $game | Add-Member NoteProperty IsStanding $false -Force $game | Add-Member NoteProperty Status Playing -Force $game.ShowHands() $game.ShowScoreAndControls() |