This page resumes the usage of the classes for a sample poker game.

// Create a table with 10 seats, 9 players and a dealer.
PokerTable table = new PokerTable(10);

// Create a texasholdem game on that table.
var game = new TexasHoldemPokerGame(table);

// add our player to the table
table.AddPlayer(_player,200);

Now start a loop till the end of the game.
while (!game.Finished)
{
    game.CreateAndPlayNewTurn();
    Thread.Sleep(3000);
}

Last edited Dec 13, 2010 at 10:18 PM by sebdg, version 4

Comments

No comments yet.