View Source API Reference Briscola v0.1.0
Modules
Module for the card game Briscola. Contains modules for cards, decks, players, the game itself, as well as a behavior for implementing game strategies.
Struct for a card in the game of Briscola. https://en.m.wikipedia.org/wiki/Italian_playing_cards
Struct representing a deck of cards.
Briscola.Game
module implements a struct that represents a game state,
and functions to manipulate the game state according to the stages of the game.
Struct for a player in the game of Briscola. Players have a hand of playing cards and a pile of won cards. The pile of won cards is used for scoring.
A protocol for defining strategies for playing Briscola.
A briscola strategy implementation that asks a player for a card to play via stdin.
A briscola strategy that chooses a random card from the player's hand.
A module for simulating games of Briscola using different strategies.
A briscola strategy that chooses the strongest card from the player's hand.
Mix Tasks
A mix task to play Briscola.