Skip to contents

Cards and ordering

The 32-card deck, and how its cards rank under each game type.

sk_suits sk_ranks sk_card_points
Skat card constants
sk_full_deck()
A full 32-card Skat deck
sk_card()
Construct a Skat card
format(<sk_card>) print(<sk_card>) `[`(<sk_card>)
Format and print Skat cards
sk_suit_of()
Extract the suit of a card
sk_rank_of()
Extract the rank of a card
sk_points()
Card-point value of one or more cards
sk_game_types()
Game types
sk_card_order()
Trick-taking order for a game type
sk_strength()
Numeric strength of cards under a game type
sk_is_trump()
Test whether a card is a trump
sk_effective_suit()
The effective suit a card follows

Bidding

Game values (Reizwerte) and the matador multiplier.

sk_base_value()
Base value of a game type
sk_matadors()
Count matadors (Spitzen)
sk_game_value()
Game value (Reizwert)

Play and scoring

Trick mechanics and the outcome of a completed game.

sk_legal_moves()
Legal cards to play
sk_trick_winner()
Determine the winner of a completed trick
sk_count_points()
Total card points in a set of cards
sk_score_game()
Score a completed Skat game

Players

Strategies that pick a card to play.

sk_player()
Create a Skat player
sk_choose()
Ask a player to choose a card
sk_mcts_move()
Determinized Monte Carlo move selection

Solver

Exact double-dummy endgame analysis.

sk_solve_dd()
Solve a double-dummy Skat endgame

Simulation and visualisation

Deal, play, repeat, and look at the results.

sk_deal()
Deal a Skat game
sk_play_game()
Play out a full Skat game
sk_simulate()
Simulate many Skat games
sk_plot_points()
Plot the distribution of declarer card points
sk_plot_winrate()
Plot win rate by game type

Rulesets and app

Rule variants and the interactive demo.

sk_ruleset()
Define a Skat ruleset
is_sk_ruleset()
Test whether an object is a ruleset
sk_run_app()
Launch the skatR demo Shiny app