public void MakeGoodOne() { var board = new Board(); var hands = board.Hands; var myHand = hands[Seat.South]; var otherHands = hands.OtherHands(Seat.South); new Deck() .Shuffle() .Deal(hands); var fact = new Balanced(); Assert.IsTrue(fact.MakeGood(myHand, otherHands)); Console.WriteLine(board); Assert.AreEqual(true, BalancedEvaluator.IsBalanced(myHand)); }
public bool IsTrue(Hand hand) { return(BalancedEvaluator.IsBalanced(hand)); }