Next: The libtarot test suite, Previous: Describing a game, Up: Programming with libtarot [Contents][Index]
In order to provide high-level features for machine learning, we use a card counter, which is a device that keeps track of who can have what cards. Because it requires extra memory and computing, it is not part of the ‘TarotGame’ API.
Copy source to dest.
Query how many cards are in player’s hand or in the dog / discard.
Return whether any of the n owners (or the dog or discard for ‘tarot_counter_may_be_in_doscard’) may own card.
Process all information of game and store it in counter.
An enumeration for the status of the ‘tarot_counter_and_game_impute’ function. It is either:
Try to infer the cards of all players and those of the dog by using the information in counter. After this function call, either the operation succeeded and now game knows all the cards of everyone (and counter is updated to keep in sync), or the function fails.
This operation uses the n bytes of seed to initialize the pseudo-random number generator.
Next: The libtarot test suite, Previous: Describing a game, Up: Programming with libtarot [Contents][Index]