packages icon



 PIG(1)                         X Version 11                          PIG(1)
                                  Release 4



 NAME
      pig - Hearts-like card game


 SYNOPSIS
      pig [-option ...]


 DESCRIPTION
      Pig is a card game similar to Hearts, derived from Chinese card game
      Gong3Zhu1 (pig-driving). It allows four players at different locations
      to play a card game simultaneously. The game is started by one player
      who has the xhost access permissions guaranteed by other players.
      During the game, players can communicate among themselves using a
      simple talk window. Conversations between two players are open to
      others.

      The objective of the game is to avoid getting positive scores and try
      to collect negative scores. Pig (Black Queen) and all the Hearts
      bigger than four are assigned positive scores, while Sheep (Diamond
      Jack) is assigned a negative score.  Transformer (Club Ten) will
      double the scores accumulated in one hand. Score assignments are:

      positive:
        Heart Two    : 0
        Heart Three  : 0
        Heart Four   : 0
        Heart Five   : +10
        Heart Six    : +10
        Heart Seven  : +10
        Heart Eight  : +10
        Heart Nine   : +10
        Heart Ten    : +10
        Heart Jack   : +20
        Heart Queen  : +30
        Heart King   : +40
        Heart Ace    : +50
        Pig (Black Jack): +100

      negative:
        Sheep (Diamond Jack): -100

      doubler:
        Transformer (Club Ten): doubles total score

      The total score for all the Hearts is +200. Once one player's score
      accumulated from all the hands played reaches +1000 the game is over.
      To make the game more exciting, Pig, Sheep, Heart Ace, and Transformer
      can be shown before one hand starts. Pig will have +200 after shown
      and Sheep will have -200. Showing Heart Ace will double all the Heart
      scores. Transformer becomes a quadrupler after shown.



                                    - 1 -      Formatted:  December 30, 2024






 PIG(1)                         X Version 11                          PIG(1)
                                  Release 4



      There are a few exceptions:

      (1) if a player collects all the Hearts (including ones without
      score), the score associated with all the Hearts becomes -200;

      (2) if a player collects Transformer alone at the end of a hand, the
      score with it will be -50 or -100 if shown.

      (3) if a player collects all the Hearts (including ones without
      score), plus Pig, Sheep, and Transformer, all other players will be
      considered lost and a new game will start.

      The game requires more thinking when played in pair and is more fun.


 OPTIONS
      -n1 name1
              specify player1's name (default: player1)

      -n2 name2
              specify player2's name (default: player2)

      -n3 name3
              specify player3's name (default: player3)

      -n4 name4
              specify player4's name (default: player4)

      -d1 host1:display1[.screen1]
              specify player1's display name (default specified by the
              DISPLAY environment variable)

      -d2 host2:display2[.screen2]
              specify player2's display name (default specified by the
              DISPLAY environment variable)

      -d3 host3:display3[.screen3]
              specify player3's display name (default specified by the
              DISPLAY environment variable)

      -d4 host4:display4[.screen4]
              specify player4's display name (default specified by the
              DISPLAY environment variable)

      -iconic start game with the windows as icons

      -noshow disable score doubling by skipping the card showing

      -pair   play game in pair





                                    - 2 -      Formatted:  December 30, 2024






 PIG(1)                         X Version 11                          PIG(1)
                                  Release 4



      -bell loudness
              specify bell loudness from 0 (no sound) to 100 (loudest)


 ENVIRONMENT
      DISPLAY To get the default host, display number, and screen for all
              the players' screens


 SEE ALSO
      X(1)


 BUGS
      There are fixed number of players, and computer does not play.


 AUTHOR
      Yanan Yin



































                                    - 3 -      Formatted:  December 30, 2024