//leave the round public void Fold(Pot mainPot) { folded = true; mainPot.getPlayersInPot().Remove(this); Message = "Fold"; SimplifiedMessage = "FOLDED"; }
/// <summary> /// Start a new round, dealer/smallblind position are moved up one spot /// players/counter variables are reset /// blinds are reset if necessary. /// </summary> public void startNextMatch() { players.ResetPlayers(); deck = new Deck(); if (roundCounter == 10) { roundCounter = 0; smallBlind.Amount *= 2; bigBlind.Amount = smallBlind.Amount * 2; mainPot.SmallBlind = SmallBlind; mainPot.BigBlind = BigBlind; } if (roundCounter != 0) { dealerPosition = incrementIndex(dealerPosition); smallBlind.position = incrementIndex(dealerPosition); bigBlind.position = incrementIndex(smallBlind.position); } roundCounter++; mainPot.Amount = 0; mainPot.AgressorIndex = -1; mainPot.MinimumRaise = bigBlind.Amount; tableHand.Clear(); currentIndex = dealerPosition; winnermessage = null; mainPot.getPlayersInPot().Clear(); sidePots.Clear(); }