deal(1)

πŸ’– deal(1) β€” Generate Bridge Hands πŸ’–

okay bestie, sit down, we're talking about deal, section 1 of the manual, and the tagline is literally Generate Bridge Hands because that's the whole vibe. it generates bridge hands. that's it, that's the girl. πŸƒβœ¨


✨ NAME ✨

deal β€” bridge hand generator πŸŽ€


🌸 SYNOPSIS 🌸

deal [ -ltv ] [ -e expr ] [ -i condition file ] [ -I format ] [ -s seed ] [ -[NSEW] hand-spec ] [ count ]

πŸ¦‹ DESCRIPTION πŸ¦‹

deal is a program to generate bridge hands. no cap, that's the job description. πŸ’…

when you first run deal, it will create its configuration directory, ~/.deal, and copy files from the deal system installation into that directory. so it's giving "move in, make yourself at home". 🏠 and like, users are free to make changes to their private configuration files β€” it's your directory, decorate it however you want. 🫢


πŸ’… OPTIONS πŸ’…

  • -l β€” write deals in a "single-line" format. one line, no scrolling, very demure. ✨
  • -t β€” print the distribution table and exit. the distribution table is an ordered list of all possible hand patterns for a single hand. like a lil catalogue of every shape a hand can be. πŸ‘‘
  • -v β€” be verbose, print the sample count. she's chatty. πŸ’¬
  • -e expr β€” evaluate the Tcl expression expr. 🧚
  • -i condition-file β€” file that defines the hand type to generate or the output format. (can be given multiple times β€” stack 'em up, bestie, it's a whole stack of conditions. 😭)
  • -I format β€” read hands from stdin. πŸ“₯ the formats available are: ddline, giblib, line, pbn, smartstack. the idea here is: you might deal, say, 10,000 hands which satisfy specific criteria, saving them to a file. then you can use that output for input with deal -I to find out which hands satisfy other constraints. it's giving recycling but for bridge hands. ♻️πŸ”₯
  • -s seed β€” initialize the random generator with seed. 🌱 (reproducibility icon behavior, iykyk)
  • -[NSEW] hand-spec β€” specifies the cards held by the specified hand. the hand-spec should be of the form: "AK8532 - KQ72 A65". voids must be represented with a - character β€” do NOT skip this, the dash is load-bearing, it's the whole point. πŸ’€ and hand-spec should be one argument, so the string should be quoted on the command line. quote it. protect it. she's fragile. πŸ₯Ί
  • count β€” number of hands to generate, default is 10. ten hands, freshly baked. πŸ“

🌈 SEE ALSO 🌈

  • HTML Documentation <file:///usr/share/doc/deal/html/index.html> πŸ“š
  • /usr/share/deal

πŸ‘‘ AUTHOR πŸ‘‘

deal was written by Thomas Andrews <deal@thomaso.best.vwh.net>, <https://bridge.thomasoandrews.com/deal/>. absolute legend, main character energy, we stan. 🫢

this manual page was copied from Christoph Berg's (<cb@df7cb.de>) manual page from the Debian project. credit where credit is due, periodt. πŸ’œ


and that's the whole page bestie!! πŸŽ€βœ¨ this one's running on perl v5.42.0, dated 2025-07-23, and it's page deal(1) β€” go forth and deal some iconic hands, no cap. πŸƒπŸ’–πŸ¦‹

πŸ“¦ where this page comes from
  • fedora 43: deal 3.1.12-3.fc43 Β· GPL-2.0-or-later AND GPL-1.0-or-later AND BSD-3-Clause-Attribution
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms