Expand description
Module for game actions like playing a card or scoring hands.
Functions§
- cut_
for_ deal - Performs the “cut for deal” action for a user in a specific game.
- discard_
cards_ to_ crib - Discards a set of cards from a player’s hand to the crib in a game.
- go
- Performs a “go” action for the user in a pegging phase of the game.
- host_
game - Hosts a new game for the specified user.
- join_
game - Joins an existing game as a guest.
- play_
card - Plays a card for the user in the pegging phase of a game.
- play_
computer - Starts a game against the computer for the specified user.
- score_
crib - Acknowledges the current dealer score and goes on to score the crib for the specified user if both players have acknowledged.
- score_
dealer - Acknowledges the current pone score and goes on to score the dealer’s hand for the specified user if both players have acknowledged.
- score_
pone - Acknowledges the end of plays and goes on to score the pone’s hand for the specified user if both players have acknowledged.
- start_
game - Acknowledges the cuts for deal, then starts a hosted game for the specified user.
- start_
next_ round - Acknowledges the crib score and goes on start the next deal / discarding round if both players have acknowledged.