public PlayerDecision ProcessDecision(Hand hand) { /* * TODO: decide if Hand parameter is * neccessary * * ComputerPlayer betting-logic is * based on bet amount and Hand value: */ var handValue = BlackJackRules.GethandValue(Hand); if (Bank.GetPlayerBet(Id) > 7) { if (handValue > 16) { return(PlayerDecision.Stay); } else { return(PlayerDecision.Hit); } } else { if (handValue > 18) { return(PlayerDecision.Stay); } else { return(PlayerDecision.Hit); } } }
public PlayerDecision ProcessDecision(Hand hand) { if (BlackJackRules.GethandValue(Hand) >= 17) { return(PlayerDecision.Stay); } return(PlayerDecision.Hit); }