public void playTable() { int rounds = 0; foreach (Player.Player p in players) { p.bet = 0; } while (deal.markedForRemove.Count < players.Count - 1) { deal.play(); // MessageBox.Show("Kor vege!\n " + getHandValue(0) +"\n"+ getHandValue(1)); deal.pay(); removePlayers(); nextState(); resetFolds(); movePos(); rounds++; if (rounds == 5) { rounds = 0; smallBlind = bigBlind; bigBlind *= 2; } controls.vizualize(); } int tmpid = nextActiveId(0) + 1; MessageBox.Show("Winner is Player " + tmpid); controls.Invoke((Action) delegate { controls.newTable(); }); }