@@ -214,11 +214,36 @@ Blackjack::Blackjack(Configuration &conf) : Dealer(conf), rng(dev_random()), fif
214214// /conf+new_hand_reset_cards+details and different hitting/standing strategies to compare outcomes.
215215// /conf+new_hand_reset_cards+details If the actual dealt cards are not important but only reproducibility, it is easier to fix `rng_seed`.
216216// /conf+new_hand_reset_cards+default `true`
217- // /conf+new_hand_reset_cards+example quit_when_arranged_cards_run_out = false
218- // /conf+new_hand_reset_cards+example quit_when_arranged_cards_run_out = true
217+ // /conf+new_hand_reset_cards+example new_hand_reset_cards = false
218+ // /conf+new_hand_reset_cards+example new_hand_reset_cards = true
219219 conf.set (&new_hand_reset_cards, {" new_hand_reset_cards" });
220220
221221 // read arranged cards
222+ // /conf+cards+usage `cards = ` $\text{list of cards}
223+ // /conf+cards+details If this option is given, the dealer draws the cards specified on the list.
224+ // /conf+cards+details In the first hand, the order of the dealt cards
225+ // /conf+cards+details @
226+ // /conf+cards+details 1. Player’s first card
227+ // /conf+cards+details 2. Dealer’s first card
228+ // /conf+cards+details 3. Player’s second card
229+ // /conf+cards+details 4. ...
230+ // /conf+cards+details @
231+ // /conf+cards+details where the ellipsis dots indicate continuation of the game (i.e. dealer's hole card for `ahc` or player’s hit card for `enhc).
232+ // /conf+cards+details @
233+ // /conf+cards+details These cards will be the ones specified on the list in the prescribed order.
234+ // /conf+cards+details Each card is given by a two-character string, explained in @tbl:rank and @tbl:suit respectively.
235+ // /conf+cards+details Cards should be separated by spaces.
236+ // /conf+cards+details @
237+ // /conf+cards+details The dealer will continue drawing from the list of arranged cards until either
238+ // /conf+cards+details @
239+ // /conf+cards+details a. there are no more cards in the list, in which case the dealer will continue drawing cards from either
240+ // /conf+cards+details i. a shoe with the already-dealt cards removed, if `decks` is non-zero, or
241+ // /conf+cards+details ii. a set of infinite cards , if `decks` is zero.
242+ // /conf+cards+details b. the hand is over and `new_hand_reset_cards` is `true`, or
243+ // /conf+cards+details c. `quit_when_arranged_cards_run_out` is true, in which case the program exits.
244+ // /conf+cards+default Empty list
245+ // /conf+cards+example cards = TH JD 6C
246+ // /conf+cards+example cards = 2S 5D QS Ac
222247 if (conf.exists (" cards" )) {
223248 if (conf.exists (" cards_file" )) {
224249 std::cerr << " error: cannot have both cards and cards_file" << std::endl;
0 commit comments