private int playout(int card_one, int card_two) { int score = 0; deck d = new deck(); for (int i = 0; i <= NUM_PLAYOUT; i++) { d.removeCard(card_one); d.removeCard(card_two); d.shuffle(); score += this.score(card_one, card_two, d.draw(), d.draw(), d.draw(), d.draw(), d.draw()); } return(score / NUM_PLAYOUT); }
private int playout(int card_one, int card_two, int card_three, int card_four, int card_five) { int score = 0; deck d = new deck(); DateTime start = DateTime.Now; DateTime end = DateTime.Now; for (; ;) { score += this.score(card_one, card_two, card_three, card_four, card_five, d.draw(), d.draw()); d.shuffle(); end = DateTime.Now; TimeSpan Duration = end - start; if (Duration.TotalMilliseconds > MAX_TIME) { break; } } return(score / NUM_PLAYOUT); }
private int playout(int card_one, int card_two, int card_three, int card_four, int card_five, int card_six) { int score = 0; deck d = new deck(); DateTime start = DateTime.Now; DateTime end = DateTime.Now; for (; ; ) { score += this.score(card_one, card_two, card_three, card_four, card_five, card_six, d.draw()); d.shuffle(); end = DateTime.Now; TimeSpan Duration = end - start; if (Duration.TotalMilliseconds > MAX_TIME) { break; } } return score / NUM_PLAYOUT; }
private int playout(int card_one, int card_two) { int score = 0; deck d = new deck(); for (int i = 0; i <= NUM_PLAYOUT; i++) { d.removeCard(card_one); d.removeCard(card_two); d.shuffle(); score += this.score(card_one, card_two, d.draw(), d.draw(), d.draw(), d.draw(), d.draw()); } return score / NUM_PLAYOUT; }