public void TestHasOnePairWithNoCards() { var cardList = new List <Card>(); var result = DeckClassification.IsOnePair(cardList); Assert.IsFalse(result); }
public static int BetRequest(JObject gameState) { System.Console.Write(gameState); return(1000); System.Console.Write(gameState); GameState gameStateSerialized = ReadData.GameState(gameState); var currentPlayer = Player.GetCurrentPlayer(gameStateSerialized.players); var hand = DeckClassification.GetHand(GetActualCards(gameStateSerialized)); if (GetActualCards(gameStateSerialized).Count() < 6) { System.Console.Write("Karten nicht vollständig:" + gameStateSerialized.current_buy_in); return(gameStateSerialized.current_buy_in); } else { var einsatz = Bet.CalculateBet(hand, currentPlayer.stack); System.Console.Write("Karten vollständig:" + einsatz); return(einsatz); } }