private void HandleRaise(Player player, int bet) { int moneyAdded = player.RemoveFunds(bet - player.Bet); player.Bet += moneyAdded; player.HighestBet = Math.Max(player.HighestBet, player.Bet); this.pot += moneyAdded; this.currBet = player.Bet; this.minRaise = this.currBet + moneyAdded; this.lastAct = String.Format("{0} raises ${1}", player.Name, this.currBet); Console.WriteLine("{0}: {1}", this, this.lastAct); }
private void HandleCall(Player player) { int moneyAdded = player.RemoveFunds(this.currBet - player.Bet); player.Bet = this.currBet; this.pot += moneyAdded; this.lastAct = String.Format("{0} calls ${1}", player.Name, this.currBet); Console.WriteLine("{0}: {1}", this, this.lastAct); }