Merge from vendor branch GDB:
[dragonfly.git] / games / fish / fish.6
1 .\" Copyright (c) 1990, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)fish.6      8.1 (Berkeley) 5/31/93
33 .\" $FreeBSD: src/games/fish/fish.6,v 1.3 1999/08/27 23:29:02 peter Exp $
34 .\" $DragonFly: src/games/fish/fish.6,v 1.3 2007/03/11 19:05:31 swildner Exp $
35 .\"
36 .Dd May 31, 1993
37 .Dt FISH 6
38 .Os
39 .Sh NAME
40 .Nm fish
41 .Nd play
42 .Dq Go Fish
43 .Sh SYNOPSIS
44 .Nm
45 .Op Fl p
46 .Sh DESCRIPTION
47 .Nm
48 is the game
49 .Dq Go Fish ,
50 a traditional children's card game.
51 .Pp
52 The computer deals the player and itself seven cards, and places
53 the rest of the deck face-down (figuratively).
54 The object of the game is to collect
55 .Dq books ,
56 or all of the members of a single rank.
57 For example, collecting four 2's would give the player a
58 .Dq book of 2's .
59 .Pp
60 The options are as follows:
61 .Bl -tag -width ".Fl p"
62 .It Fl p
63 Professional mode.
64 .El
65 .Pp
66 The computer makes a random decision as to who gets to start the
67 game, and then the computer and player take turns asking each other
68 for cards of a specified rank.
69 If the asked player has any cards of the requested rank, they give
70 them up to the asking player.
71 A player must have at least one of the cards of the rank they request
72 in their hand.
73 When a player asks for a rank of which the other player has no
74 cards, the asker is told to
75 .Dq Go Fish! .
76 Then, the asker draws a card from the non-dealt cards.
77 If they draw the card they asked for, they continue their turn, asking
78 for more ranks from the other player.
79 Otherwise, the other player gets a turn.
80 .Pp
81 When a player completes a book, either by getting cards from the
82 other player or drawing from the deck, they set those cards aside and
83 the rank is no longer in play.
84 .Pp
85 The game ends when either player no longer has any cards in their hand.
86 The player with the most books wins.
87 .Pp
88 .Nm
89 provides instructions as to what input it accepts.
90 .Sh BUGS
91 The computer cheats only rarely.