Crates.io | dai-di |
lib.rs | dai-di |
version | 0.1.2 |
source | src |
created_at | 2024-03-23 02:38:49.575737 |
updated_at | 2024-03-23 02:45:10.086316 |
description | A CLI implementation of the card game Dai Di (a.k.a. Big Two) |
homepage | https://zeldas.page |
repository | https://github.com/Velfi/dai-di |
max_upload_size | |
id | 1183128 |
size | 83,886 |
Dai Di (a.k.a. Big Two) is a trick-taking card game that originated in China. The game is played with a standard deck of 52 playing cards and is usually played by four players. The objective of the game is to be the first player to get rid of all of their cards.
For a detailed explanation of the rules, see the Wikipedia page.
Enter the space-separated list of the cards you want to play
For example: 2c 3h 4d 5s 6s
or 2C 2D 2H
or jc
You may toggle between sorting by rank and sorting by suit: enter sort
You may pass your turn: enter p
or pass
You may quit the game: enter q
or quit
An up-to-date version of Rust is required. The game can be installed with cargo and then run:
$ cargo install dai-di --locked
$ dai-di
Starting a new four-player game
Good luck Player! Enter "help" if you need some guidance.
The player with the 3♦ will go first.
To set your name in-game, set the DAI_DI_PLAYER_NAME
environment variable.