How e-neo/doudizhu works
This is a small command-line landlord-game card counter. The user enters their hand, then enters played hands; the program validates and removes each hand from a full deck and displays the remaining card counts. Parsing, compact card-count state, and display are all implemented in the single sampled source file, so they are represented as focused components rather than separate subsystems. The README mentions possible future additions, but no other product capability is present. Evidence is limited to the README and src/main.rs.
Main entry points: main.rs Interactive CLI
Components 5
Card Counter
- Interactive CLI
src/main.rs - Hand Parser
src/main.rs - Deck State
src/main.rs - Count Display
src/main.rs
Other components
- Player
Connections 6
- Player → Interactive CLI: enters hands
src/main.rs - Interactive CLI → Hand Parser: parses input
src/main.rs - Interactive CLI → Deck State: removes hand
src/main.rs - Interactive CLI → Count Display: prints counts
src/main.rs - Hand Parser → Deck State: provides cards
src/main.rs - Deck State → Count Display: provides counts
src/main.rs