public void SoftStandingNumberPlayer18Dealer9() { PlayerState expectedState = PlayerState.Hit; //Deck deck = new Deck(52); Player player = new FiveCountStrategy { Chips = 500, hand = new Hand { cards = new List <Card>() { new Card(Suit.Club, Face.Ace), new Card(Suit.Club, Face.Seven) }, }, Count = new List <int>() { 0 } }; player.hand.SetHandValues(); PlayerState state = (player.React(dealersUpCard: new Card(Suit.Club, Face.Nine), ref player.CurrentState, player.hand, player.Count)); Assert.AreEqual(expectedState, state); }
public void HoldingHard16Against10Test() { PlayerState expectedState = PlayerState.Hit; Player player = new FiveCountStrategy { Chips = 500, hand = new Hand { cards = new List <Card>() { new Card(Suit.Club, Face.Ten), new Card(Suit.Club, Face.Six) } }, Count = new List <int>() { 0 } }; player.hand.SetHandValues(); PlayerState state = (player.React(dealersUpCard: new Card(Suit.Club, Face.Ten), ref player.CurrentState, player.hand, new List <int>())); Assert.AreEqual(expectedState, state); }
public void DoubleOnFourFourAgainstFourTest() { PlayerState expectedState = PlayerState.DoubleDown; //Deck deck = new Deck(52); Player player = new FiveCountStrategy { Chips = 500, hand = new Hand { cards = new List <Card>() { new Card(Suit.Club, Face.Four), new Card(Suit.Heart, Face.Four) }, }, Count = new List <int>() { 4 } }; player.hand.SetHandValues(); PlayerState state = (player.React(dealersUpCard: new Card(Suit.Club, Face.Four), ref player.CurrentState, player.hand, player.Count)); Assert.AreEqual(expectedState, state); }
public void DoubleDownExceptSixTwoTest() { PlayerState expectedState = PlayerState.DoubleDown; Player player = new FiveCountStrategy { Chips = 500, hand = new Hand { cards = new List <Card>() { new Card(Suit.Club, Face.Six), new Card(Suit.Club, Face.Two) } }, Count = new List <int>() { 0 } }; player.hand.SetHandValues(); PlayerState state = (player.React(dealersUpCard: new Card(Suit.Club, Face.Five), ref player.CurrentState, player.hand, new List <int>())); Assert.AreNotEqual(expectedState, state); }
public void NoFivesSplit10Dealer6Test() { PlayerState expectedState = PlayerState.Split; //Deck deck = new Deck(52); Player player = new FiveCountStrategy { Chips = 500, hand = new Hand { cards = new List <Card>() { new Card(Suit.Club, Face.Ten), new Card(Suit.Heart, Face.Ten) }, }, Count = new List <int>() { 4 } }; player.hand.SetHandValues(); PlayerState state = (player.React(dealersUpCard: new Card(Suit.Club, Face.Six), ref player.CurrentState, player.hand, player.Count)); Assert.AreEqual(expectedState, state); }