예제 #1
0
        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));
        }
예제 #2
0
 public bool IsTrue(Hand hand)
 {
     return(BalancedEvaluator.IsBalanced(hand));
 }