View Source mix briscola.play (Briscola v0.1.0)

A mix task to play Briscola.

This task will start a game of Briscola and allow the player to play against AI.

Enter the number of the card in your hand that you want to play when prompted. (1 for the first card, 2 for the second, etc.)

Accepts the following arguments:

  • --players or -p: The number of players in the game. Default is 2.
  • --strategies or -s: A comma-separated list of AI strategies to use. By default AI will select random cards. The strategy name is the module name, i.e. "Briscola.Strategy.Random".

Summary

Functions

Callback implementation for Mix.Task.run/1.

Functions

run(args)

Callback implementation for Mix.Task.run/1.