public void TestPokenum() { StdDeck.CardMask pocket1 = new StdDeck.CardMask(); pocket1.Set("As"); pocket1.Set("Ac"); StdDeck.CardMask pocket2 = new StdDeck.CardMask(); pocket2.Set("Qs"); pocket2.Set("Qc"); StdDeck.CardMask[] pockets = { pocket1, pocket2 }; StdDeck.CardMask board = new StdDeck.CardMask(); board.Set("Ks"); board.Set("Kc"); board.Set("Kh"); StdDeck.CardMask dead = new StdDeck.CardMask(); dead.Set("As"); dead.Set("Ac"); dead.Set("Qs"); dead.Set("Qc"); dead.Set("Ks"); dead.Set("Kc"); dead.Set("Kh"); int npockets = 2; int nboard = 3; int niter = 1; int orderflag = 0; EnumResult result = Enum.Sample(Game.holdem, pockets, board, dead, npockets, nboard, niter, orderflag); result.Print(pockets, board); }
public void TestEnumResult() { EnumResult result = new EnumResult(); result.Clear(); StdDeck.CardMask[] pockets = {}; StdDeck.CardMask board = new StdDeck.CardMask(); result.Print(pockets, board); }
public void TestEnumResult() { EnumResult result = new EnumResult(); result.Clear(); StdDeck.CardMask[] pockets = { }; StdDeck.CardMask board = new StdDeck.CardMask(); result.Print(pockets, board); }