/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn洗牌测试_Click(object sender, EventArgs e) { CardDeck t = new CardDeck(); Stack<String> cards = new Stack<string>(); for (int i = 0; i < CardDeck.MaxCards; i++) { cards.Push("C" + (i+1).ToString("D2")); } t.Init(cards,999); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn洗牌测试2_Click(object sender, EventArgs e) { Stack<String> cards = new Stack<string>(); cards.Push("M000001"); cards.Push("M000002"); cards.Push("F000001"); cards.Push("F000002"); cards.Push("F000003"); cards.Push("W000001"); CardDeck t = new CardDeck(); t.Init(cards,999); }