diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 19:54:44 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 19:54:44 -0400 |
| commit | a9157ce950dfe2fc30795d43b9d79b9d1bffc48b (patch) | |
| tree | 9df484304b560466d145e662c1c254ff0e9ae0ba /static/openbsd/man6 | |
| parent | 160aa82b2d39c46ad33723d7d909cb4972efbb03 (diff) | |
docs: Added All OpenBSD Manuals
Diffstat (limited to 'static/openbsd/man6')
40 files changed, 7927 insertions, 0 deletions
diff --git a/static/openbsd/man6/adventure.6 b/static/openbsd/man6/adventure.6 new file mode 100644 index 00000000..4d512653 --- /dev/null +++ b/static/openbsd/man6/adventure.6 @@ -0,0 +1,65 @@ +.\" $OpenBSD: adventure.6,v 1.9 2014/09/08 01:27:54 schwarze Exp $ +.\" +.\" Copyright (c) 1991, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" The game adventure was originally written in Fortran by Will Crowther +.\" and Don Woods. It was later translated to C and enhanced by Jim +.\" Gillogly. This code is derived from software contributed to Berkeley +.\" by Jim Gillogly at The Rand Corporation. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)adventure.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: September 8 2014 $ +.Dt ADVENTURE 6 +.Os +.Sh NAME +.Nm adventure +.Nd an exploration game +.Sh SYNOPSIS +.Nm adventure +.Op Ar saved-file +.Sh DESCRIPTION +The object of the game is to locate and explore Colossal Cave, find the +treasures hidden there, and bring them back to the building with you. +The program is self-descriptive to a point, but part of the game is to +discover its rules. +.Pp +To terminate a game, enter +.Dq quit ; +to save a game for later resumption, enter +.Dq suspend . +.Sh AUTHORS +.An -nosplit +The game +.Nm +was originally written in Fortran by +.An Will Crowther +and +.An Don Woods . +It was later translated to C and enhanced by +.An Jim Gillogly Aq Mt jim@rand.org . diff --git a/static/openbsd/man6/arithmetic.6 b/static/openbsd/man6/arithmetic.6 new file mode 100644 index 00000000..d6ed12b5 --- /dev/null +++ b/static/openbsd/man6/arithmetic.6 @@ -0,0 +1,106 @@ +.\" $OpenBSD: arithmetic.6,v 1.12 2015/09/12 16:10:25 schwarze Exp $ +.\" +.\" Copyright (c) 1989, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" Eamonn McManus of Trinity College Dublin. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)arithmetic.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: September 12 2015 $ +.Dt ARITHMETIC 6 +.Os +.Sh NAME +.Nm arithmetic +.Nd quiz on simple arithmetic +.Sh SYNOPSIS +.Nm arithmetic +.Op Fl o Cm +\-x/ +.Op Fl r Ar range +.Sh DESCRIPTION +.Nm +asks you to solve problems in simple arithmetic. +Each question must be answered correctly before going on to the next. +After every 20 problems, it prints the score so far and the time taken. +You can quit at any time by typing the interrupt or end-of-file character. +.Pp +The options are as follows: +.Bl -tag -width indent +.It Fl o Cm +\-x/ +By default, +.Nm +asks questions on addition of numbers from 0 to 10, and corresponding +subtraction. +By supplying one or more of the characters +.Cm +\-x/ , +you can ask for problems in addition, subtraction, multiplication, and +division, respectively. +If you give one of these characters more than once, that kind of problem +will be asked correspondingly more often. +.It Fl r Ar range +If a +.Ar range +is supplied, +.Nm +selects the numbers in its problems in the following way. +For addition and multiplication, the numbers to be added or multiplied +are between 0 and +.Ar range , +inclusive. +For subtraction and division, both the required result and the number to +divide by or subtract will be between 0 and +.Ar range . +(Of course, +.Nm +will not ask you to divide by 0.) +The default +.Ar range +is 10. +.El +.Pp +When you get a problem wrong, +.Nm +will remember the numbers involved, and will tend to select those numbers +more often than others, in problems of the same sort. +Eventually it will forgive and forget. +.Pp +.Nm +cannot be persuaded to tell you the right answer. +You must work it out for yourself. +.Sh DIAGNOSTICS +.Dq What? +if you get a question wrong. +.Dq Right! +if you get it right. +.Dq Please type a number. +if +.Nm +doesn't understand what you typed. +.Sh SEE ALSO +.Xr bc 1 , +.Xr dc 1 diff --git a/static/openbsd/man6/atc.6 b/static/openbsd/man6/atc.6 new file mode 100644 index 00000000..a4402379 --- /dev/null +++ b/static/openbsd/man6/atc.6 @@ -0,0 +1,609 @@ +.\" $OpenBSD: atc.6,v 1.25 2022/02/18 23:17:13 jsg Exp $ +.\" +.\" Copyright (c) 1990, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" Ed James. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)atc.6 8.1 (Berkeley) 5/31/93 +.\" +.\" Copyright (c) 1986 Ed James. All rights reserved. +.\" +.Dd $Mdocdate: February 18 2022 $ +.Dt ATC 6 +.Os +.Sh NAME +.Nm atc +.Nd air traffic controller game +.Sh SYNOPSIS +.Nm atc +.Op Fl lpqst +.Op Fl f Ar game +.Op Fl g Ar game +.Op Fl r Ar seed +.Sh DESCRIPTION +.Nm +lets you try your hand at the nerve-wracking duties of an air traffic +controller without endangering the lives of millions of +travelers each year. +Your responsibilities require you to direct the flight of jets +and prop planes into and out of the flight arena and airports. +The speed +.Pq update time +and frequency of the planes depend on the +difficulty of the chosen arena. +.Bl -tag -width "-g gamex" +.It Fl f Ar game +Play the named +.Ar game . +If the game listed is not one of the ones printed by the +.Fl l +option, the default game is played. +.It Fl g Ar game +Same as +.Fl f . +.It Fl l +Print a list of available games and exit. +The first game name printed is the default game. +.It Fl p +Print the path to the special directory where +.Nm +expects to find its private files. +This is used during the installation of the program. +.It Fl q +Play quietly +.Pq no bells . +.It Fl r Ar seed +Set the random seed. +This option can be used to replay a specific game. +.It Fl s +Print the score list +.Pq formerly the Top Ten list . +The scoring information is the game time in +.Dq radar updates , +the wall-clock game time, and the number of planes that were +successfully dealt with. +.It Fl t +Same as +.Fl s . +.El +.Sh GOALS +Your goal in +.Nm +is to keep the game going as long as possible. +There is no winning state, except to beat the times of other players. +You will need to: launch planes at airports +.Po +by instructing them to increase their altitude +.Pc ; +land planes at airports +(by instructing them to go to altitude zero when exactly over the airport); +and maneuver planes out of exit points. +.Pp +Several things will cause the end of the game. +Each plane has a destination +.Pq see information area , +and sending a plane to the wrong destination is an error. +Planes can run out of fuel, or can collide. +Collision is defined as adjacency, horizontal or vertical. +A plane leaving the arena in any other way than through its correct +destination exit is an error as well. +.Pp +Scores are sorted in order of the number of planes safe. +The other statistics are provided merely for fun. +There is no penalty for taking longer than another player +.Pq except in the case of ties . +.Pp +Suspending a game is not permitted. +If you get a talk message, tough. +When was the last time an Air Traffic Controller got called away to +the phone? +.Sh "THE DISPLAY" +Depending on the terminal used, the +.Nm +screen will be divided into 4 areas. +It should be stressed that the terminal driver portion of the +game was designed to be reconfigurable, so the display format can vary +depending on the version you are playing. +The descriptions here are based on the ASCII version of the game. +The game rules and input format, however, should remain consistent. +Control-L redraws the screen, should it become muddled. +.Ss RADAR +The first screen area is the radar display, showing the relative locations +of the planes, airports, standard entry/exit points, radar +beacons, and +.Dq lines +which simply serve to aid you in guiding +the planes. +.Pp +Planes are shown as a single letter with an altitude. +If the numerical altitude is a single digit, then it represents +thousands of feet. +Some distinction is made between the prop planes and the jets. +On ASCII terminals, prop planes are +represented by an upper case letter, jets by a lower case letter. +.Pp +Airports are shown as a number and some indication of the direction +planes must be going to land at the airport. +On ASCII terminals, this is one of +.Sq ^ , +.Sq \&> , +.Sq \&< , +or +.Sq v , +to indicate +north +.Pq 0 degrees , +east +.Pq 90 , +west +.Pq 270 , +and south +.Pq 180 , +respectively. +The planes will also take off in this direction. +.Pp +Beacons are represented as circles or asterisks and a number. +Their purpose is to offer a place of easy reference to the plane pilots. +See +.Sx The Delay Command +under the input section of this manual. +.Pp +Entry/exit points are displayed as numbers along the border of the +radar screen. +Planes will enter the arena from these points without warning. +These points have a direction associated with them, and +planes will always enter the arena from this direction. +On the ASCII version of +.Nm atc , +this direction is not displayed. +It will become apparent what this direction is as the game progresses. +.Pp +Incoming planes will always enter at the same altitude: 7000 feet. +For a plane to depart successfully through an entry/exit point, +it must be flying at 9000 feet. +It is not necessary for the planes to be flying in any particular +direction when they leave the arena +.Pq yet . +.Ss "INFORMATION AREA" +The second area of the display is the information area, which lists +the time +.Pq number of updates since start +and the number of planes you +have directed safely out of the arena. +Below this is a list of planes currently in the air, followed by a +blank line, and then a list of planes on the ground +.Pq at airports . +Each line lists the plane name and its current altitude, +an optional asterisk indicating low fuel, the plane's destination, +and the plane's current command. +Changing altitude is not considered +to be a command and is therefore not displayed. +The following are some possible information lines: +.Pp +.Dl B4*A0: Circle @ b1 +.Pp +.Dl g7 E4: 225 +.Pp +The first example shows a prop plane named +.Sq B +that is flying at 4000 +feet. +It is low on fuel (note the +.Sq * ) . +Its destination is +Airport #0. +The next command it expects +to do is circle when it reaches Beacon #1. +The second example shows a jet named +.Sq g +at 7000 feet, destined for +Exit #4. +It is just now executing a turn to 225 degrees +.Pq Southwest . +.Ss "INPUT AREA" +The third area of the display is the input area. +It is here that your input is reflected. +See the +.Sx INPUT +heading of this manual for more details. +.Ss "AUTHOR AREA" +This area is used simply to give credit where credit is due. :-) +.Sh INPUT +A command completion interface is built into +the game. +At any time, typing +.Sq \&? +will list possible input characters. +Typing a backspace +.Pq your erase character +backs up, erasing the last part of the command. +When a command is complete, a return enters it, and +any semantic checking is done at that time. +If no errors are detected, the command is sent to the appropriate plane. +If an error is discovered +during the check, the offending statement will be underscored and a +.Pq somewhat +descriptive message will be printed under it. +.Pp +The command syntax is broken into two parts: +.Em Immediate Only +and +.Em Delayable +commands. +.Em Immediate Only +commands happen on the next +update. +.Em Delayable +commands also happen on the next update unless they +are followed by an optional predicate called the +.Em Delay +command. +.Pp +In the following tables, the syntax +.Em [0\-9] +means any single digit, and +.Em <dir> +refers to the keys around the +.Sq s +key, namely +.Dq wedcxzaq . +In absolute references, +.Sq q +refers to Northwest or 315 degrees, and +.Sq w +refers to North, or 0 degrees. +In relative references, +.Sq q +refers to \-45 degrees or 45 degrees left, and +.Sq w +refers to 0 degrees, or no change in direction. +.Pp +All commands start with a plane letter. +This indicates the recipient of the command. +Case is ignored. +.Ss "IMMEDIATE ONLY COMMANDS" +.Bd -ragged +.Bl -tag -width "aaaa" +.It Sy "a [ cd+- ]" Em number +Altitude: +Affect a plane's altitude, possibly requesting takeoff. +.Sq \&+ +and +.Sq \&- +are the same as +.Sq c +and +.Sq d . +.Bl -tag -width "aaaaaaaaaa" -compact +.It Sy a [0\-9] +Go to the given altitude +.Pq thousands of feet . +.It Sy c [0\-9] +Climb: +Relative altitude change +.Pq thousands of feet . +.It Sy d [0\-9] +Descend: +Relative altitude change +.Pq thousands of feet . +.El +.It Sy m +Mark: +Display in highlighted mode. +Plane and command information is displayed normally. +.It Sy i +Ignore: +Do not display highlighted. +Command information is displayed as a line of dashes if there is no command. +.It Sy u +Unmark: +Same as ignore, but if a delayed command is processed, +the plane will become marked. +This is useful if you want to forget about a plane during part, but not +all, of its journey. +.El +.Ed +.Ss "DELAYABLE COMMANDS" +.Bd -ragged +.Bl -tag -width "aaaa" +.It Sy c +Circle: +Have the plane circle. +.It Sy "t [ l-r+LR ] [ dir ]" No or Sy "tt [ abe* ]" Em number +Turn: +Change direction. +.Bl -tag -width "aaaaaaaaaa" -compact +.It Sy t<dir> +Turn to the absolute compass heading given. +The shortest turn will be taken. +.It Sy tl +Left: +Turn counterclockwise +.Pq 45 degrees by default . +.Bl -tag -width "tl <dir>" -compact +.It Sy tl <dir> +Turn ccw the given number of degrees. +Zero degrees +.Pq Sq w +is no turn; 45 degrees ccw is +.Sq e . +The shortest turn will be taken; for instance, if you specify +a ccw turn of 315 degrees +.Pq Sq q , +which should take several turns, +the plane will really turn 45 cw, which takes only one turn. +.El +.It Sy tr +Right: +Turn clockwise +.Pq 45 degrees by default . +.Bl -tag -width "tl <dir>" -compact +.It Sy tr <dir> +Analogous to turn left <dir>. +.El +.It Sy tL +Turn counterclockwise 90 degrees. +.It Sy tR +Turn clockwise 90 degrees. +.It Sy "tt [abe*]" +Towards: +Turn towards a beacon, airport or exit. +The turn is just an estimate. +.Bl -tag -width "aaaaaaaaaa" -compact +.It Sy ttb Em number +Turn towards the specified beacon. +.It Sy tt* Em number +Equivalent to +.Sy ttb . +.It Sy tte Em number +Turn towards the specified exit. +.It Sy tta Em number +Turn towards the specified airport. +.El +.El +.El +.Ed +.Ss "THE DELAY COMMAND" +The +.Em Delay +(a/@) +command may be appended to any +.Em Delayable +command. +It allows the controller to instruct a plane to do an action +when the plane reaches a particular beacon +.Pq or other objects in future versions . +.Bd -ragged -offset indent +.Bl -tag -width indent -compact +.It Sy a/@ +At: +Do the given delayable command when the plane reaches the given beacon. +.Bl -tag -width "aaaaaaaaaa" -compact +.It Sy ab Em number +The letter is redundant to allow for expansion. +.Sq \&@ +can be used instead of +.Sq a . +.El +.El +.Ed +.Ss "MARKING, UNMARKING AND IGNORING" +Planes are +.Em marked +by default when they enter the arena. +This means they are displayed in highlighted mode on the radar display. +A plane may also be either +.Em unmarked +or +.Em ignored . +An +.Em ignored +plane is drawn in unhighlighted mode, and a line of dashes is displayed in +the command field of the information area. +The plane will remain this way until a mark command has been issued. +Any other command will be issued, +but the command line will return to a line of dashes when the command +is completed. +.Pp +An +.Em unmarked +plane is treated the same as an ignored plane, except that it will +automatically switch to +.Em marked +status when a delayed command has been processed. +This is useful if you want to forget about a plane for a while, +but its flight path has not yet been completely set. +.Pp +As with all of the commands, marking, unmarking and ignoring will take effect +at the beginning of the next update. +Do not be surprised if the plane does +not immediately switch to unhighlighted mode. +.Ss EXAMPLES +.Bd -ragged -offset indent +.Bl -tag -width "gtte4ab2" +.It atlab1 +Plane A: turn left at beacon #1 +.It cc +Plane C: circle +.It gtte4ab2 +Plane G: turn towards exit #4 at beacon #2 +.It ma+2 +Plane M: altitude: climb 2000 feet +.It stq +Plane S: turn to 315 +.It xi +Plane X: ignore +.El +.Ed +.Sh "OTHER INFORMATION" +.Bl -bullet +.It +Jets move every update; prop planes move every other update. +.It +All planes turn at most 90 degrees per movement. +.It +Planes enter at 7000 feet and leave at 9000 feet. +.It +Planes flying at an altitude of 0 crash if they are not over an airport. +.It +Planes waiting at airports can only be told to take off +.Pq climb in altitude . +.It +Pressing return +.Pq that is, entering an empty command +will perform the next update immediately. +This allows the player to +.Dq fast forward +the game clock if nothing interesting is happening. +.El +.Sh "NEW GAMES" +The +.Pa Game_List +file lists the currently available play fields. +New field description file names must be placed in this file to be +playable. +If a player specifies a game not in this file, the score will not be logged. +.Pp +The game field description files are broken into two parts. +The first part is the definition section. +Here, the four tunable game parameters must be set. +These variables are set with the syntax: +.Pp +.Dl "variable = number;" +.Pp +Variable may be one of: +.Li update , +indicating the number of seconds between forced updates; +.Li newplane , +indicating +.Pq about +the number of updates between new plane entries; +.Li width , +indicating the width of the play field; or +.Li height , +indicating the height of the play field. +.Pp +The second part of the field description files describes the locations +of the exits, the beacons, the airports and the lines. +The syntax is as follows: +.Bd -ragged -offset indent +.Bl -tag -width "airport:" -compact +.It beacon : +(x y) ... ; +.It airport : +(x y direction) ... ; +.It exit : +(x y direction) ... ; +.It line : +[ (x1 y1) (x2 y2) ] ... ; +.El +.Ed +.Pp +For beacons, a simple x, y coordinate pair is used +.Pq enclosed in parentheses . +Airports and exits require a third value, a direction, which is one +of +.Dq wedcxzaq . +For airports, this is the direction that planes must be going to take +off and land, and for exits, this is the direction that planes will be going +when they enter +the arena. +This may not seem intuitive, but as there is no restriction on +direction of exit, this is appropriate. +Lines are slightly different, since they need two coordinate pairs to +specify the line endpoints. +These endpoints must be enclosed in square brackets. +.Pp +All statements are semi-colon (;) terminated. +Multiple item statements accumulate. +Each definition must occur exactly once, before any +item statements. +Comments begin with a hash (#) symbol +and terminate with a newline. +The coordinates are between zero and width-1 and height-1 +inclusive. +All of the exit coordinates must lie on the borders, and +all of the beacons and airports must lie inside of the borders. +Line endpoints may be anywhere within the field, so long as +the lines are horizontal, vertical or +.Em exactly +diagonal. +.Ss "FIELD FILE EXAMPLE" +.Bd -literal -offset indent +# This is the default game. + +update = 5; +newplane = 5; +width = 30; +height = 21; + +exit: ( 12 0 x ) ( 29 0 z ) ( 29 7 a ) ( 29 17 a ) + ( 9 20 e ) ( 0 13 d ) ( 0 7 d ) ( 0 0 c ) ; + +beacon: ( 12 7 ) ( 12 17 ) ; + +airport: ( 20 15 w ) ( 20 18 d ) ; + +line: [ ( 1 1 ) ( 6 6 ) ] + [ ( 12 1 ) ( 12 6 ) ] + [ ( 13 7 ) ( 28 7 ) ] + [ ( 28 1 ) ( 13 16 ) ] + [ ( 1 13 ) ( 11 13 ) ] + [ ( 12 8 ) ( 12 16 ) ] + [ ( 11 18 ) ( 10 19 ) ] + [ ( 13 17 ) ( 28 17 ) ] + [ ( 1 7 ) ( 11 7 ) ] ; +.Ed +.Sh ENVIRONMENT +.Bl -tag -width LOGNAMEXXX +.It Ev LOGNAME +Name to be recorded in high score file. +.El +.Sh FILES +Files are kept in a special directory, which can be shown by using the +.Fl p +flag. +.Pp +.Bl -tag -width "/usr/share/games/atc/Game_List" -compact +.It Pa $HOME/.atc.scores +Score file. +.It Pa /usr/share/games/atc/Game_List +The list of playable games. +.El +.Sh AUTHORS +.An -nosplit +.An \&Ed James , +UC Berkeley: +.Mt edjames@ucbvax.berkeley.edu , +.Mt ucbvax!edjames +.Pp +This game is based on someone's description of the overall flavor +of a game written for some unknown PC many years ago, maybe. +.Sh BUGS +The screen sometimes refreshes after you have quit. diff --git a/static/openbsd/man6/backgammon.6 b/static/openbsd/man6/backgammon.6 new file mode 100644 index 00000000..c5bf9100 --- /dev/null +++ b/static/openbsd/man6/backgammon.6 @@ -0,0 +1,164 @@ +.\" $OpenBSD: backgammon.6,v 1.21 2015/12/02 20:05:01 tb Exp $ +.\" +.\" Copyright (c) 1980, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)backgammon.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: December 2 2015 $ +.Dt BACKGAMMON 6 +.Os +.Sh NAME +.Nm backgammon +.Nd the game of backgammon +.Sh SYNOPSIS +.Nm backgammon +.Op Fl bdnrw +.Op Fl s Ar file +.Sh DESCRIPTION +This program lets you play backgammon against the computer +or against a +.Sq friend . +All commands are only one letter, +so you don't need to type a carriage return, +except at the end of a move. +The program is mostly self-explanatory: +a question mark (?) will usually get some help. +If you answer +.Sq y +when the program asks if you want the rules, +you will get text explaining the rules of the game, +some hints on strategy, +instructions on how to use the program, +and a tutorial consisting of a practice game against the computer. +A description of how to use the program can be +obtained by answering +.Sq y +when it asks if you want instructions. +.Pp +The possible arguments for +.Nm +are described below. +In each case +.Fl n +is implied. +.Bl -tag -width indent +.It Fl b +Two players, red and white. +.It Fl d +Play without doubling. +.It Fl n +Don't ask for rules or instructions. +.It Fl r +Player is red. +.It Fl s Ar file +Recover previously saved game from +.Ar file . +.It Fl w +Player is white. +.El +.Sh QUICK REFERENCE +When the program prompts by typing only your color, +type a space or carriage return to roll, +or one of the following: +.Pp +.Bl -tag -width Ds -offset indent -compact +.It Ic d +to double +.It Ic q +to quit +.It Ic r +to redraw the board +.It Ic s +to save the game for later +.El +.Pp +When the program prompts with 'Move:', +type one of the following: +.Pp +.Bl -tag -width Ds -offset indent -compact +.It Ic q +to quit +.It Ic r +to redraw the board +.It Ic s +to save the game +.El +.Pp +Or a +.Em move , +which is a sequence of one of the following: +.Pp +.Bl -tag -width Ds -offset indent -compact +.It Ic s-f +move from +.Ic s +to +.Ic f +.It Ic s/r +move one man on +.Ic s +the roll +.Ic r +separated by commas or spaces and ending with a newline. +Available abbreviations are as follows: +.Pp +.Bl -tag -width "s-f1-f2XXX" -offset indent -compact +.It Ic s-f1-f2 +means +.Ic s-f1,f1-f2 +.It Ic s/r1r2 +means +.Ic s/r1,s/r2 +.El +.El +.Pp +Use +.Ic b +for bar and +.Ic h +for home, +or 0 or 25 as appropriate. +.Sh FILES +.Bl -tag -width /usr/games/teachgammon -compact +.It Pa /usr/games/teachgammon +rules and tutorial +.El +.Sh HISTORY +The game +.Nm +first appeared in +.Bx 3 . +.Sh AUTHORS +.An -nosplit +.An Alan Char +.Pp +The strategy is the +.Dq pubeval +algorithm of +.An Gerry Tesauro , +with minimal doubling logic added. diff --git a/static/openbsd/man6/banner.6 b/static/openbsd/man6/banner.6 new file mode 100644 index 00000000..9ebf7400 --- /dev/null +++ b/static/openbsd/man6/banner.6 @@ -0,0 +1,70 @@ +.\" $OpenBSD: banner.6,v 1.14 2014/09/08 01:27:54 schwarze Exp $ +.\" +.\" Copyright (c) 1980, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)banner.6 8.1 (Berkeley) 6/6/93 +.\" +.Dd $Mdocdate: September 8 2014 $ +.Dt BANNER 6 +.Os +.Sh NAME +.Nm banner +.Nd print large banner on printer +.Sh SYNOPSIS +.Nm banner +.Op Fl w Ar width +.Ar message ... +.Sh DESCRIPTION +.Nm +prints a large, high quality banner on the standard output. +If the message is omitted, it prompts for and +reads one line of its standard input. +If +.Fl w +is given, the output is scrunched down from a width of 132 to +.Ar width , +suitable for a narrow terminal. +.Pp +The output should be printed on a hard-copy device, up to 132 columns wide, +with no breaks between the pages. +.Sh SEE ALSO +.Xr banner 1 +.Sh AUTHORS +.An Mark Horton +.Sh BUGS +Several ASCII characters are not defined, notably <, >, [, ], \e, +^, _, {, }, |, and ~. +Also, the characters ", ', and & are funny +looking +.Pq but in a useful way . +.Pp +The +.Fl w +option is implemented by skipping some rows and columns. +The smaller it gets, the grainier the output. +Sometimes it runs letters together. diff --git a/static/openbsd/man6/battlestar.6 b/static/openbsd/man6/battlestar.6 new file mode 100644 index 00000000..8595ebc3 --- /dev/null +++ b/static/openbsd/man6/battlestar.6 @@ -0,0 +1,187 @@ +.\" $OpenBSD: battlestar.6,v 1.19 2015/11/29 16:05:38 jmc Exp $ +.\" $NetBSD: battlestar.6,v 1.4 1995/03/21 15:06:42 cgd Exp $ +.\" +.\" Copyright (c) 1983, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)battlestar.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: November 29 2015 $ +.Dt BATTLESTAR 6 +.Os +.Sh NAME +.Nm battlestar +.Nd a tropical adventure game +.Sh SYNOPSIS +.Nm battlestar +.Op Fl r +.Op Ar saved-file +.Sh DESCRIPTION +.Nm +is an adventure game in the classic style. +However, it's slightly less of a puzzle and more a game of exploration. +There are a few magical words in the game, but on the whole, simple English +should suffice to make one's desires understandable to the parser. +.Sh THE SETTING +In the days before the darkness came, when battlestars ruled the +heavens... +.Bd -literal -offset indent +Three He made and gave them to His daughters, +Beautiful nymphs, the goddesses of the waters. +One to bring good luck and simple feats of wonder, +Two to wash the lands and churn the waves asunder, +Three to rule the world and purge the skies with thunder. +.Ed +.Pp +In those times great wizards were known and their powers were beyond +belief. +They could take any object from thin air and, uttering the word +.Sq su , +could disappear. +.Pp +In those times men were known for their lust for gold and desire to +wear fine weapons. +Swords and coats of mail were fashioned that could withstand a laser blast. +.Pp +But when the darkness fell, the rightful reigns were toppled. +Swords and helms and heads of state went rolling across the grass. +The entire fleet of battlestars was reduced to a single ship. +.Sh SAMPLE COMMANDS +.Bd -literal -offset indent +take --- take an object +drop --- drop an object + +wear --- wear an object you are holding +draw --- carry an object you are wearing + +put on --- take an object and wear it +take off -- draw an object and drop it + +throw <object> <direction> +.Ed +.Sh IMPLIED OBJECTS +.Bd -literal -offset indent +>-: take watermelon +watermelon: +Taken. +>-: eat +watermelon: +Eaten. +>-: take knife and sword and apple, drop all +knife: +Taken. +broadsword: +Taken. +apple: +Taken. +knife: +Dropped. +broadsword: +Dropped. +apple: +Dropped. +>-: get +knife: +Taken. +.Ed +.Pp +Notice that the +.Dq shadow +of the next word stays around if you want to take advantage of it. +That is, saying +.Dq take knife +and then +.Dq drop +will drop the knife you just took. +.Sh SCORE & INVEN +The two commands +.Dq score +and +.Dq inven +will print out your current status in the game. +.Sh SAVING A GAME +The command +.Dq save +will save your game in a file called +.Pa ~/Bstar +by default. +You can recover a saved game by using the +.Fl r +option when you start up the +game, or by giving the name of the saved file as an argument. +Save files will be saved to and restored from your home directory unless a +path is specified \- i.e., +.Dq Li battlestar -r savedgame +will look for +.Pa ~/savedgame , +but +.Dq Li battlestar -r ./savedgame +will look in the current directory. +.Dq Li battlestar -r +will look for the default file, +.Pa ~/Bstar . +.Sh DIRECTIONS +The compass directions N, S, E, and W can be used if you have a compass. +If you don't have a compass, you'll have to say R, L, A, or B, which +stand for Right, Left, Ahead, and Back. +Directions printed in room descriptions are +always printed in R, L, A, & B relative directions. +.Sh ENVIRONMENT +.Bl -tag -width $HOME/.battlestar.scores +.It Ev LOGNAME +Name to be recorded in high score file. +.El +.Sh FILES +.Bl -tag -width $HOME/.battlestar.scores +.It Pa $HOME/.battlestar.scores +High score file. +.El +.Sh HISTORY +I wrote Battlestar in 1979 in order to experiment with the niceties of +the C Language. +Most interesting things that happen in the game are hardwired into the +code, so don't send me any hate mail about it! +Instead, enjoy art for art's sake! +.Sh AUTHORS +.An David Riggle Aq Mt riggle.pa@xerox.arpa +.Sh INSPIRATION & ASSISTANCE +.Bl -item -compact +.It +Chris Guthrie +.Pq Mt chris%ucbcory@berkeley.arpa +.It +Peter Da Silva +.It +Kevin Brown +.It +Edward Wang +.Pq Mt edward%ucbarpa@berkeley.arpa +.It +Ken Arnold & Company +.El +.Sh BUGS +Finite. diff --git a/static/openbsd/man6/bcd.6 b/static/openbsd/man6/bcd.6 new file mode 100644 index 00000000..de199ecc --- /dev/null +++ b/static/openbsd/man6/bcd.6 @@ -0,0 +1,77 @@ +.\" $OpenBSD: bcd.6,v 1.22 2019/09/08 22:43:46 schwarze Exp $ +.\" +.\" Copyright (c) 1988, 1991, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)bcd.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: September 8 2019 $ +.Dt BCD 6 +.Os +.Sh NAME +.Nm bcd +.Nd reformat input as punch cards +.Sh SYNOPSIS +.Nm +.Op Fl l +.Op Ar string ... +.Nm +.Fl d +.Op Fl l +.Sh DESCRIPTION +The +.Nm bcd +command reads the given input and reformats it as an ASCII art +representation of punched cards for the GE 635 and GE 645 computers +used at Bell Labs in the late 1960s and early 1970s. +Acceptable input are command line arguments or the standard input. +.Pp +The options are as follows: +.Bl -tag -width Ds +.It Fl d +Decode punch cards on the standard input back to ASCII. +.It Fl l +Create or decode 80 column punch cards. +The default is 48 columns. +.El +.Sh SEE ALSO +.Xr ppt 6 +.Sh STANDARDS +.Rs +.%I ISO 1681:1973 +.%R "Information processing--Unpunched paper cards--Specification" +.Re +.Pp +.Rs +.%I ISO 1682:1973 +.%R "Information processing--80 columns punched paper cards--Dimensions and location of rectangular punched holes" +.Re +.Sh HISTORY +The +.Nm +game first appeared in +.At v6 . diff --git a/static/openbsd/man6/boggle.6 b/static/openbsd/man6/boggle.6 new file mode 100644 index 00000000..fcff14ec --- /dev/null +++ b/static/openbsd/man6/boggle.6 @@ -0,0 +1,162 @@ +.\" $OpenBSD: boggle.6,v 1.22 2022/03/31 17:27:14 naddy Exp $ +.\" $NetBSD: boggle.6,v 1.2 1995/03/21 12:14:35 cgd Exp $ +.\" +.\" Copyright (c) 1997, Jason Downs. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +.\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, +.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" Copyright (c) 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" Barry Brachman. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)boggle.6 8.1 (Berkeley) 6/11/93 +.\" +.Dd $Mdocdate: March 31 2022 $ +.Dt BOGGLE 6 +.Os +.Sh NAME +.Nm boggle +.Nd word search game +.Sh SYNOPSIS +.Nm boggle +.Op Fl Bbcd +.Op Fl t Ar time +.Op Fl w Ar length +.Op Cm + Ns Op Cm + +.Op Ar boardspec +.Sh DESCRIPTION +The object of +.Nm +is to find as many words as possible on the Boggle board within the three +minute time limit. +A Boggle board is a four by four arrangement of Boggle cubes, each side of +each cube displaying a letter of the alphabet or +.Sq qu . +Words are formed by finding a sequence of cubes (letters) that are in the +game's dictionary. +The (N+1)th cube in the word must be horizontally, +vertically, or diagonally adjacent to the Nth cube. +Cubes cannot be reused. +Words consist solely of lower case letters and must be at least 3 letters long. +.Pp +Command line flags can be given to change the rules of the game: +.Bl -tag -width boardspec +.It Fl B +Use an alternate five by five arrangement of Boggle cubes. +In this mode the default minimum word length is 4 letters. +This arrangement has been marketed over the years under the names +.Em Big Boggle , +.Em Super Boggle +and +.Em Boggle Deluxe . +.It Fl b +Run +.Nm +in batch mode. +A +.Ar boardspec +must also be given. +The dictionary is read from stdin and a list of words appearing in +.Ar boardspec +is printed to stdout. +.It Fl c +Add a so-called +.Em challenge cube +to the board, which contains less commonly used letters. +The challenge cube will be displayed in boldface on the board. +Depending on the terminal capabilities, it may be displayed in +underline or a different color (such as red). +.It Fl d +Enable debugging output. +.It Fl t Ar time +Change the time limit for each game from the default 3 minutes to +.Ar time +seconds. +.It Fl w Ar length +Change the minimum word length from 3 letters to +.Ar length . +.It Cm + +Allow a cube to be used multiple times, but not in succession. +.It Cm ++ +Allow a cube to be considered adjacent to itself. +.El +.Pp +A starting board position, +.Ar boardspec , +can be specified on the command line by +listing the board left to right and top to bottom, in lower case. +.Pp +Help is available during play by typing +.Sq \&? . +More detailed information on the game is given there. +.Sh FILES +.Bl -tag -width 36n -compact +.It Pa /usr/share/games/boggle/dictionary +compressed dictionary +.It Pa /usr/share/games/boggle/dictindex +dictionary index +.It Pa /usr/share/games/boggle/helpfile +online help file +.El +.Sh AUTHORS +Boggle is a trademark of Parker Brothers. +.Pp +.An Barry Brachman , +Dept. of Computer Science, University of British Columbia +.Sh BUGS +No word can contain a +.Sq q +that is not immediately followed by a +.Sq u . +.Pp +When using the +.Cm + +or +.Cm ++ +options, the display of words found in the board doesn't clearly indicate +reused cubes. diff --git a/static/openbsd/man6/bs.6 b/static/openbsd/man6/bs.6 new file mode 100644 index 00000000..105e527d --- /dev/null +++ b/static/openbsd/man6/bs.6 @@ -0,0 +1,97 @@ +.\" $OpenBSD: bs.6,v 1.16 2022/02/18 23:17:13 jsg Exp $ +.\" +.\" Copyright (c) 1997, Jason Downs. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +.\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, +.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 18 2022 $ +.Dt BS 6 +.Os +.Sh NAME +.Nm bs +.Nd battleships game +.Sh SYNOPSIS +.Nm bs +.Op Fl b | s +.Op Fl c +.Sh DESCRIPTION +This program allows you to play the familiar Battleships game against the +computer on a 10x10 board. +The interface is visual and largely self-explanatory; +you place your ships and pick your shots by moving the cursor around the +.Sq sea +with the +.Xr hack 6 +motion keys +.Em hjklyubn . +.Pp +Note that when selecting a ship to place, you must type the capital letter +(these are, after all, capital ships). +During ship placement, the +.Sq r +command may be used to ignore the current position and randomly place your +currently selected ship. +The +.Sq R +command will place all remaining ships randomly. +The ^L command +.Pq form feed, ASCII 12 +will force a screen redraw. +.Pp +The command-line arguments control game modes: +.Bl -tag -width XxXXX +.It Fl b +Selects a +.Sq blitz +variant. +This allows a side to shoot for as long as it continues to score hits. +.It Fl c +Permits ships to be placed adjacently. +Normally, ships must be separated by at least one square of open water. +This disables that check and allows them to close-pack. +.It Fl s +Selects a +.Sq salvo +variant. +This allows players one shot per turn for each of their +ships still afloat. +This puts a premium on scoring hits early and knocking out +some ships and also makes it much harder, for example, when you face a superior +force with only your PT-boat. +.El +.Sh AUTHORS +.An -nosplit +Originally written by one +.An Bruce Holloway +in 1986. +Salvo mode added by +.An Chuck A. DeGaul Aq Mt cbosgd!cad . +Visual user interface, +.Sq closepack +option, code rewrite +and manual page by +.An Eric S. Raymond Aq Mt esr@snark.thyrsus.com , +August 1989. +.Sh NOTES +The algorithm the computer uses once it has found a ship to sink is provably +optimal. +The dispersion criterion for the random-fire algorithm may not be. diff --git a/static/openbsd/man6/caesar.6 b/static/openbsd/man6/caesar.6 new file mode 100644 index 00000000..eb9a7be1 --- /dev/null +++ b/static/openbsd/man6/caesar.6 @@ -0,0 +1,74 @@ +.\" $OpenBSD: caesar.6,v 1.10 2024/08/26 20:12:33 jmc Exp $ +.\" +.\" Copyright (c) 1989, 1991, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)caesar.6 8.2 (Berkeley) 11/16/93 +.\" +.Dd $Mdocdate: August 26 2024 $ +.Dt CAESAR 6 +.Os +.Sh NAME +.Nm caesar , +.Nm rot13 +.Nd decrypt caesar cyphers +.Sh SYNOPSIS +.Nm caesar +.Op Ar rotation +.Nm rot13 +.Sh DESCRIPTION +The +.Nm +utility attempts to decrypt caesar cyphers using English letter frequency +statistics. +.Nm +reads from the standard input and writes to the standard output. +.Pp +The optional numerical argument +.Ar rotation +may be used to specify a specific rotation value. +.Pp +If this utility is invoked as +.Nm rot13 , +it will rotate by 13 characters. +This format is commonly used on USENET +to +.Dq disguise +content. +.Pp +The frequency (from most common to least) of English letters is as follows: +.Bd -filled -offset indent +ETAONRISHDLFCMUGPYWBVKXJQZ +.Ed +.Pp +Their frequencies as a percentage are as follows: +.Bd -filled -offset indent +E(13), T(10.5), A(8.1), O(7.9), N(7.1), R(6.8), I(6.3), S(6.1), H(5.2), +D(3.8), L(3.4), F(2.9), C(2.7), M(2.5), U(2.4), G(2), +P(1.9), Y(1.9), +W(1.5), B(1.4), V(.9), K(.4), X(.15), J(.13), Q(.11), Z(.07). +.Ed diff --git a/static/openbsd/man6/canfield.6 b/static/openbsd/man6/canfield.6 new file mode 100644 index 00000000..d3c5e2d6 --- /dev/null +++ b/static/openbsd/man6/canfield.6 @@ -0,0 +1,124 @@ +.\" $OpenBSD: canfield.6,v 1.13 2022/03/31 17:27:14 naddy Exp $ +.\" $NetBSD: canfield.6,v 1.4 1995/03/21 15:08:30 cgd Exp $ +.\" +.\" Copyright (c) 1983, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)canfield.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: March 31 2022 $ +.Dt CANFIELD 6 +.Os +.Sh NAME +.Nm canfield , +.Nm cfscores +.Nd the solitaire card game canfield +.Sh SYNOPSIS +.Nm canfield +.Nm cfscores +.Sh DESCRIPTION +If you have never played solitaire before, it is recommended +that you consult a solitaire instruction book. +In Canfield, tableau cards may be built on each other downward +in alternate colors. +An entire pile must be moved as a unit in building. +Top cards of the piles are available +to be played on foundations, but never into empty spaces. +.Pp +Spaces must be filled from the stock. +The top card of the stock also is available to be played on foundations or +built on tableau piles. +After the stock is exhausted, +tableau spaces may be filled from the talon. +Players may keep tableau spaces open until they wish to use them. +.Pp +Cards are dealt from the hand to the talon by threes +and this repeats until there are no more cards in the hand +or the player quits. +To have cards dealt onto the talon players type +.Sq Ic ht +for their move. +Foundation base cards are also automatically moved to the foundation when +they become available. +.Pp +The command +.Sq Ic c +causes +.Nm canfield +to maintain card counting statistics +on the bottom of the screen. +When properly used, this can greatly increase one's chances of +winning. +.Pp +The rules for betting are somewhat less strict than +those used in the official version of the game. +The initial deal costs $13. +You may quit at this point or inspect the game. +Inspection costs $13 and allows you to make as many +moves as possible without moving any cards from your hand +to the talon. +(The initial deal places three cards on the talon; +if all these cards are used, +three more are made available.) +Finally, if the game seems interesting, +you must pay the final installment of $26. +At this point you are +credited at the rate of $5 for each card on the foundation; +as the game progresses you are credited with $5 for each +card that is moved to the foundation. +Each run through the hand after the first costs $5. +The card counting feature +costs $1 for each unknown card that is identified. +If the information is toggled on, +you are only charged for cards +that became visible since it was last turned on. +Thus the maximum cost of information is $34. +Playing time is charged at a rate of $1 per minute. +.Pp +The program +.Nm cfscores +prints out the current status of your canfield account. +.Sh FILES +.Bl -tag -width /usr/games/cfscores -compact +.It Pa /usr/games/cfscores +the score database printer +.It Pa $HOME/.cfscores +the database of scores +.El +.Sh AUTHORS +.An -nosplit +Originally written: +.An Steve Levine . +.Pp +Further random hacking by: +.An Steve Feldman , +.An Kirk McKusick , +.An Mikey Olson , +and +.An Eric Allman . +.Sh BUGS +It is impossible to cheat. diff --git a/static/openbsd/man6/cribbage.6 b/static/openbsd/man6/cribbage.6 new file mode 100644 index 00000000..151a5d6c --- /dev/null +++ b/static/openbsd/man6/cribbage.6 @@ -0,0 +1,206 @@ +.\" $OpenBSD: cribbage.6,v 1.16 2022/02/18 23:17:13 jsg Exp $ +.\" +.\" Copyright (c) 1980, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)cribbage.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: February 18 2022 $ +.Dt CRIBBAGE 6 +.Os +.Sh NAME +.Nm cribbage +.Nd the card game cribbage +.Sh SYNOPSIS +.Nm cribbage +.Op Fl emqr +.Sh DESCRIPTION +.Nm +plays the card game cribbage, with the program playing one hand +and the user the other. +The program will initially ask the user if the rules of the game +are needed \(en if so, it will print out the appropriate section from +.Em According to Hoyle . +.Pp +.Nm +options include: +.Bl -tag -width indent +.It Fl e +When players make a mistake scoring their hand or crib, provide an +explanation of the correct score. +.Po +This is especially useful for beginning players. +.Pc +.It Fl m +.Dq Muggins +\(en if a player mistakenly scores less than is due, +the opponent may claim the overlooked points. +.Pq Of course, the computer never miscalculates! +.It Fl q +Print a shorter form of all messages \(en this is only recommended for +users who have played the game without specifying this option. +.It Fl r +Instead of asking players to cut the deck, the program will randomly +cut the deck. +.El +.Pp +.Nm +first asks whether to play a short game +.Po +.Dq once around , +to 61 +.Pc +or a long game +.Po +.Dq twice around , +to 121 +.Pc . +A response of +.Sq Ic s +or +.Sq Ic S +will result in a short game; any other response will +play a long game. +.Pp +At the start of the first game, the program +asks the player to cut the deck to determine who gets the +first crib. +The user should respond with a number between 4 and +48, indicating how many cards down the deck is to be cut. +The player who cuts the lower ranked card gets the first crib. +If more than one game is played, the +loser of the previous game gets the first crib in the current game. +.Pp +For each hand, the program first prints the player's hand and +whose crib it is, and then asks the player +to discard two cards into the crib. +The cards are prompted for one per line, and are entered as explained below. +.Pp +After discarding, the program cuts the deck +.Pq if it is the player's crib +or asks the player to cut the deck +.Pq if it's its crib ; +in the latter +case, the appropriate response is a number from 4 to 36 indicating +how far down the remaining 40 cards are to be cut. +.Pp +After the deck is cut, play starts with the non-dealer +.Pq the person who doesn't have the crib +leading the first card. +Play continues until all cards are exhausted. +The program keeps track of the scoring of all points and the total of +the cards on the table. +.Pp +After play, the hands are scored. +The program requests players to score their hand +.Pq and the crib, if it is theirs +by printing out the appropriate cards. +Play continues until one player reaches the game limit +.Pq 61 or 121 . +.Pp +A carriage return when a numeric input is expected is equivalent +to typing the lowest legal value; when cutting the deck this +is equivalent to cutting after the fourth card. +.Pp +Cards are specified as rank followed by suit, +with letters case insensitive. +The ranks may be specified as one of: +.Sq a , +.Sq 2 , +.Sq 3 , +.Sq 4 , +.Sq 5 , +.Sq 6 , +.Sq 7 , +.Sq 8 , +.Sq 9 , +.Sq t , +.Sq j , +.Sq q , +and +.Sq k , +or alternatively, one of: +.Sq ace , +.Sq two , +.Sq three , +.Sq four , +.Sq five , +.Sq six , +.Sq seven , +.Sq eight , +.Sq nine , +.Sq ten , +.Sq jack , +.Sq queen , +and +.Sq king . +Suits may be specified as: +.Sq s , +.Sq h , +.Sq d , +and +.Sq c , +or alternatively as: +.Sq spades , +.Sq hearts , +.Sq diamonds , +and +.Sq clubs . +A card may be specified as: +.Dq Ar rank suit , +or: +.Dq Ar rank No of Ar suit . +If the single letter rank and suit designations are used, the space +separating the suit and rank may be left out. +Also, if only one card of the desired rank is playable, +typing the rank is sufficient. +For example, if your hand was +.Dq 2H, 4D, 5C, 6H, JC, and KD +and it was desired to discard the king of diamonds, any of +the following could be typed: +.Sq k , +.Sq king , +.Sq kd , +.Sq k d , +.Sq k of d , +.Sq king d , +.Sq king of d , +.Sq k diamonds , +.Sq k of diamonds , +.Sq king diamonds , +.Sq king of diamonds . +.Sh FILES +.Bl -tag -width /usr/share/games/cribbage.instr -compact +.It Pa /usr/share/games/cribbage.instr +instructions +.El +.Sh AUTHORS +.An -nosplit +.An Earl T. Cohen +wrote the logic. +.An Ken Arnold +added the screen-oriented interface. diff --git a/static/openbsd/man6/factor.6 b/static/openbsd/man6/factor.6 new file mode 100644 index 00000000..b19ecc59 --- /dev/null +++ b/static/openbsd/man6/factor.6 @@ -0,0 +1,110 @@ +.\" $OpenBSD: factor.6,v 1.13 2015/12/30 14:07:53 tb Exp $ +.\" +.\" Copyright (c) 1989, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" Landon Curt Noll. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)factor.6 8.1 (Berkeley) 5/31/93 +.\" +.\" +.\" By: Landon Curt Noll chongo@toad.com, ...!{sun,tolsoft}!hoptoad!chongo +.\" +.\" chongo <for a good prime call: 391581 * 2^216193 - 1> /\oo/\ +.\" +.Dd $Mdocdate: December 30 2015 $ +.Dt FACTOR 6 +.Os +.Sh NAME +.Nm factor , +.Nm primes +.Nd factor a number, generate primes +.Sh SYNOPSIS +.Nm factor +.Op Ar number ... +.Nm primes +.Op Ar start Op Ar stop +.Sh DESCRIPTION +The +.Nm +utility will factor 64-bit positive integers. +When a number is factored, it is printed, followed by a +.Sq \&: , +and the list of its prime factors in ascending order, on a single line. +Every prime factor is printed as often as it divides the number. +.Pp +When +.Nm +is invoked with one or more arguments, +each argument will be factored. +.Pp +When +.Nm +is invoked with no arguments, +.Nm +reads numbers, one per line, from standard input, until end of file or error. +White-space and empty lines are ignored. +Numbers may be preceded by a single +. +After a number is read, it is factored. +Input lines must not be longer than 99 characters. +.Pp +The +.Nm primes +utility prints primes in ascending order, one per line, starting at or above +.Ar start +and continuing until, but not including +.Ar stop . +The +.Ar start +value must be at least 0 and not greater than +.Ar stop . +The +.Ar stop +value must not be greater than 4294967295. +The default value of +.Ar stop +is 4294967295. +.Pp +When the +.Nm primes +utility is invoked with no arguments, +.Ar start +is read from standard input. +.Ar stop +is taken to be 4294967295. +The +.Ar start +value may be preceded by a single +. +The input line must not be longer than 99 characters. +.Sh BUGS +.Nm factor +cannot handle the +.Dq 10 most wanted +factor list; +.Nm primes +won't get you a world record. diff --git a/static/openbsd/man6/fish.6 b/static/openbsd/man6/fish.6 new file mode 100644 index 00000000..19a344c7 --- /dev/null +++ b/static/openbsd/man6/fish.6 @@ -0,0 +1,85 @@ +.\" $OpenBSD: fish.6,v 1.8 2015/09/10 15:16:43 schwarze Exp $ +.\" +.\" Copyright (c) 1990, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)fish.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: September 10 2015 $ +.Dt FISH 6 +.Os +.Sh NAME +.Nm fish +.Nd play ``Go Fish'' +.Sh SYNOPSIS +.Nm fish +.Op Fl p +.Sh DESCRIPTION +.Nm +is the game +.Dq Go Fish , +a traditional children's card game. +.Pp +The computer deals the player and itself seven cards each, and places +the rest of the deck face-down (figuratively), to be drawn from later. +The object of the game is to collect +.Dq books , +or all of the cards of a given rank. +For example, collecting four 2's would give the player a +.Dq book of 2's . +.Pp +The options are as follows: +.Bl -tag -width indent +.It Fl p +Professional mode. +.El +.Pp +The computer makes a random decision as to who gets to start the +game, and then the computer and player take turns asking each other +for cards by rank. +If the asked player has any cards of the requested rank, they must be given +up to the asking player. +There must be at least one card of the requested rank already in the asking +player's hand. +When the asked player has no +cards of the requested rank, the asker is told to +.Dq Go Fish! +Then, the asker draws a card from the deck. +If the card drawn is of the rank asked for, the turn continues; +otherwise, it becomes the other player's turn. +.Pp +When a player completes a book, either by getting cards from the +other player or by drawing from the deck, those cards are set aside and +the rank is no longer in play. +.Pp +The game ends when one player no longer has any cards. +The player with the most books wins. +.Pp +.Nm +provides instructions as to what input it accepts. +.Sh BUGS +The computer cheats only rarely. diff --git a/static/openbsd/man6/fortune.6 b/static/openbsd/man6/fortune.6 new file mode 100644 index 00000000..56443591 --- /dev/null +++ b/static/openbsd/man6/fortune.6 @@ -0,0 +1,212 @@ +.\" $OpenBSD: fortune.6,v 1.17 2022/03/31 17:27:14 naddy Exp $ +.\" +.\" Copyright (c) 1985, 1991, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" Ken Arnold. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)fortune.6 8.3 (Berkeley) 4/19/94 +.\" +.Dd $Mdocdate: March 31 2022 $ +.Dt FORTUNE 6 +.Os +.Sh NAME +.Nm fortune +.Nd print a random, hopefully interesting, adage +.Sh SYNOPSIS +.Nm fortune +.Op Fl aefilosw +.Op Fl m Ar pattern +.Oo +.Op Ar N Ns % +.Sm off +.Ar file | Ar directory | Cm all +.Sm on +.Oc +.Sh DESCRIPTION +When +.Nm +is run with no arguments, it prints out a random epigram. +Epigrams are divided into several categories, where each category +is subdivided into those which are potentially offensive and those +which are not. +The options are as follows: +.Bl -tag -width flag +.It Fl a +Choose from all lists of maxims, both offensive and not. +(See the +.Fl o +option for more information on offensive fortunes.) +.It Fl e +Consider all fortune files to be of equal size (see discussion below +on multiple files). +.It Fl f +Print out the list of files which would be searched, but don't +print a fortune. +.It Fl i +Ignore case for +.Fl m +patterns. +.It Fl l +Long dictums only. +.It Fl m Ar pattern +Print out all fortunes which match the regular expression +.Ar pattern . +See +.Xr re_format 7 +for a description of patterns. +.It Fl o +Choose only from potentially offensive aphorisms. +.Bf -symbolic +Please, please, please request a potentially offensive fortune if and +only if you believe, deep down in your heart, that you are willing +to be offended. +(And that if you are, you'll just quit using +.Fl o +rather than give us +grief about it, okay?) +.Ef +.Bd -unfilled -offset indent +\&... let us keep in mind the basic governing philosophy +of The Brotherhood, as handsomely summarized in these words: +we believe in healthy, hearty laughter -- at the expense of +the whole human race, if needs be. Needs be. + --H. Allen Smith, "Rude Jokes" +.Ed +.It Fl s +Short apothegms only. +.It Fl w +Wait before termination for an amount of time calculated from the +number of characters in the message. +This is useful if it is executed as part of the logout procedure +to guarantee that the message can be read before the screen is cleared. +.El +.Pp +The user may specify alternate sayings. +You can specify a specific +.Ar file , +a +.Ar directory +which contains one or more files, or the special word +.Cm all , +which says to use all the standard databases. +Any of these may be preceded by a percentage, which is a number +.Ar N +between 0 and 100 inclusive, followed by a +.Sq % +character. +If it is, there will be an +.Ar N +percent probability that an adage will be picked from that +.Ar file +or +.Ar directory . +If the percentages do not sum to 100, and there are specifications +without percentages, the remaining percent will apply to those files +and/or directories, in which case the probability of selecting from +one of them will be based on their relative sizes. +.Pp +As an example, given two databases +.Pa funny +and +.Pa not-funny , +with +.Pa funny +twice as big, saying +.Bd -literal -offset indent +$ fortune funny not-funny +.Ed +.Pp +will get you fortunes out of +.Pa funny +two-thirds of the time. +The command +.Bd -literal -offset indent +$ fortune 90% funny 10% not-funny +.Ed +.Pp +will pick out 90% of its fortunes from +.Pa funny +(the +.Dq 10% +is unnecessary, since 10% is all that's left). +The +.Fl e +option says to consider all files equal; +thus +.Bd -literal -offset indent +$ fortune -e +.Ed +.Pp +is equivalent to +.Bd -literal -offset indent +$ fortune 50% funny 50% not-funny +.Ed +.Pp +Datafiles for +.Nm +are created by a utility called +.Nm strfile . +Although not installed by default, +the source code and a manual page for this utility +can be found in +.Pa /usr/src/games/fortune/strfile/ , +if it exists. +.Sh ENVIRONMENT +.Bl -tag -width LC_CTYPE +.It Ev LC_CTYPE +The character encoding +.Xr locale 1 . +If unset or set to +.Qq C , +.Qq POSIX , +or an unsupported value, bytes that are not printable ASCII characters +are replaced with question marks in the output. +.El +.Sh FILES +.Bl -tag -width "/usr/share/games/fortune/*XX" -compact +.It Pa /usr/share/games/fortune/* +Fortune files. +.El +.Sh EXIT STATUS +.Ex -std +In particular, if +.Fl l , +.Fl m , +or +.Fl s +is specified, failure to find a matching citation in the selected +files counts as an error. +.Sh SEE ALSO +.Xr random 6 , +.Xr rot13 6 , +.Xr re_format 7 +.Sh HISTORY +.Nm +first favored +.At v7 . diff --git a/static/openbsd/man6/gomoku.6 b/static/openbsd/man6/gomoku.6 new file mode 100644 index 00000000..3672ffca --- /dev/null +++ b/static/openbsd/man6/gomoku.6 @@ -0,0 +1,113 @@ +.\" $OpenBSD: gomoku.6,v 1.15 2014/09/08 01:27:54 schwarze Exp $ +.\" +.\" Copyright (c) 1994 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" Ralph Campbell. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)gomoku.6 8.2 (Berkeley) 8/4/94 +.\" +.Dd $Mdocdate: September 8 2014 $ +.Dt GOMOKU 6 +.Os +.Sh NAME +.Nm gomoku +.Nd game of 5 in a row +.Sh SYNOPSIS +.Nm gomoku +.Op Fl bcdu +.Op Fl D Ar debugfile +.Op Ar inputfile +.Sh DESCRIPTION +.Nm +is a two player game where the object is to get 5 in a row horizontally, +vertically or diagonally on a 19 by 19 grid. +By convention, black always moves first. +With no arguments, +.Nm +will display a playing board and prompt for moves from the user. +The interface is visual and straightforward; you move to a spot +using the +.Xr hack 6 +motion keys +.Em hjklyubn +and select it with either +.Sq space +or +.Sq return . +The game will beep if you select a location that is already occupied. +To save the game, type +.Sq S +and to quit, type +.Sq Q . +The optional file +.Ar inputfile +can be used to restore a saved game. +.Pp +The options are: +.Bl -tag -width Ds +.It Fl b +This option sets background mode. +Input moves are read from standard input, +the computer picks a move, and prints it to standard output. +The first input line should be either +.Dq black +or +.Dq white +to specify whether +.Nm +has the first move or not respectively. +This option was intended for game tournaments where a referee program +handles the board display and pits one program against another. +.It Fl c +Computer versus computer. +.Nm +will play a game against itself. +This is mostly used for testing. +.It Fl D Ar debugfile +Print the debug information to +.Ar debugfile +instead of to the standard output. +.It Fl d +Print debugging information. +Repeating this option more than once yields more detailed information. +.It Fl u +User versus user. +This is mostly used for testing. +.El +.Sh AUTHORS +.An Ralph Campbell +.Sh BUGS +The program is far too slow and uses far too much memory for the quality of +game it provides. +.Sh ACKNOWLEDGEMENTS +The board display routines were based on the +.Nm goref +program written by Peter Langston. +The user interface was based on Eric S. Raymond's interface to +.Xr bs 6 . diff --git a/static/openbsd/man6/grdc.6 b/static/openbsd/man6/grdc.6 new file mode 100644 index 00000000..b7a87c2b --- /dev/null +++ b/static/openbsd/man6/grdc.6 @@ -0,0 +1,49 @@ +.\" $OpenBSD: grdc.6,v 1.14 2022/09/24 16:07:26 florian Exp $ +.\" +.\" Copyright 2002 Amos Shapir. Public domain. +.\" +.Dd $Mdocdate: September 24 2022 $ +.Dt GRDC 6 +.Os +.Sh NAME +.Nm grdc +.Nd grand digital clock (curses) +.Sh SYNOPSIS +.Nm grdc +.Op Fl s +.Op Ar number +.Sh DESCRIPTION +.Nm +runs a digital clock made of reverse-video blanks on a curses +compatible screen. +With an optional numeric argument +.Ar number +it stops after +.Ar number +seconds (defaulting to never). +The optional +.Fl s +flag makes digits scroll as they change. +If the terminal is too slow to keep up, +.Nm +skips seconds. +Pressing the +.Sq q +key exits the program. +.Sh ENVIRONMENT +.Bl -tag -width Ds +.It Ev TZ +The time zone to use for displaying the time. +It is normally specified as a pathname relative to +.Pa /usr/share/zoneinfo , +though see +.Xr tzset 3 +for more information. +If this variable is not set, the time zone is determined based on +.Pa /etc/localtime . +.El +.Sh AUTHORS +.An -nosplit +.An Amos Shapir , +modified for curses by +.An John Lupien . diff --git a/static/openbsd/man6/hack.6 b/static/openbsd/man6/hack.6 new file mode 100644 index 00000000..a2cbea14 --- /dev/null +++ b/static/openbsd/man6/hack.6 @@ -0,0 +1,210 @@ +.\" $OpenBSD: hack.6,v 1.23 2022/02/18 23:17:14 jsg Exp $ +.\" $NetBSD: hack.6,v 1.5 1995/07/03 19:44:30 jtc Exp $ +.\" +.\" Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, +.\" Amsterdam +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are +.\" met: +.\" +.\" - Redistributions of source code must retain the above copyright notice, +.\" this list of conditions and the following disclaimer. +.\" +.\" - Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" - Neither the name of the Stichting Centrum voor Wiskunde en +.\" Informatica, nor the names of its contributors may be used to endorse or +.\" promote products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +.\" IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +.\" PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER +.\" OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +.\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +.\" PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +.\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +.\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.\" +.\" Copyright (c) 1982 Jay Fenlason <hack@gnu.org> +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. The name of the author may not be used to endorse or promote products +.\" derived from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +.\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +.\" THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +.\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +.\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 18 2022 $ +.Dt HACK 6 +.Os +.Sh NAME +.Nm hack +.Nd Exploring The Dungeons of Doom +.Sh SYNOPSIS +.Nm hack +.Op Fl n +.Op Fl d Ar directory +.Op Fl u Ar playername +.Nm hack +.Op Fl sX +.Op Fl d Ar directory +.Op Ar playername ... +.Sh DESCRIPTION +.Nm +is a display oriented dungeons & dragons - like game. +Both display and command structure resemble rogue. +(For a game with the same structure but entirely different display - +a real cave instead of dull rectangles - try Quest.) +.Pp +To get started you really only need to know two commands. +The command +.Ic ?\& +will give you a list of the available commands and the command +.Ic / +will identify the things you see on the screen. +.Pp +To win the game (as opposed to merely playing to beat other people's high +scores) you must locate the Amulet of Yendor which is somewhere below +the 20th level of the dungeon and get it out. +Nobody has achieved this yet and whoever does +will probably go down in history as a hero among heroes. +.Pp +When the game ends, either by your death, when you quit, or if you escape +from the caves, +.Nm +will give you (a fragment of) the list of top scorers. +The scoring is based on many aspects of your behavior but a rough estimate is +obtained by taking the amount of gold you've found in the cave plus four +times your (real) experience. +Precious stones may be worth a lot of gold when brought to the exit. +There is a 10% penalty for getting yourself killed. +.Pp +The administration of the game is kept in the directory specified with the +.Fl d +option or, if no such option is given, in the directory specified by +the environment variable +.Ev HACKDIR , +or, if no such variable exists, in the current directory. +This same directory contains several auxiliary files such as lockfiles and +the list of topscorers and a subdirectory +.Pa save +where games are saved. +.Pp +The +.Fl n +option suppresses printing of the news. +.Pp +The +.Fl u +.Ar playername +option supplies the answer to the question "Who are you?". +When +.Ar playername +has as suffix one of +.Em -T , +.Em -S , +.Em -K , +.Em -F , +.Em -C , +or +.Em -W , +then this supplies the answer to the question "What kind of character ... ?". +.Pp +The +.Fl s +option will print out the list of your scores. +It may be followed by arguments +.Fl X +where X is one of the letters C, F, K, S, T, W to print the scores of +Cavemen, Fighters, Knights, Speleologists, Tourists or Wizards. +It may also be followed by one or more player names to print the scores of the +players mentioned. +.Sh ENVIRONMENT +.Bl -tag -width 24n -compact +.It Ev USER No or Ev LOGNAME +Your login name. +.It Ev HOME +Your home directory. +.It Ev SHELL +Your shell. +.It Ev TERM +The type of your terminal. +.It Ev HACKPAGER , PAGER +Pager used instead of default pager. +.It Ev MAIL +Mailbox file. +.It Ev MAILREADER +Reader used instead of default (probably /usr/bin/mail). +.It Ev HACKDIR +Playground. +.It Ev HACKOPTIONS +String predefining several hack options (see help file). +.El +.Pp +Several other environment variables are used in debugging (wizard) mode, +like +.Ev GENOCIDED , +.Ev INVENT , +.Ev MAGIC +and +.Ev SHOPTYPE . +.Sh FILES +.Bl -tag -width 24n -compact +.It Pa hack +The hack program. +.It Pa data , rumors +Data files used by hack. +.It Pa help , hh +Help data files. +.It Pa record +The list of topscorers. +.It Pa save +A subdirectory containing the saved games. +.It Pa bones_dd +Descriptions of the ghost and belongings of a deceased adventurer. +.It Pa xlock.dd +Description of a dungeon level. +.It Pa safelock +Lock file for xlock. +.It Pa record_lock +Lock file for record. +.El +.Sh AUTHORS +.An -nosplit +.An Jay Fenlason +.Po + +.An Kenny Woodland , +.An Mike Thome +and +.An Jon Payne +.Pc +wrote the original hack, very much like rogue (but full of bugs). +.Pp +.An Andries Brouwer +continuously deformed their sources into the current +version \(en in fact an entirely different game. diff --git a/static/openbsd/man6/hangman.6 b/static/openbsd/man6/hangman.6 new file mode 100644 index 00000000..a59d9694 --- /dev/null +++ b/static/openbsd/man6/hangman.6 @@ -0,0 +1,78 @@ +.\" $OpenBSD: hangman.6,v 1.17 2015/02/07 01:37:30 miod Exp $ +.\" +.\" Copyright (c) 1983, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)hangman.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: February 7 2015 $ +.Dt HANGMAN 6 +.Os +.Sh NAME +.Nm hangman +.Nd computer version of the game hangman +.Sh SYNOPSIS +.Nm hangman +.Op Fl k +.Op Fl d Ar wordlist +.Sh DESCRIPTION +In +.Nm hangman , +the computer picks a word from the on-line word list +and you must try to guess it. +The computer keeps track of which letters have been guessed +and how many wrong guesses you have made on the screen in a graphic fashion. +.Pp +The options are as follows: +.Bl -tag -width Ds +.It Fl d Ar wordlist +Use the specified +.Ar wordlist +instead of the default. +If the wordlist file is an ELF binary file, its symbols are used as the +word list. +Otherwise, the wordlist file must be a plain text file, with one word per line. +Only lowercase words of at least a certain length +.Pq typically 6 characters +are chosen. +.It Fl k +Use the kernel symbols, as read from +.Pa /dev/ksyms , +instead of the default wordlist. +.El +.Sh FILES +.Bl -tag -width "/usr/share/dict/wordsXXX" -compact +.It Pa /dev/ksyms +Kernel symbols file. +.It Pa /usr/share/dict/words +Default word list. +.El +.Sh SEE ALSO +.Xr ddb 4 , +.Xr ksyms 4 +.Sh AUTHORS +.An Ken Arnold diff --git a/static/openbsd/man6/hunt.6 b/static/openbsd/man6/hunt.6 new file mode 100644 index 00000000..24297f18 --- /dev/null +++ b/static/openbsd/man6/hunt.6 @@ -0,0 +1,505 @@ +.\" $NetBSD: hunt.6,v 1.3 1997/10/10 16:32:30 lukem Exp $ +.\" $OpenBSD: hunt.6,v 1.23 2022/02/18 23:17:14 jsg Exp $ +.\" +.\" Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold +.\" San Francisco, California +.\" +.\" Copyright (c) 1985 Regents of the University of California. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 18 2022 $ +.Dt HUNT 6 +.Os +.Sh NAME +.Nm hunt +.Nd a multi-player multi-terminal game +.Sh SYNOPSIS +.Nm hunt +.Op Fl bcfmqSs +.Op Fl n Ar name +.Op Fl p Ar port +.Op Fl t Ar team +.Op Fl w Ar message +.Oo +.Op Fl h +.Ar host +.Oc +.Sh DESCRIPTION +The object of the game +.Nm +is to kill off the other players. +There are no rooms, no treasures, and no monsters. +Instead, you wander around a maze, find grenades, trip mines, and shoot down +walls and players. +The more players you kill before you die, the better your score is. +If the +.Fl m +flag is given, +you enter the game as a monitor +.Po +you can see the action but you cannot play +.Pc . +.Pp +.Nm +looks for an active game on the local network. +The location of the game may be specified by giving the +.Ar host +argument. +This presupposes that a hunt game is already running on that host: see +.Xr huntd 6 +for details on how to set up a game on a specific host. +If more than one game is found, you may pick which game to play in. +If no games are found, +.Nm +will exit. +.Pp +If the +.Fl q +flag is given, +.Nm +queries the local network +.Pq or specific host +and reports on all active games found. +This is useful for shell startup scripts, e.g., csh's +.Pa .login . +.Pp +The player name may be specified on the command line by using the +.Fl n +option. +.Pp +The +.Fl c , +.Fl s , +and +.Fl f +options are for entering the game cloaked, scanning, or flying, respectively. +.Pp +The +.Fl b +option turns off beeping when you reach the typeahead limit. +.Pp +The +.Fl t +option aids team play by making everyone else on your team +appear as the team name. +A team name is a single digit to avoid conflicting with other characters +used in the game. +Use a team name consisting of a single space +.Pq Sq \ +to remain on your own. +.Pp +The +.Fl p +.Ar port +option allows the rendezvous port number to be set. +.Pp +The +.Fl w +.Ar message +option is the only way to send a message to everyone else's screen when +you start up. +It is most often used to say +.Dq eat slime death - NickD's coming in . +.Pp +When you die and are asked if you wish to re-enter the game, +there are other answers than just yes or no. +You can also reply with a +.Ic w +to write a message before continuing or +.Ic o +to change how you enter the game +.Pq cloaked, scanning, or flying . +.Sh "PLAYING HINTS" +.Nm +only works on terminals with at least 24 lines, 80 columns, and +cursor addressing. +The screen is divided in to 3 areas. +On the right hand side is the status area. +It shows damage sustained, +charges remaining, +who's in the game, +who's scanning +.Po +the +.Ql \&* +in front of the name +.Pc , +who's cloaked +.Po +the +.Ql \&+ +in front of the name +.Pc , +and other players' scores. +The rest of the screen is taken up by your map of the maze. +The 24th line +is used for longer messages that don't fit in the status area. +.Pp +.Nm +uses the same keys to move as +.Xr vi 1 +does, i.e., +.Ic h , +.Ic j , +.Ic k , +and +.Ic l +for left, down, up, right, respectively. +To change which direction you're facing in the maze, +use the upper case version of the movement key +.Po +i.e., +.Ic HJKL +.Pc . +You can only fire or throw things in the direction you're facing. +.Pp +Other commands are: +.Bl -tag -width Ic -compact +.It Ic f No or Ic 1 +Fire a bullet +.Pq Takes 1 charge +.It Ic g No or Ic 2 +Throw grenade +.Pq Takes 9 charges +.It Ic F No or Ic 3 +Throw satchel charge +.Pq Takes 25 charges +.It Ic G No or Ic 4 +Throw bomb +.Pq Takes 49 charges +.It Ic 5 +Throw big bomb +.Pq Takes 81 charges +.It Ic 6 +Throw even bigger bomb +.Pq Takes 121 charges +.It Ic 7 +Throw even more big bomb +.Pq Takes 169 charges +.It Ic 8 +Throw even more bigger bomb +.Pq Takes 225 charges +.It Ic 9 +Throw very big bomb +.Pq Takes 289 charges +.It Ic 0 +Throw very, very big bomb +.Pq Takes 361 charges +.It Ic @ +Throw biggest bomb +.Pq Takes 441 charges +.It Ic o +Throw small slime +.Pq Takes 5 charges +.It Ic O +Throw big slime +.Pq Takes 10 charges +.It Ic p +Throw bigger slime +.Pq Takes 15 charges +.It Ic P +Throw biggest slime +.Pq Takes 20 charges +.It Ic s +Scan +.Pq show where other players are +.Pq Takes 1 charge +.It Ic c +Cloak +.Pq hide from scanners +.Pq Takes 1 charge +.It Ic ^L +Redraw screen +.It Ic q +Quit +.El +.Pp +The symbols on the screen are: +.Bl -tag -width Ic -compact +.It Li \&- \&| \&+ +walls +.It Li \&/ \e +diagonal +.Pq deflecting +walls +.It Li # +doors +.Pq dispersion walls +.It Li \&; +small mine +.It Li g +large mine +.It Li \&: +bullet +.It Li o +grenade +.It Li O +satchel charge +.It Li @ +bomb +.It Li s +small slime +.It Li $ +big slime +.It Li > < ^ v +you, facing right, left, up, or down +.It Li } { i \&! +other players facing right, left, up, or down +.It \&* +explosion +.It Li \&\e|/ +.It Li \&-*- +grenade and large mine explosion +.It Li \&/|\e +.El +.Pp +Other helpful hints: +.Bl -bullet -compact +.It +You can only fire in the direction you are facing. +.It +You can only fire three shots in a row before the gun must cool off. +.It +Shots move 5 times faster than you do. +.It +To stab someone, +you face that player and move at them. +.It +Stabbing does 2 points worth of damage and shooting does 5 points. +.It +Slime does 5 points of damage each time it hits. +.It +You start with 15 charges and get 5 more every time a player enters +or re-enters. +.It +Grenade explosions cover a 3 by 3 area, each larger bomb cover a +correspondingly larger area +.Po +ranging from 5 by 5 to 21 by 21 +.Pc . +All explosions are centered around the square the shot hits and +do the most damage in the center. +.It +Slime affects all squares it oozes over. +The number of squares is equal to the number of charges used, +multiplied by +.Va slimefactor +as set by +.Xr huntd 6 +.Pq default 3 . +.It +One small mine and one large mine are placed in the maze for every new player. +A mine has a 2% probability of tripping when you walk forward on to it; +50% when going sideways; +95% when backing up. +Tripping a mine costs you 5 points or 10 points, respectively. +Defusing a mine is worth 1 charge or 9 charges, respectively. +.It +You cannot see behind you. +.It +Cloaking consumes 1 ammo charge per 20 of your moves. +.It +Scanning consumes 1 ammo charge per (20 \(mu the number of players) +of other player moves. +.It +Turning on cloaking turns off scanning \(em turning on scanning turns off +cloaking. +.It +When you kill someone, +you get 2 more damage capacity points and 2 damage points get taken away. +.It +Maximum typeahead is 5 characters. +.It +A shot destroys normal +.Pq i.e., non-diagonal, non-door +walls. +.It +Diagonal walls deflect shots and change orientation. +.It +Doors disperse shots in random directions +.Pq up, down, left, right . +.It +Diagonal walls and doors cannot be destroyed by direct shots but may +be destroyed by an adjacent grenade explosion. +.It +Slime goes around walls, not through them. +.It +Walls regenerate, reappearing in the order they were destroyed. +One percent of the regenerated walls will be diagonal walls or doors. +When a wall is generated directly beneath a player, they are thrown in +a random direction for a random period of time. +When the player lands, they sustain damage +.Po +up to 20 percent of the amount of damage already sustained +.Pc ; +i.e., +the less damage the player had, the more nimble they are and +therefore less likely to hurt themselves on landing. +.\"It +.\"There is a volcano close to the center of the maze which goes off +.\"close to every 30 deaths. +.It +Every 30 deaths or so, a +.Ql \&? +will appear. +It is a wandering bomb which will explode when it hits someone, or +when it is slimed. +.It +If no one moves, everything stands still. +But see the +.Va simstep +configuration variable in +.Xr huntd 6 +.It +The environment variable +.Ev HUNT +is checked to get the player name. +If you don't have this variable set, +.Nm +will ask you what name you want to play under. +If you wish to set other options than just your name, +you can enumerate the options as follows: +.Dl setenv HUNT "name=Sneaky,team=1,cloak,mapkey=zoFfGg1f2g3F4G" +sets the player name to Sneaky, +sets the team to one, +sets the enter game attribute to cloaked, +and the maps +.Ic z No to Ic o , +.Ic F No to Ic f , +.Ic G No to Ic g , +.Ic 1 No to Ic f , +.Ic 2 No to Ic g , +.Ic 3 No to Ic F , +and +.Ic 4 No to Ic G . +The +.Ic mapkey +option must be last. +Other options are: +.Ic scan , fly , nobeep , +.Ic port= Ns Ar string , +.Ic host= Ns Ar string , +and +.Ic message= Ns Ar string +\(em which correspond to the command line options. +String options cannot contain commas since commas +are used to separate options. +.It +It's a boring game if you're the only one playing. +.El +.Pp +Your score is the decayed average of the ratio of number of kills to number +of times you entered the game and is only kept for the duration +of a single session of +.Nm hunt . +.\" .Pp +.\" .Nm +.\" normally drives up the load average to be approximately +.\" (number_of_players + 0.5) greater than it would be without a +.\" .Nm +.\" game executing. +.Sh STATISTICS +The +.Fl S +option fetches the current game statistics. +.Pp +Two groups of statistics are presented: the first group of statistics is +that of the clients currently connected to the game, and is reset each +time the client rejoins, while the second group of statistics is on all +players +.Pq dead or alive +by name, and collected over the lifetime of the +game daemon. +.Pp +The meaning of the column headings are as follows: +.Pp +.Bl -tag -width No -compact -offset indent +.It Score +the player's last score +.It Ducked +how many shots a player ducked +.It Absorb +how many shots a player absorbed +.It Faced +how many shots were fired at player's face +.It Shot +how many shots were fired at player +.It Robbed +how many of player's shots were absorbed +.It Missed +how many of player's shots were ducked +.It SlimeK +how many slime kills player had +.It Enemy +how many enemies were killed +.It Friend +how many friends were killed +.Pq self and same team +.It Deaths +how many times player died +.It Still +how many times player died without typing in any commands +.It Saved +how many times a shot/bomb would have killed player if they hadn't +ducked or absorbed it +.It Connect +current connection state(s) of player: +.Sq p +for playing, +.Sq m +for monitoring +.El +.Sh FILES +.Bl -tag -width Pa -compact +.It Pa /usr/games/huntd +game coordinator +.El +.Sh SEE ALSO +.Xr huntd 6 +.Sh AUTHORS +.An -nosplit +.An Conrad Huang , +.An Ken Arnold , +and +.An Greg Couch ; +.br +University of California, San Francisco, Computer Graphics Lab +.Sh BUGS +To keep up the pace, not everything is as realistic as possible. +.Pp +The historic behaviour of +.Nm +automatically starting +.Xr huntd 6 +is no longer supported. +.Sh ACKNOWLEDGEMENTS +We thank Don Kneller, +John Thomason, Eric Pettersen, Mark Day, +and Scott Weiner for providing +endless hours of play-testing to improve the character of the game. +We hope their significant others will forgive them; +we certainly don't. diff --git a/static/openbsd/man6/huntd.6 b/static/openbsd/man6/huntd.6 new file mode 100644 index 00000000..b8ea31d7 --- /dev/null +++ b/static/openbsd/man6/huntd.6 @@ -0,0 +1,282 @@ +.\" $NetBSD: huntd.6,v 1.3 1998/01/09 08:03:42 perry Exp $ +.\" $OpenBSD: huntd.6,v 1.25 2015/09/25 17:50:53 schwarze Exp $ +.\" +.\" Hunt +.\" Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold +.\" San Francisco, California +.\" +.\" Copyright (c) 1985 Regents of the University of California. +.\" All rights reserved. The Berkeley software License Agreement +.\" specifies the terms and conditions for redistribution. +.\" +.Dd $Mdocdate: September 25 2015 $ +.Dt HUNTD 6 +.Os +.Sh NAME +.Nm huntd +.Nd hunt daemon, back-end for hunt game +.Sh SYNOPSIS +.Nm huntd +.Op Fl bs +.Op Fl a Ar addr +.Op Fl D Ar var Ns = Ns Ar value +.Op Fl p Ar port +.Sh DESCRIPTION +.Nm +controls the multi-player +.Xr hunt 6 +game. +.Pp +The +.Fl a Ar addr +option is used to cause the server to listen only on a +specific interface address. +The +.Ar addr +argument must be given as an IP address. +.Pp +If the +.Fl b +option is specified, +.Nm +will fork and go into the background. +In this mode, errors will be logged via +.Va syslog +instead of to +.Va stderr . +.Pp +Options given with +.Fl D +override those read from configuration files +.Po +see +.Sx CONFIGURATION , +below +.Pc . +.Pp +The +.Fl p Ar port +option changes the UDP port number used to rendezvous with the player +process and thus allows for private games of +.Xr hunt 6 . +.Pp +The +.Fl s +option is for running +.Nm +forever +.Pq server mode . +This is similar to running it under the control of +.Xr inetd 8 +.Pq see below , +but it consumes a process table entry when no one is playing, +and monitor clients are not disconnected. +.Ss INETD +To run +.Nm +from +.Xr inetd 8 , +you'll need to +add this line to +.Pa /etc/inetd.conf : +.Pp +.Dl hunt dgram udp wait nobody /usr/games/huntd HUNT +.Pp +Do not use any of the command line options \(em if you want +.Xr inetd 8 +to start up +.Nm huntd +on a private port, change the port listed in +.Pa /etc/services . +.Ss NETWORK RENDEZVOUS +When +.Xr hunt 6 +starts up, it broadcasts on attached networks, +using the broadcast or point-to-point destination address for each interface, +to find a +.Nm hunt +game in progress. +If a +.Nm huntd +hears the request, it sends back the port number for the +.Nm hunt +process to connect to. +.Ss CONFIGURATION +When +.Nm +starts, it looks for configuration files that determine +game parameters. +Each line of a configuration file is of the form +.Ar var No = Ar value . +Comments start with a hash sign +.Pq Sq # . +The configuration files loaded in order +.Pq if they exist +are: +.Pa /etc/hunt.conf , +.Pa $HOME/.hunt.conf , +and +.Pa ./.hunt.conf . +.Pp +Many of these variables require intimate knowledge of the +driver source code. +The complete list of configurable variables is as follows. +.Pp +.Bl -tag -width pdroneabsorb -compact +.It Va random +enable dispersion doors +.Pq default 1 +.It Va reflect +enable generation of reflection walls +.Pq default 1 +.It Va monitor +enable monitors +.Pq default 1 +.It Va ooze +enable slime shots +.Pq default 1 +.It Va fly +enable flight +.Pq default 1 +.It Va volcano +enable volcanoes +.Pq default 1 +.It Va drone +enable drone +.Pq default 1 +.It Va boots +enable boots +.Pq default 1 +.It Va scan +enable scanning +.Pq default 1 +.It Va cloak +enable cloaking +.Pq default 1 +.It Va logerr +errors to stderr +.Pq default 1 +.It Va syslog +errors to +.Xr syslogd 8 +.Pq default 0 +.It Va scoredecay +nr deaths before nr kills begins to decay +.Pq default 15 +.It Va maxremove +Maximum number of holes in the maze wall +.Pq default 40 +.It Va linger +Seconds to keep game open with no players. +\&-1 means forever +.Pq default 90 +.It Va flytime +max time flying +.Pq default 20 +.It Va flystep +max displacement each flying time unit +.Pq default 5 +.It Va volcano_max +max size of volcano +.Pq default 50 +.It Va ptrip_face +percentage chance of tripping a grenade on pickup +.Pq default 2 +.It Va ptrip_back +percentage chance of same when backing onto it +.Pq default 95 +.It Va ptrip_side +percentage chance of same when walking sideways into it +.Pq default 50 +.It Va prandom +percentage of time dispersion doors appear +.Pq default 1 +.It Va preflect +percentage of time reflection walls appear +.Pq default 1 +.It Va pshot_coll +percentage chance of shots colliding +.Pq default 5 +.It Va pgren_coll +percentage chance of grenades colliding +.Pq default 10 +.It Va pgren_catch +facing player chance of catching grenade +.Pq default 10 +.It Va pmiss +percentage chance of bullet missing player +.Pq default 5 +.It Va pdroneabsorb +percentage chance of absorbing a drone +.Pq default 1 +.It Va fall_frac +divisor of damage used for fall damage +.Pq default 5 +.It Va bulspd +speed of bullets +.Pq default 5 +.It Va ishots +initial ammo for player +.Pq default 15 +.It Va nshots +ammo boost for all when new player joins +.Pq default 5 +.It Va maxncshot +max number of simultaneous shots per player +.Pq default 2 +.It Va maxdam +the initial shield for each player +.Pq default 10 +.It Va mindam +minimum damage from one unit of ammo +.Pq default 5 +.It Va stabdam +damage from stabbing +.Pq default 2 +.It Va killgain +shield gained from killing someone +.Pq default 2 +.It Va slimefactor +charge multiplier for slime +.Pq default 3 +.It Va slimespeed +speed of slime +.Pq default 5 +.It Va lavaspeed +speed of volcano lava +.Pq default 1 +.It Va cloaklen +duration of a cloak +.Pq default 20 +.It Va scanlen +duration of a scan +.Pq default 20 +.It Va mindshot +minimum shot class needed to make a drone +.Pq default 2 +.It Va simstep +maximum simulation step in microseconds. +Zero means traditional blocking behaviour. +Try 55000 for something reasonable +.Pq default 0 +.El +.Sh FILES +.Bl -tag -width Pa -compact +.It Pa /etc/hunt.conf +.It Pa "$HOME/.hunt.conf" +.It Pa ./.hunt.conf +.El +.Sh SEE ALSO +.Xr hunt 6 , +.Xr inetd 8 +.Sh AUTHORS +.An -nosplit +.An Conrad Huang , +.An Ken Arnold , +and +.An Greg Couch ; +.br +University of California, San Francisco, Computer Graphics Lab +.Pp +.An David Leonard +tidied up, and added the configuration file. diff --git a/static/openbsd/man6/mille.6 b/static/openbsd/man6/mille.6 new file mode 100644 index 00000000..58c88e48 --- /dev/null +++ b/static/openbsd/man6/mille.6 @@ -0,0 +1,386 @@ +.\" $OpenBSD: mille.6,v 1.14 2022/02/18 23:17:14 jsg Exp $ +.\" +.\" Copyright (c) 1983, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)mille.6 8.3 (Berkeley) 6/1/94 +.\" +.Dd $Mdocdate: February 18 2022 $ +.Dt MILLE 6 +.Os +.Sh NAME +.Nm mille +.Nd play Mille Bornes +.Sh SYNOPSIS +.Nm mille +.Op Ar file +.Sh DESCRIPTION +.Nm +plays a two-handed game reminiscent of +the Parker Brother's game of Mille Bornes with you. +The rules are described below. +If a file name is given on the command line, +the game saved in that file is started. +.Pp +When a game is started up, +the bottom of the score window will contain a list of commands. +They are: +.Bl -tag -width indent +.It P +Pick a card from the deck. +This card is placed in the +.Sq P +slot in your hand. +.It D +Discard a card from your hand. +To indicate which card, type the number of the card in the hand +.Po +or +.Dq P +for the just-picked card +.Pc +followed by a +.Aq RETURN +or +.Aq SPACE . +The +.Aq RETURN +or +.Aq SPACE +is required to allow recovery from typos, which can be very expensive. +.It U +Use a card. +The card is again indicated by its number, followed by a +.Aq RETURN +or +.Aq SPACE . +.It O +Toggle ordering the hand. +By default off, if turned on it will sort the cards in your hand appropriately. +This is not recommended for the impatient on slow terminals. +.It Q +Quit the game. +This will ask for confirmation. +.It S +Save the game in a file. +If the game was started from a file, +you will be given an opportunity to save it to the same file. +If you don't wish to, or you did not start from a file, +you will be asked for the file name. +If you type a +.Aq RETURN +without a name, the save will be terminated and the game resumed. +.It R +Redraw the screen from scratch. +The command ^L +.Pq control-L +will also work. +.It W +Toggle window type. +This switches the score window between the startup window +.Pq with all the command names +and the end-of-game window. +Using the end-of-game window +saves time by eliminating the switch at the end of the game +to show the final score. +Recommended for hackers and other miscreants. +.El +.Pp +If you make a mistake, an error message will be printed +on the last line of the score window, and a bell will beep. +.Pp +At the end of each hand or game, +you will be asked if you wish to play another. +If not, it will ask you if you want to save the game. +If you do, and the save is unsuccessful, +play will be resumed as if you had said you wanted to play another hand/game. +This allows you to use the +.Dq S +command to reattempt the save. +.Sh CARDS +Here is some useful information. +The number in parentheses after the card name +is the number of that card in the deck: +.Bl -column "Speed Limit (3)" "End of Limit (6)" "Puncture Proof (1)" +.It Sy Hazard Ta Sy Repair Ta Sy Safety +.It "Out of Gas (2)" Ta "Gasoline (6)" Ta "Extra Tank (1)" +.It "Flat Tire (2)" Ta "Spare Tire (6)" Ta "Puncture Proof (1)" +.It "Accident (2)" Ta "Repairs (6)" Ta "Driving Ace (1)" +.It "Stop (4)" Ta "Go (14)" Ta "Right of Way (1)" +.It "Speed Limit (3)" Ta "End of Limit (6)" Ta "" +.El +.Pp +.Sy Mileage +.br +25 \- (10), 50 \- (10), 75 \- (10), 100 \- (12), 200 \- (4) +.Sh RULES +.Ss Object +The point of this game is to get a total of 5000 points in several hands. +Each hand is a race to put down exactly 700 miles before your opponent does. +Beyond the points gained by putting down milestones, +there are several other ways of making points. +.Ss Overview +The game is played with a deck of 101 cards. +.Em Distance +cards represent a number of miles traveled. +They come in denominations of 25, 50, 75, 100, and 200. +When one is played, +it adds that many miles to the player's trip so far this hand. +.Em Hazard +cards are used to prevent your opponent from putting down Distance cards. +They can only be played if your opponent has a +.Em Go +card on top of the Battle pile. +The cards are +.Em Out of Gas , +.Em Accident , +.Em Flat Tire , +.Em Speed Limit , +and +.Em Stop . +.Em Remedy +cards fix problems caused by Hazard cards played on you by your opponent. +The cards are +.Em Gasoline , +.Em Repairs , +.Em Spare Tire , +.Em End of Limit , +and +.Em Go . +.Em Safety +cards prevent your opponent from putting specific Hazard cards on you +in the first place. +They are +.Em Extra Tank , +.Em Driving Ace , +.Em Puncture Proof , +and +.Em Right of Way , +and there is only one of each in the deck. +.Ss Board Layout +The board is split into several areas. +From top to bottom, they are: +.Pp +.Bl -hang -offset indent -compact -width "SAFETY AREA " +.It Sy SAFETY AREA +(unlabeled): This is where the safeties will be placed as they are played. +.It Sy HAND +These are the cards in your hand. +.It Sy BATTLE +This is the Battle pile. +All the Hazard and Remedy Cards are played here, except the +.Em Speed Limit +and +.Em End of Limit +cards. +Only the top card is displayed, as it is the only effective one. +.It Sy SPEED +The Speed pile. +The +.Em Speed Limit +and +.Em End of Limit +cards are played here +to control the speed at which the player is allowed to put down miles. +.It Sy MILEAGE +Miles are placed here. +The total of the numbers shown here is the distance traveled so far. +.El +.Ss Play +The first pick alternates between the two players. +Each turn usually starts with a pick from the deck. +The player then plays a card, or if this is not possible or desirable, +discards one. +Normally, a play or discard of a single card constitutes a turn. +If the card played is a safety, however, +the same player takes another turn immediately. +.Pp +This repeats until one of the players reaches 700 miles or the deck runs out. +If someone reaches 700, they have the option of going for an +.Sy Extension , +which means that the play continues until someone reaches 1000 miles. +.Ss Hazard and Remedy Cards +Hazard Cards are played on your opponent's Battle and Speed piles. +Remedy Cards are used for undoing the effects of your opponent's nastiness. +.Pp +.Bl -hang -offset indent -compact -width "End of Limit " +.It Sy Go +(Green Light) +must be the top card on your Battle pile for you to play any mileage, +unless you have played the +.Em Right of Way +card +.Pq see below . +.It Sy Stop +is played on your opponent's +.Em Go +card to prevent them from playing mileage until they play a +.Em Go +card. +.It Sy Speed Limit +is played on your opponent's Speed pile. +Until they play an +.Em End of Limit +they can only play 25 or 50 mile cards, presuming their +.Em Go +card allows them to do even that. +.It Sy End of Limit +is played on your Speed pile to nullify a +.Em Speed Limit +played by your opponent. +.It Sy Out of Gas +is played on your opponent's +.Em Go +card. +They must then play a +.Em Gasoline +card, and then a +.Em Go +card before they can play any more mileage. +.It Sy Flat Tire +is played on your opponent's +.Em Go +card. +They must then play a +.Em Spare Tire +card, and then a +.Em Go +card before they can play any more mileage. +.It Sy Accident +is played on your opponent's +.Em Go +card. +They must then play a +.Em Repairs +card, and then a +.Em Go +card before they can play any more mileage. +.El +.Ss Safety Cards +Safety cards prevent your opponent +from playing the corresponding Hazard cards on you for the rest of the hand. +It cancels an attack in progress, and +.Em always entitles the player to an extra turn . +.Pp +.Bl -hang -offset indent -compact -width "Puncture Proof " +.It Sy Right of Way +Prevents your opponent from playing both +.Em Stop +and +.Em Speed Limit +cards on you. +It also acts as a permanent +.Em Go +card for the rest of the hand, so you can play mileage +as long as there is not a Hazard card on top of your Battle pile. +In this case only, your opponent can play Hazard cards directly on a Remedy card +other than a Go card. +.It Sy Extra Tank +When played, your opponent cannot play an +.Em Out of Gas +on your Battle Pile. +.It Sy Puncture Proof +When played, your opponent cannot play a +.Em Flat Tire +on your Battle Pile. +.It Sy Driving Ace +When played, your opponent cannot play an +.Em Accident +on your Battle Pile. +.El +.Ss Distance Cards +Distance cards are played when you have a +.Em Go +card on your Battle pile, +or a +.Em Right of Way +in your Safety area and are not stopped by a Hazard Card. +They can be played in any combination that totals exactly 700 miles, +except that +.Em "you cannot play more than two 200 mile cards in one hand" . +A hand ends whenever one player gets exactly 700 miles or the deck runs out. +In that case, play continues until either someone reaches 700, +or neither player can use any cards in their hand. +If the trip is completed after the deck runs out, this is called +.Em Delayed Action . +.Ss Coup Fourre +This is a French fencing term for a counter-thrust move as part of a parry +to an opponent's attack. +In current French colloquial language it means a sneaky, underhand blow. +In Mille Bornes, it is used as follows: +If an opponent plays a Hazard card, +and you have the corresponding Safety in your hand, +you play it immediately, even +.Em before +you draw. +This immediately removes the Hazard card from your Battle pile, +and protects you from that card for the rest of the game. +This gives you more points +.Pq see Scoring below . +.Ss Scoring +Scores are totalled at the end of each hand, +whether or not anyone completed the trip. +The terms used in the Score window have the following meanings: +.Bl -hang -offset indent -compact -width "Milestones Played :" +.It Sy Milestones Played : +Each player scores as many miles as they played before the trip ended. +.It Sy Each Safety : +100 points for each safety in the Safety area. +.It Sy All 4 Safeties : +300 points if all four safeties are played. +.It Sy Each Coup Fourre : +300 points for each Coup Fourre accomplished. +.El +.Pp +The following bonus scores can apply only to the winning player: +.Bl -hang -offset indent -compact -width "Trip Completed :" +.It Sy Trip Completed : +400 points bonus for completing the trip to 700 or 1000. +.It Sy Safe Trip : +300 points bonus for completing the trip without using any 200 mile cards. +.It Sy Delayed Action : +300 points bonus for finishing after the deck was exhausted. +.It Sy Extension : +200 points bonus for completing a 1000 mile trip. +.It Sy Shut-Out : +500 points bonus for completing the trip +before your opponent played any mileage cards. +.El +.Pp +Running totals are also kept for the current score for each player +for the hand +.Sy ( Hand Total ) , +the game +.Sy ( Overall Total ) , +and number of games won +.Sy ( Games ) . +.Sh AUTHORS +.An Ken Arnold +.Pp +.Po +The game itself is a product of Parker Brothers, Inc. +.Pc diff --git a/static/openbsd/man6/monop.6 b/static/openbsd/man6/monop.6 new file mode 100644 index 00000000..bcf14e4e --- /dev/null +++ b/static/openbsd/man6/monop.6 @@ -0,0 +1,185 @@ +.\" $OpenBSD: monop.6,v 1.17 2022/02/18 23:17:14 jsg Exp $ +.\" +.\" Copyright (c) 1980 The Regents of the University of California. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)monop.6 6.5 (Berkeley) 3/25/93 +.\" +.Dd $Mdocdate: February 18 2022 $ +.Dt MONOP 6 +.Os +.Sh NAME +.Nm monop +.Nd Monopoly game +.Sh SYNOPSIS +.Nm monop +.Op Ar file +.Sh DESCRIPTION +.Nm +is reminiscent of the Parker Brother's game Monopoly, and +monitors a game between 2 to 9 users. +It is assumed that the rules of Monopoly are known. +The game follows the standard rules, with the exception that, +if a property goes up for auction and there are only two solvent players, +no auction is held and the property remains unowned. +.Pp +The game, in effect, lends the player money, +so it is possible to buy something which you cannot afford. +However, as soon as players go into debt, +they must +.Dq fix the problem , +i.e., make themselves solvent, before play can continue. +If this is not possible, the player's property reverts to their debtee, +either a player or the bank. +A player can resign at any time to any person or the bank, +which puts the property back on the board, unowned. +.Pp +Any time that the response to a question is a +.Em string , +e.g., a name, place or person, you can type +.Sq Ic \&? +to get a list of valid answers. +It is not possible to input a negative number, nor is it ever necessary. +.Pp +.Em A Summary of Commands : +.Bl -tag -width item +.It Ic quit +quit game. +It asks you if you're sure. +.It Ic print +print current board. +The columns have the following meanings (column headings are the same for the +.Ic where , +.Ic own holdings , +and +.Ic holdings +commands): +.Pp +.Bl -tag -width indent -compact +.It Name +The first ten characters of the name of the square. +.It Own +The +.Em number +of the owner of the property. +.It Price +The cost of the property (if any). +.It Mg +This field has a +.Sq * +in it if the property is mortgaged. +.It \&# +If the property is a Utility or Railroad, this is the number +of such owned by the owner. +If the property is land, this is the number of houses on it. +.It Rent +Current rent on the property. +If it is not owned, there is no rent. +.El +.It Ic where +tell where players are. +A `*' indicates the current player. +.It Ic own holdings +list your own holdings, +i.e., money, get-out-of-jail-free cards, and property. +.It Ic holdings +show holdings list: look at anyone's holdings. +It will ask you whose holdings you wish to look at. +When you are finished, type +.Sq Ic done . +.It Ic mortgage +mortgage property: +sets up a list of mortgageable property, and asks which you wish to mortgage. +.It Ic unmortgage +unmortgage property: +unmortgage mortgaged property. +.It Ic buy +buy houses: +sets up a list of monopolies on which you can buy houses. +If there is more than one, it asks you which you want to buy for. +It then asks you how many for each piece of property, +giving the current amount in parentheses after the property name. +If you build in an unbalanced manner +(a disparity of more than one house within the same monopoly), +it asks you to re-input. +.It Ic sell +sell houses: +sets up a list of monopolies from which you can sell houses. +It operates in an analogous manner to +.Ic buy . +.It Ic card +use a get-out-of-jail-free card to get out of jail. +If you're not in jail, or you don't have one, it tells you so. +.It Ic pay +pay $50 to get out of jail, from whence you are put on Just Visiting. +Difficult to do if you're not there. +.It Ic trade +trade with another player. +It asks you with whom you wish to trade, +and then asks you what each wishes to give up. +You can get a summary at the end and, in all cases, +it asks for confirmation of the trade before doing it. +.It Ic resign +resign to another player or the bank. +If you resign to the bank, all property reverts to its virgin state, +and get-out-of-jail-free cards revert to the deck. +.It Ic save +save the current game in a file for later play. +You can continue play after saving, +either by adding the file in which you saved the game after the +.Nm +command, or by using the +.Ic restore +command (see below). +It will ask you which file you wish to save it in, +and, if the file exists, confirm that you wish to overwrite it. +.It Ic restore +read in a previously saved game from a file. +It leaves the file intact. +.It Ic roll +roll the dice and move forward to your new location. +If you simply hit the <RETURN> key instead of a command, +it is the same as typing +.Ic roll . +.El +.Sh FILES +.Bl -tag -width /usr/share/games/cards.pck -compact +.It Pa /usr/share/games/cards.pck +Chance and Community Chest cards +.El +.Sh AUTHORS +.An Ken Arnold +.Sh BUGS +No command can be given an argument instead of a response to a query. +.Pp +Additional cash cannot be generated during an auction by selling buildings +or by mortgaging property. +.Pp +The trading of mortgaged properties is not billed correctly. +.Pp +Resigning to the bank should trigger the immediate auction of all +possessions. diff --git a/static/openbsd/man6/morse.6 b/static/openbsd/man6/morse.6 new file mode 100644 index 00000000..d4ccd7ef --- /dev/null +++ b/static/openbsd/man6/morse.6 @@ -0,0 +1,80 @@ +.\" $OpenBSD: morse.6,v 1.4 2022/02/18 10:24:32 jsg Exp $ +.\" +.\" Copyright (c) 1988, 1991, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)bcd.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: February 18 2022 $ +.Dt MORSE 6 +.Os +.Sh NAME +.Nm morse +.Nd reformat input as morse code +.Sh SYNOPSIS +.Nm morse +.Op Fl d | s +.Op Ar string ... +.Sh DESCRIPTION +The +.Nm +command reads the given input and reformats it in the form of morse code. +Acceptable input are command line arguments or the standard input. +.Pp +The options are as follows: +.Bl -tag -width Ds +.It Fl d +Decode dot-dash morse +.Po +as generated by the +.Fl s +option +.Pc +back into text. +A lowercase +.Sq x +is printed for undecipherable input; otherwise, text is returned uppercase. +Many procedural signs can be decoded (though not encoded). +If the morse to be translated is given on the command line, it should be +preceded by +.Sq -- +to keep it from being mistaken for options. +.It Fl s +Produce dots and dashes rather than words. +.El +.Sh SEE ALSO +.Rs +.%I ITU-T Recommendation F.1 +.%R "Operational provisions for the international public telegram service" +.%O Division B, I. Morse code +.Re +.Rs +.%I ITU-R M.1677-1 +.%R International Morse code +.%D 2009 +.%U https://www.itu.int/rec/R-REC-M.1677-1-200910-I/ +.Re diff --git a/static/openbsd/man6/number.6 b/static/openbsd/man6/number.6 new file mode 100644 index 00000000..227bdd45 --- /dev/null +++ b/static/openbsd/man6/number.6 @@ -0,0 +1,62 @@ +.\" $OpenBSD: number.6,v 1.8 2008/03/17 09:17:56 sobrado Exp $ +.\" +.\" Copyright (c) 1989, 1993, 1994 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)number.6 8.2 (Berkeley) 3/31/94 +.\" +.Dd $Mdocdate: March 17 2008 $ +.Dt NUMBER 6 +.Os +.Sh NAME +.Nm number +.Nd convert Arabic numerals to English +.Sh SYNOPSIS +.Nm number +.Op Fl l +.Op Fl - +.Op Ar # ... +.Sh DESCRIPTION +The +.Nm +utility prints the English equivalent of the number to the standard +output, with each 10^3 magnitude displayed on a separate line. +If no argument is specified, +.Nm +reads lines from the standard input. +.Pp +The options are as follows: +.Bl -tag -width Ds +.It Fl l +Display the number on a single line. +.El +.Pp +.Nm +understands negative numbers (although they must be preceded by +.Sq -- +if they are on the command line to avoid being mistaken for options) +and numbers in scientific notation (e.g. 1.234E+05). diff --git a/static/openbsd/man6/phantasia.6 b/static/openbsd/man6/phantasia.6 new file mode 100644 index 00000000..fcee4511 --- /dev/null +++ b/static/openbsd/man6/phantasia.6 @@ -0,0 +1,1223 @@ +.\" $OpenBSD: phantasia.6,v 1.3 2022/07/11 03:11:49 daniel Exp $ +.\" $NetBSD: phantasia.6,v 1.9 2002/09/26 18:32:03 wiz Exp $ +.\" +.Dd $Mdocdate: July 11 2022 $ +.Dt PHANTASIA 6 +.Os +.Sh NAME +.Nm phantasia +.Nd an interterminal fantasy game +.Sh SYNOPSIS +.Nm +.Op Fl abHmpSsx +.Sh DESCRIPTION +.Bf -symbolic +.Nm +is currently unusable because it relies on +.Xr setgid 2 +to allow multiple users read and write access to the same files. +.Ef +.Pp +.Nm +is a role-playing game that allows players to roll up characters of +various types to fight monsters and other players. +Progression of characters is based upon gaining experience from fighting +monsters (and other players). +.Pp +Most of the game is menu-driven and self-explanatory (more or less). +.\" The screen is cursor updated, so be sure to set up the +.\" .Ev TERM +.\" variable in your environment. +.Pp +The options provide for a variety of functions to support the game. +They are: +.Bl -tag -width aaa -offset indent +.It Fl a +Get a listing of all character names on file. +.It Fl b +Show scoreboard of top characters per login. +.It Fl H +Print header only. +.It Fl m +Get a monster listing. +.It Fl p +Purge old characters. +.It Fl S +Turn on wizard options, if allowed, if running as +.Em root . +.It Fl s +Invoke +.Nm +without header information. +.It Fl x +Examine/change a particular character on file. +.El +.Pp +The characters are saved on a common file, in order to make the game +interactive between players. +Each character is given a password which allows later retrieval. +Only characters above +.Em level +zero are saved. +Characters unused for a while will be purged. +Characters are only placed on the scoreboard when they die. +.Sh PARTICULARS +.Ss Normal Play +A number of the player's more important statistics are almost always +displayed on the screen, with maximums (where applicable) in +parentheses. +.Pp +The character is placed randomly near the center of a Cartesian +system. +Most commands are selected with a single letter or digit. +For example, one may move by hitting +.Sq W , +.Sq S , +.Sq N , +or +.Sq E , +(lower case may also be used; at no time is the game case-dependent). +One may also use +.Sq H , +.Sq J , +.Sq K , +and +.Sq L +for movement, as with +.Xr vi 1 . +The +.Ic move +.Pq Sq 1 +command is for moving to a specific (x, y) coordinate. +The distance a character can move is calculated by +1 plus 1.5 per +.Em level . +Moving in a compass direction will move the player the maximum +allowed distance in that direction. +.Pp +A player may see who else is playing by using the +.Ic players +.Pq Sq 2 +option. +One may see the coordinates of those who are the same +distance or closer to the origin as the player. +.Em Kings +and +.Em council of the wise +can see and can be seen by everyone. +A +.Em palantir +removes these restrictions. +.Pp +One can talk to other players with the +.Ic talk +.Pq Sq 3 +option. +In general, this is a line or so of text. +To remove the current message, just type +.Aq return +when prompted for a message. +.Pp +The +.Ic stats +.Pq Sq 4 +option shows additional characteristics of a player. +.Pp +One may leave the game with the +.Ic quit +.Pq Sq 5 +option. +.Pp +One may rest by default. +Resting lets one regain maximum +.Em energy level , +and also lets one find +.Em mana . +More mana is found at larger levels and further distances from the origin. +.Pp +One may call a monster by hitting +.Sq 9 +or +.Sq C . +.Pp +.Sq X +can be used to examine other players. +.Pp +One may quit or execute a sub-shell by hitting interrupt. +Quitting during battle results in death, for obvious reasons. +.Pp +Several other options become available as the player progresses in +.Em level +and +.Em magic , +or to other stations in the game +.Em ( valar , +.Em council of the wise , +.Em king ) . +These are described elsewhere. +In general, a control-L will force the redrawing of the screen. +.Pp +Other things which may happen are more or less self-explanatory. +.Ss Fighting Monsters +A player has several options while fighting monsters. +They are as follows: +.Bl -tag -width skirmish -offset indent +.It Ic melee +Inflicts damage on the monster, based upon +.Em strength . +Also decreases the monster's +.Em strength +some. +.It Ic skirmish +Inflicts a little less damage than +.Ic melee , +but decreases the monster's +.Em quickness +instead. +.It Ic evade +Attempt to run away. +Success is based upon both the player's and the monster's +.Em brains +and +.Em quickness . +.It Ic spell +Several options for throwing spells (described elsewhere). +.It Ic nick +Hits the monster one plus the player's +.Em sword , +and gives the player 10% of the monster's +.Em experience . +Decreases the monster's +.Em experience +an amount proportional to the amount granted. +This also increases the monster's quickness. +Paralyzed monsters wake up very fast when nicked. +.It Ic luckout +This is essentially a battle of wits with the monster. +Success is based upon the player's and the monster's +.Em brains . +If successful, the player gets credit for slaying the monster. +Otherwise, nothing happens, and the chance to +.Ic luckout +is lost. +.El +.Ss Character Statistics +.Bl -tag -width energyXlevel -offset indent +.It Em strength +determines how much damage a character can inflict. +.It Em quickness +determines how many chances a character gets to make decisions while fighting. +.It Em energy level +specifies how much damage a character may endure before dying. +.It Em magic level +determines which spells a character may throw, and how effective those +spells will be. +.It Em brains +basically, the character's intelligence; used for various fighting options +and spells. +.It Em mana +used as a power source for throwing spells. +.It Em experience +gained by fighting monsters and other characters. +.It Em level +indicative of how much experience a character has accumulated; progresses +geometrically as +.Em experience +increases. +.It Em poison +sickness which degrades a character's performance (affects +.Em energy level +and +.Em strength ) . +.It Em sin +accumulated as a character does certain nasty things; used only rarely +in normal play of the game. +.It Em age +of player; roughly equivalent to number of turns. +As +.Em age +increases, many personal statistics degenerate. +.El +.Ss Character Types +Character statistics are rolled randomly from the above list, according +to character type. +The types are as follows: +.Bl -tag -width "experimento" -offset indent +.It Em magic user +strong in +.Em magic level +and +.Em brains , +weak in other areas. +Must rely on wits and magic to survive. +.It Em fighter +good in +.Em strength +and +.Em energy level , +fairly good in other areas. +This adds up to a well-equipped fighter. +.It Em elf +very high +.Em quickness +and above average +.Em magic level . +.It Em dwarf +very high +.Em strength +and +.Em energy level , +but with a tendency to be rather slow and not too bright. +.It Em halfling +rather quick and smart, with high +.Em energy level , +but poor in +.Em magic +and +.Em strength . +Born with some +.Em experience . +.It Em experimento +very mediocre in all areas. +However, the +.Em experimento +may be placed almost anywhere within the playing grid. +.El +.Pp +The possible ranges for starting statistics are summarized in +the following table. +.Pp +.TS +l c c c c c c +l c c c c c c. +Type Strength Quick Mana Energy Brains Magic +_ +Mag. User 10-15 30-35 50-100 30-45 60-85 5-9 +Fighter 40-55 30-35 30-50 45-70 25-45 3-6 +Elf 35-45 32-38 45-90 30-50 40-65 4-7 +Dwarf 50-70 25-30 25-45 60-100 20-40 2-5 +Halfling 20-25 34 25-45 55-90 40-75 1-4 +Experimento 25 27 100 35 25 2 +.TE +.\" .Bl -column "Experimento" "Strength" "Quick" "xxxxxx" "Energy" "Brains" "Magic" +.\" .It Sy Charactertype Strength Quick Mana Energy Brains Magic +.\" .It "Magic User" 10-15 30-35 50-100 30-45 60-85 5-9 +.\" .It Fighter 40-55 30-35 30-50 45-70 25-45 3-6 +.\" .It Elf 35-45 32-38 45-90 30-50 40-65 4-7 +.\" .It Dwarf 50-70 25-30 25-45 60-100 20-40 2-5 +.\" .It Halfling 20-25 34 25-45 55-90 40-75 1-4 +.\" .It Experimento 25 27 100 35 25 2 +.\" .El +.Pp +Not only are the starting characteristics different for the different +character types, but the characteristics progress at different rates for the +different types as the character goes up in +.Em level . +.Em Experimentoes Ns ' +characteristics progress randomly as one of the other types. +The progression as characters increase in +.Em level +is summarized in the following table. +.Pp +.TS +nokeep ; +l c c c c c +l n n n n n. +Type Strength Mana Energy Brains Magic +_ +Mag. User 2.0 75 20 6 2.75 +Fighter 3.0 40 30 3.0 1.5 +Elf 2.5 65 25 4.0 2.0 +Dwarf 5 30 35 2.5 1 +Halfling 2.0 30 30 4.5 1 +.TE +.Pp +The character type also determines how much gold a player may +carry, how long until +.Em rings +can overcome the player, and how much +.Em poison +the player can withstand. +.Ss Spells +During the course of the game, the player may use magic powers. +These cases are described below. +.Bl -tag -width "all or nothing" -offset indent +.It Ic cloak +.Em magic level necessary : +20 (plus level 7) +.br +.Em mana used : +35 plus 3 per rest period +.br +Used during normal play. +Prevents monsters from finding the character, +as well as hiding the player from other players. +The player's coordinates show up as '?' in the +.Ic players +option. +Players cannot collect +.Em mana , +find trading posts, or discover the +.Em grail +while cloaked. +Calling a monster uncloaks, as does choosing this option while cloaked. +.It Ic teleport +.Em magic level necessary : +40 (plus level 12) +.br +.Em mana used : +30 per 75 moved +.br +Used during normal play. +Allows the player to move with much more freedom than with the +.Ic move +option, at the price of expending mana. +The maximum distance possible to move is based upon +.Em level +and +.Em magic level . +.It Ic power blast +.Em magic level necessary : +none +.br +.Em mana used : +5 times +.Em level +.br +Used during inter-terminal battle. +Damage is based upon +.Em magic level +and +.Em strength . +Hits much harder than a normal hit. +.It Ic all or nothing +.Em magic level necessary : +none +.br +.Em mana used : +1 +.br +Used while combating monsters. +Has a 25% chance of working. +If it works, it hits the monster just enough to kill it. +If it fails, it doesn't hit the monster, and doubles the monster's +.Em quickness +and +.Em strength . +Paralyzed monsters wake up much quicker as a result of this spell. +.It Ic magic bolt +.Em magic level necessary : +5 +.br +.Em mana used : +variable +.br +Used while combating monsters. +Hits the monster based upon the amount +of +.Em mana +expended and +.Em magic level . +Guaranteed to hit at least 10 per +.Em mana . +.It Ic force field +.Em magic level necessary : +15 +.br +.Em mana used : +30 +.br +Used during monster combat. +Throws up a shield to protect from damage. +The shield is added to actual energy level, and is a fixed number, based +upon maximum energy. +Normally, damage occurs first to the shield and then to the players actual +.Em energy level . +.It Ic transform +.Em magic level necessary : +25 +.br +.Em mana used : +50 +.br +Used during monster combat. +Transforms the monster randomly into one of the 100 monsters from +the monster file. +.It Ic increase might +.Em magic level necessary : +35 +.br +.Em mana used : +75 +.br +Used during combat with monsters. +Increases strength up to a maximum. +.It Ic invisibility +.Em magic level necessary : +45 +.br +.Em mana used : +90 +.br +Used while fighting monsters. +Makes it harder for the monster to hit, by temporarily increasing the player's +.Em quickness . +This spell may be thrown several times, but a maximum level will be reached. +.It Ic transport +.Em magic level necessary : +60 +.br +.Em mana used : +125 +.br +Used during monster combat. +Transports the monster away from the player. +Success is based upon player's +.Em magic +and +.Em brains , +and the monster's +.Em experience . +If it fails, the player is transported instead. +60% of the time, the monster will drop any treasure it was carrying. +.It Ic paralyze +.Em magic level necessary : +75 +.br +.Em mana used : +150 +.br +Used during monster combat. +.Dq Freezes +the monster by putting its +.Em quickness +slightly negative. +The monster will slowly wake up. +Success is based upon player's +.Em magic +and the monster's +.Em experience . +If it fails, nothing happens. +.It Ic specify +.Em magic level necessary : +none +.br +.Em mana used : +1000 +.br +Used during monster combat only by +.Em valar +or +.Em council of the wise . +Allows the player to pick which monster to fight. +.El +.Ss Monsters +Monsters get bigger farther from the origin (0,0). +Rings of distance 125 from the origin determine the size. +A monster's +.Em experience , +.Em energy level , +and +.Em brains +are multiplied by the size. +.Em Strength +is increased 50% per size over one, and +.Em quickness +remains the same, regardless of size. +.Pp +Nastier monsters are found as one progresses farther out from the origin. +Monsters also may flock. +The percent chance of that happening is designated as +.Em flock% +in the monster listing. +Monsters outside the first ring +may carry treasure, as determined by their treasure type. +Flocking monsters, and bigger monsters, increase the chances of treasure. +.Pp +Certain monsters have special abilities, as follows: +.Bl -tag -width "Assorted Faeries" +.It Em Unicorn +can only be subdued if the player is in possession of a +.Em virgin . +.It Em Modnar +has random characteristics, including treasure type. +.It Em Mimic +will pick another name from the list of monsters in order to confuse. +.It Em Dark Lord +very nasty person. +Does not like to be hit (especially nicked), +and many spells do not work well (or at all) against him. +One can always +.Em evade +from the +.Em Dark Lord . +.It Em Leanan-Sidhe +also a very nasty person. +She will permanently sap +.Em strength +from someone. +.It Em Saruman +wanders around with +.Em Wormtongue , +who can steal a +.Em palantir . +Also, +.Em Saruman +may turn a player's gems into gold pieces, or scramble her/his stats. +.It Em Thaumaturgist +can transport a player. +.It Em Balrog +inflicts damage by taking away +.Em experience , +not +.Em energy . +.It Em Vortex +may take some +.Em mana . +.It Em Nazgul +may try to steal a +.Em ring +or neutralize part of one's +.Em brains . +.It Em Tiamat +may take half a player's +.Em gold +and +.Em gems +and escape. +.It Em Kobold +may get nasty and steal one gold piece and run away. +.It Em Shelob +may bite, inflicting the equivalent of one +.Em poison . +.It Em Assorted Faeries +These are killed if attacking someone carrying +.Em holy water . +These are +.Em Cluricaun , Fir Darrig , Fachan , +.Em Ghille Dhu , Bogle , Killmoulis , +and +.Em Bwca . +.It Em Lamprey +may bite, inflicting 1/2 of a +.Em poison . +.It Em Shrieker +will call one of its (much bigger) buddies if picked upon. +.It Em Bonnacon +will become bored with battle, fart, and run off. +.It Em Smeagol +will try to steal a +.Em ring +from a player, if given the chance. +.It Em Succubus +may inflict damage through a +.Ic force field . +This subtracts from +.Em energy level +instead of any shield the player may have thrown up. +This is a very easy way to die. +.It Em Cerberus +loves metal and will steal all the metal treasures from a player if able. +.It Em Ungoliant +can bite and poison. +This inflicts five +.Em poisons , +and also takes one from the player's +.Em quickness . +.It Em Jabberwock +may tire of battle, and leave after calling one of his friends +.Em ( Jubjub Bird +or +.Em Bandersnatch ) . +.It Em Morgoth +actually +.Em Modnar , +but reserved for +.Em council of the wise , valar , +and +.Em ex-valar . +Fights with +.Em Morgoth +end when either he or the player dies. +His characteristics are calculated based upon the player's. +The player is given the chance to ally with him. +No magic except +.Ic force field +works when battling +.Em Morgoth . +.It Em Troll +may regenerate its +.Em energy +and +.Em strength +while in battle. +.It Em Wraith +may make a player blind. +.El +.Ss Treasures +The various treasure types are as follows: +.Bl -tag -width "type twelve/thirteen" +.It Type zero +none +.It Type one +.Em power booster +\- adds mana. +.br +.Em druid +\- adds experience. +.br +.Em holy orb +\- subtracts 0.25 sin. +.It Type two +.Em amulet +\- protects from cursed treasure. +.br +.Em holy water +\- kills +.Em assorted faeries . +.br +.Em hermit +\- reduces sin by 25% and adds some mana. +.It Type three +.Em shield +\- adds to maximum +.Em energy level . +.br +.Em virgin +\- used to subdue a +.Em unicorn , +or to give much +.Em experience +(and some +.Em sin ) . +.br +.Em athelas +\- subtracts one +.Em poison . +.It Type four (scrolls) +.Em shield +\- throws a bigger than normal +.Ic force field . +.br +.Em invisible +\- temporarily puts the finder's +.Em quickness +to one million. +.br +.Em ten fold strength +\- multiplies finder's strength by ten. +.br +.Em pick monster +\- allows finder to pick next monster to battle. +.br +.Em general knowledge +\- adds to finder's +.Em brains +and +.Em magic level . +.Pp +All the scrolls except +.Em general knowledge +automatically call a monster. +These preserve any spells that were already in effect, but are only in +effect while in battle. +.It Type five +.Em dagger +\- adds to +.Em strength . +.br +.Em armour +\- same as a +.Em shield , +but bigger. +.br +.Em tablet +\- adds +.Em brains . +.It Type six +.Em priest +\- rests to maximum; adds +.Em mana , brains ; +and halves +.Em sin . +.br +.Em Robin Hood +\- increases +.Em shield +and adds permanently to +.Em strength . +.br +.Em axe +\- like +.Em dagger , +but bigger. +.It Type seven +.Em charm +\- protects from cursed treasure (used before +.Em amulet ) ; +used in conjunction with +.Em blessing +to battle +.Em Dark Lord . +.br +.Em Merlyn +\- adds +.Em brains , magic , +and +.Em mana . +.br +.Em war hammer +\- like an +.Em axe , +but bigger. +.It Type eight +.Em healing potion +\- sets +.Em poison +to -2, or subtracts two from +.Em poison , +whichever is better. +.br +.Em transporter +\- allows finder to move anywhere. +.br +.Em sword +\- like a +.Em war hammer , +but bigger. +.It Type nine +.Em golden crown +\- allows the player to become +.Em king +by going to (0,0). +.br +.Em blessing +\- cuts +.Em sin +to 1/3, adds +.Em mana , +rests to maximum, kills +.Em Dark Lord +with a +.Em charm , +and gives bearer first hit on all monsters. +.br +.Em quicksilver +\- adds to +.Em quickness . +.It Type ten +.Em elven boots +\- adds permanently to +.Em quickness . +.It Type eleven +.Em palantir +\- allows one to see all the other players; used by +.Em council of the wise +to seek the +.Em grail . +.It Type twelve/thirteen +.Em ring +\- allows one to hit much harder in battle, etc. +.El +.Pp +Any treasure type 10-13 monsters may instead carry a type nine treasure. +.Pp +A monster may also be carrying +.Em gold +or +.Em gems . +These are used at +.Em trading posts +to buy things. +A +.Em gem +is worth 1000 gold pieces. +Too much +.Em gold +will slow a player down. +One may carry 1000 plus 200 per +.Em level +of +.Em gold . +A +.Em gem +weighs one half a gold piece. +Monsters of treasure type 7 or higher may carry +.Em gems . +.Pp +The chance of a cursed treasure is based upon treasure type. +The more valuable treasures have a greater chance of being cursed. +A cursed treasure knocks +.Em energy level +very low and adds 0.25 +.Em poison . +.Ss Rings +.Em Rings +are only carried by +.Em nazguls +and +.Em Dark Lords . +They come in four different flavors. +All +.Em rings +rest the player to maximum, +and cause them to hit much harder +in battle with monsters (assuming the +.Em ring +is being used for battle.) +.Pp +Two types of +.Em rings +are cursed and come either from +.Em nazguls +or +.Em Dark Lords . +After a few times of using these types, the player falls +under the control of the +.Em ring , +and strange, random things will occur. +Eventually, the player dies, +and the player's name is given to a monster on the file. +Dying before the +.Em ring +is used up also renames the monster. +.Pp +The two remaining types of +.Em rings +are much more benign. +The one from a +.Em nazgul +is good for a limited number of battle rounds, and will save +the player from death if it was being used. +The one from +.Em Dark Lord +is the same, except that it never is used up. +.Em rings +disappear after saving someone from death. +In general, cursed +.Em rings +occur much more often than normal ones. +It is usually not a good idea to pick one up. +The only way to get rid of a +.Em ring +is to have a monster steal it. +.Ss King +A player may become +.Em king +by finding a +.Em crown +and going to (0,0). +Players must have a +.Em level +in the range of 10 to 1000 to be able to find a +.Em crown . +When a player with one or more +.Em crowns +reaches +.Em level +1000, the +.Em crowns +are converted to +.Em gold . +.Pp +Once a player is king, they may do certain things while in +the Lord's Chamber (0,0). +These are exercised with the +.Ic decree +('0') option. +.Bl -tag -width "collect taxes" +.It Ic transport +This is done to another player. +It randomly moves the affected player about. +A +.Em charm +protects from transports. +.It Ic curse +This is done to another player. +It is analogous to cursed treasure, but worse. +It inflicts two +.Em poison , +knocks +.Em energy level +very low, and degrades the maximum energy. +It also removes a +.Em cloak . +A +.Em blessing +protects from king's curses. +.It Ic energy void +The king may put a number of these scattered about +the kingdom. +If a player hits one, they lose +.Em mana , energy , +and +.Em gold . +The energy void disappears after being hit. +.It Ic bestow +This is also done to another player. +The king may wish to reward one or more loyal subjects by sharing +.Em gold . +Or it is a convenient way to dispose of some unwanted deadweight. +.It Ic collect taxes +Everyone pays 7% tax on all +.Em gold +and +.Em gems +acquired, regardless of the existence of a +.Em king . +The king collects the accrued taxes with this option. +.El +.Pp +The +.Em king +may also +.Ic teleport +anywhere for free by using the origin as a starting place. +.Ss Council of the Wise, Valar +A player automatically becomes a member of the +.Em council of the wise +upon reaching level 3000. +Members of the council cannot have +.Em rings . +Members of the council have a few extra options which they can exercise. +These are exercised with the +.Ic intervene +.Pq Sq 8 +option. +All +.Ic intervene +options cost 1000 mana. +One +.Ic intervene +option is to +.Ic heal +another player. +This is just a quick way for that player to be rested +to maximum and lose a little +.Em poison . +The main purpose in life for members of the council is to seek the +.Em Holy Grail . +This is done with a +.Em palantir +under the +.Ic seek grail +option. +The distance cited by the seek is accurate within 10%, in order +not to make it too easy to find the grail. +A player must have infinitesimally small +.Em sin , +or else it's all over upon finding the grail. +In order to help members of the council on their quest, they +may +.Ic teleport +with greater ease. +.Pp +Upon finding the grail, players advance to position of +.Em valar . +They may then exercise more and niftier options under +.Ic intervention . +These include all of the council members' options plus the +ability to move other players about, bless them, and throw monsters at +them. +A +.Em valar Ns 's +blessing has the same effect as the treasure +.Em blessing , +except that the affected player does not get the +.Em blessing +flag set. +All +.Ic intervention +options which affect other players age the player who uses them. +.Em Valars +are essentially immortal, but are actually given five lives. +If these are used up, the player is left to die, and becomes an +.Em ex-valar . +A +.Em valar +cannot +.Ic move , teleport , +or call monsters. +(An exception to this is if the +.Em valar +finds a +.Em transporter . ) +This is to allow the +.Em valar +to dispose of excess +.Em gold . +Any monsters which a +.Em valar +encounters are based upon the valar's size. +Only one valar may exist at a time. +The current valar is replaced when another player finds the grail. +The valar is then bumped back to the council of the wise. +.Ss Wizard +The +.Em wizard +is usually the owner of the game and the one who maintains +the associated files. +The +.Em wizard +is granted special powers within the game, if it is invoked +with the +.Fl S +option. +Otherwise, the +.Em wizard +plays no different from other players. +The +.Em wizard +abilities are outlined below. +.Bl -tag -width "super character type" +.It Ic change players +When examining a player, (game invoked with +.Fl x , +or +.Sq X +is used from within game), the +.Em wizard +may also change the player. +.It Ic intervention +The +.Em wizard +may do all the +.Ic intervention +options. +One extra option, +.Ic vaporize , +is added to kill any offensive players. +.It Ic super character type +An extra character type is added. +This character starts with the +maximum possible in all statistics, selected from the other character types. +A +.Em super +character's statistics also progress at the maximum possible rate, selected +from the other character types. +.El +.Ss Special Places +Certain regions of the playing grid have different names. +In general, this is only to give players some idea of +their present location. +Some special places do exist. +.Bl -tag -width "Trading Posts" +.It Em Trading Posts +These are located at |x| == |y| == n*n*100 for n = 1, 2, ..., 1000. +Trading posts farther out have more things for sale. +Be careful about cheating the merchants there, as they have short tempers. +Merchants are dishonest about 5% of the time. +.It Em Lord's Chamber +This is located at (0,0). +Only players with +.Em crowns +may enter. +.It Em Point of \&No Return +This is located beyond 1.2e+6 in any direction. +The only way to return from here is a +.Em transporter +or to have a +.Em valar +relocate the player. +.It Em Dead Marshes +This is a band located fairly distant from the origin. +The first fourteen monsters (water monsters) can normally only be found here. +.It Em Valhala +This place is where the +.Em valar +resides. +It is associated with no particular coordinate on the playing grid. +.El +.Ss Miscellaneous +Once a player reaches +.Em level +5, the game will start to time out waiting for input. +This is to try to keep the game a bit faster-paced. +.Pp +A +.Em guru +will never be disgusted with your +.Em sins +if they are less than one. +.Pp +A +.Em medic +wants half of a player's +.Em gold +to be happy. +Offering more than one has, or a negative amount will anger the +.Em medic , +who will make the player worse (add one +.Em poison ) . +.Pp +The +.Em Holy Grail +does little for those who are not ready to behold it. +Whenever anyone finds it, it moves. +It is always located within 1e+6 in any compass direction of the origin. +.Pp +There is a maximum amount of +.Em mana +and +.Em charms +a player may possess, based upon +.Em level . +.Em Quicksilver +is always limited to a maximum of 99. +.Pp +.Em Books +bought at a +.Em trading post +increase +.Em brains , +based upon the number bought. +It is unwise, however to buy more than 1/10 of one's +.Em level +in books at a time. +.Pp +Players over level 10000 are automatically retired. +.Pp +A +.Em blindness +goes away in random time. +.Pp +Players with +.Em crowns +are identified with a '*' before their character type. +.Ss Inter-terminal Battle +When two player's coordinates correspond, they may engage in battle. +In general, the player with the highest +.Em quickness +gets the first hit. +If the two players are severely mismatched, the stronger player +is drastically handicapped for the battle. +In order to protect from being stuck in an infinite loop, +the player waiting for response may time out. +Options for battle are: +.Bl -tag -width "power blast" +.It Ic fight +Inflicts damage upon other person. +.It Ic run away +Escape from battle. +Has a 75% chance of working. +.It Ic power blast +Battle spell. +.It Ic luckout +One-time chance to try to win against the foe. +Has a 10% chance of working. +.El +.Pp +Sometimes waits for other players may be excessive, because +they may be battling a monster. +Upon slaying a player in battle the winner gets the other's +.Em experience +and treasures. +.Em Rings +do not work for inter-terminal battle. +.Sh AUTHORS +.An Edward Estes , +AT&T Information Systems, Skokie, IL +.Sh BUGS +All screen formats assume at least 24 lines by at least 80 columns. +No provisions are made for when any of the data items get too big +for the allotted space on the screen. diff --git a/static/openbsd/man6/pig.6 b/static/openbsd/man6/pig.6 new file mode 100644 index 00000000..65e4ba8c --- /dev/null +++ b/static/openbsd/man6/pig.6 @@ -0,0 +1,50 @@ +.\" $OpenBSD: pig.6,v 1.8 2019/05/12 06:07:36 jmc Exp $ +.\" +.\" Copyright (c) 1992 The Regents of the University of California. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)pig.6 8.1 (Berkeley) 6/10/93 +.\" +.Dd $Mdocdate: May 12 2019 $ +.Dt PIG 6 +.Os +.Sh NAME +.Nm pig +.Nd eformatray inputway asway Igpay Atinlay +.Sh SYNOPSIS +.Nm pig +.Sh DESCRIPTION +Ethay +.Nm igpay +utilityway eadsray ethay andardstay inputway andway iteswray itway +outway otay andardstay outputway inway Igpay Atinlay. +.Pp +Usefulway orfay eneratinggay onthlymay eportsray. +.Sh EXAMPLES +Anslatetray isthay anmay agepay otay Igpay Atinlay: +.Pp +.Dl $ man pig | pig diff --git a/static/openbsd/man6/pom.6 b/static/openbsd/man6/pom.6 new file mode 100644 index 00000000..06a1c675 --- /dev/null +++ b/static/openbsd/man6/pom.6 @@ -0,0 +1,80 @@ +.\" $OpenBSD: pom.6,v 1.9 2009/12/31 13:02:08 sobrado Exp $ +.\" +.\" Copyright (c) 1989, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)pom.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: December 31 2009 $ +.Dt POM 6 +.Os +.Sh NAME +.Nm pom +.Nd display the phase of the moon +.Sh SYNOPSIS +.Nm pom +.Sm off +.Oo +.Oo Oo Oo Oo +.Ar cc Oc +.Ar yy Oc +.Ar mm Oc +.Ar dd Oc +.Ar HH +.Oc +.Sm on +.Sh DESCRIPTION +The +.Nm +utility displays the current phase of the moon. +Useful for selecting software completion target dates and predicting +managerial behavior. +.Bl -tag -width "[[[[[cc]yy]mm]dd]HH]XX" +.It Xo +.Sm off +.Oo Oo Oo Oo +.Ar cc Oc +.Ar yy Oc +.Ar mm Oc +.Ar dd Oc +.Ar HH +.Sm on +.Xc +Display the phase of the moon for a given time. +The format is similar to the canonical representation used by +.Xr date 1 . +.El +.Sh SEE ALSO +.Xr date 1 +.Sh BUGS +Times must be within range of the +.Ux +Epoch. +.Sh ACKNOWLEDGEMENTS +This program is based on routines from +.%B Practical Astronomy with Your Calculator, Third Edition +by Peter Duffett-Smith. diff --git a/static/openbsd/man6/ppt.6 b/static/openbsd/man6/ppt.6 new file mode 100644 index 00000000..b3c4fbf0 --- /dev/null +++ b/static/openbsd/man6/ppt.6 @@ -0,0 +1,84 @@ +.\" $OpenBSD: ppt.6,v 1.3 2025/08/02 00:41:40 jsg Exp $ +.\" +.\" Copyright (c) 1988, 1991, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)bcd.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: August 2 2025 $ +.Dt PPT 6 +.Os +.Sh NAME +.Nm ppt +.Nd reformat input as paper tape +.Sh SYNOPSIS +.Nm +.Op Ar string ... +.Nm +.Fl d +.Op Fl b +.Sh DESCRIPTION +The +.Nm ppt +command reads the given input and reformats it in the form of paper tape. +Acceptable input are command line arguments or the standard input. +.Pp +The options are as follows: +.Bl -tag -width 7n +.It Fl d Op Fl b +Decode paper tape on the standard input back to ASCII. +Unprintable characters are visually encoded with +.Xr vis 3 +unless the +.Fl b +option (binary) is also specified. +A lowercase +.Sq x +is printed for undecipherable input lines. +.El +.Sh SEE ALSO +.Xr bcd 6 +.Sh STANDARDS +.Rs +.%I ECMA-10 +.%R "ECMA Standard for Data Interchange on Punched Tape" +.Re +.Sh HISTORY +A +.Nm +command first appeared in +.At v7 . +The options +.Fl d +and +.Fl b +first appeared in +.Ox 3.3 . +.Sh AUTHORS +.An Keith Bostic +.An Paul Janzen Aq Mt pjanzen@foatdi.net +.An Michael Shalayeff Aq Mt mickey@lucifier.net diff --git a/static/openbsd/man6/quiz.6 b/static/openbsd/man6/quiz.6 new file mode 100644 index 00000000..e4c580c9 --- /dev/null +++ b/static/openbsd/man6/quiz.6 @@ -0,0 +1,122 @@ +.\" $OpenBSD: quiz.6,v 1.9 2014/11/15 14:41:02 bentley Exp $ +.\" +.\" Copyright (c) 1991, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" Jim R. Oldroyd at The Instruction Set. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)quiz.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: November 15 2014 $ +.Dt QUIZ 6 +.Os +.Sh NAME +.Nm quiz +.Nd random knowledge tests +.Sh SYNOPSIS +.Nm quiz +.Op Fl t +.Op Fl i Ar file +.Ar category1 category2 +.Sh DESCRIPTION +The +.Nm +utility tests your knowledge of random facts. +It has a database of subjects from which you can choose. +With no arguments, +.Nm +displays the list of available subjects. +.Pp +The options are as follows: +.Bl -tag -width indent +.It Fl i Ar file +Specify an alternative index file. +.It Fl t +Use tutorial mode, in which questions are repeated later if you didn't get +them right the first time, and new questions are presented less frequently +to help you learn the older ones. +.El +.Pp +Subjects are divided into categories. +You can pick any two categories from the same subject. +.Nm +will ask questions from the first category and it expects answers from +the second category. +For example, the command +.Dq quiz victim killer +asks questions which are +the names of victims, and expects you to answer with the cause of their +untimely demise, whereas the command +.Dq quiz killer victim +works the other way around. +.Pp +If you get the answer wrong, +.Nm +lets you try again. +To see the right answer, enter a blank line. +.Sh INDEX AND DATA FILE SYNTAX +The index and data files have a similar syntax. +Lines in them consist of several categories separated by colons. +The categories are regular expressions formed using the following +meta-characters: +.Pp +.Bl -tag -width "pat|pat" -compact -offset indent +.It pat|pat +alternative patterns +.It {pat} +optional pattern +.It [pat] +delimiters, as in pat[pat|pat]pat +.El +.Pp +In an index file, each line represents a subject. +The first category in each subject is the pathname of the data file for +the subject. +The remaining categories are regular expressions for the titles of each +category in the subject. +.Pp +In data files, each line represents a question/answer set. +Each category is the information for the question/answer for that category. +.Pp +The backslash character +.Pq Sq \e +is used to quote syntactically significant +characters, or at the end of a line to signify that a continuation line +follows. +.Pp +If either a question or its answer is empty, +.Nm +will refrain from asking it. +.Sh FILES +.Bl -tag -width /usr/share/games/quiz.db -compact +.It Pa /usr/share/games/quiz.db +The default index and data files. +.El +.Sh BUGS +.Nm +is pretty cynical about certain subjects. diff --git a/static/openbsd/man6/rain.6 b/static/openbsd/man6/rain.6 new file mode 100644 index 00000000..67b00c2f --- /dev/null +++ b/static/openbsd/man6/rain.6 @@ -0,0 +1,60 @@ +.\" $OpenBSD: rain.6,v 1.18 2015/01/15 19:06:31 schwarze Exp $ +.\" +.\" Copyright (c) 1989, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)rain.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: January 15 2015 $ +.Dt RAIN 6 +.Os +.Sh NAME +.Nm rain +.Nd animated raindrops display +.Sh SYNOPSIS +.Nm rain +.Op Fl d Ar delay +.Sh DESCRIPTION +.Nm +is modeled after the VAX/VMS program of the same name. +.Pp +To obtain the proper effect, the +.Fl d +option may be used to specify a delay in milliseconds between each update. +Reasonable values are around 20\(en200. +The default is based on the terminal speed, computed via the following formula: +.Pp +.Dl delay = speed / 9600 \- 1 +.Pp +As with any +.Xr curses 3 +program, the +.Ev TERM +environment variable must be set (and exported) to the type of the +terminal being used. +.Sh AUTHORS +.An Eric P. Scott diff --git a/static/openbsd/man6/random.6 b/static/openbsd/man6/random.6 new file mode 100644 index 00000000..74df6102 --- /dev/null +++ b/static/openbsd/man6/random.6 @@ -0,0 +1,68 @@ +.\" $OpenBSD: random.6,v 1.8 2022/08/23 06:35:53 tb Exp $ +.\" +.\" Copyright (c) 1994 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)random.6 8.2 (Berkeley) 3/31/94 +.\" +.Dd $Mdocdate: August 23 2022 $ +.Dt RANDOM 6 +.Os +.Sh NAME +.Nm random +.Nd random lines from a file or random numbers +.Sh SYNOPSIS +.Nm random +.Op Fl er +.Op Ar denominator +.Sh DESCRIPTION +.Nm +reads lines from the standard input and copies them to the standard +output with a probability of 1/denominator. +The +.Ar denominator +must be at least 1, +its default value is 2. +.Pp +The options are as follows: +.Bl -tag -width Ds +.It Fl e +If the +.Fl e +option is specified, +.Nm +does not read or write anything, and simply exits with a random +exit value of 0 to the minimum of 255 and +.Ar denominator +\&- 1, inclusive. +.It Fl r +The +.Fl r +option guarantees that the output is unbuffered. +.El +.Sh SEE ALSO +.Xr fortune 6 diff --git a/static/openbsd/man6/robots.6 b/static/openbsd/man6/robots.6 new file mode 100644 index 00000000..63d300bc --- /dev/null +++ b/static/openbsd/man6/robots.6 @@ -0,0 +1,150 @@ +.\" $OpenBSD: robots.6,v 1.18 2017/05/28 22:27:10 tedu Exp $ +.\" +.\" Copyright (c) 1991, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)robots.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: May 28 2017 $ +.Dt ROBOTS 6 +.Os +.Sh NAME +.Nm robots +.Nd fight off villainous robots +.Sh SYNOPSIS +.Nm robots +.Op Fl ajrst +.Op Ar scorefile +.Sh DESCRIPTION +.Nm +pits you against evil robots, who are trying to kill you +.Pq which is why they are evil . +Fortunately for you, even though they are evil, they are not very bright +and have a habit of bumping into each other, thus destroying themselves. +In order to survive, you must get them to kill each other off, since you +have no offensive weaponry. +You are endowed with one piece of defensive weaponry: a teleportation device. +When two robots run into each other or a junk pile, they die. +If a robot runs into you, you die. +When a robot dies, you get 10 points, and when all the robots die, +you start on the next field. +This keeps up until they finally get you. +.Pp +Robots are represented on the screen by a +.Sq + , +the junk heaps from their collisions by a +.Sq * , +and you +(the good guy) +by a +.Sq @ . +.Pp +The commands are: +.Bl -tag -width indent -compact +.It Ic h +move one square left +.It Ic l +move one square right +.It Ic k +move one square up +.It Ic j +move one square down +.It Ic y +move one square up and left +.It Ic u +move one square up and right +.It Ic b +move one square down and left +.It Ic n +move one square down and right +.It Ic \&. +(also space) do nothing for one turn +.It Ic HJKLBNYU +run as far as possible in the given direction +.It Ic > +do nothing for as long as possible +.It Ic t +teleport to a random location +.It Ic w +wait until you die or they all do +.It Ic q +quit +.It Ic ^L +redraw the screen +.El +.Pp +All commands can be preceded by a count unless the game is in real-time mode. +.Pp +If you use the +.Sq Ic w +command and survive to the next level, you will get a bonus of 10% +for each robot which died after you decided to wait. +If you die, however, you get nothing. +For all other commands, the program will save you from typos +by stopping short of being eaten. +However, with +.Sq Ic w +you take the risk of dying by miscalculation. +.Pp +Only five scores are allowed per user on the score file. +If you make it into the score file, you will be shown the list at the end +of the game. +If an alternative score file is specified, that will be used instead of the +standard file for scores. +.Pp +The options are as follows: +.Bl -tag -width indent +.It Fl a +Advance into the higher levels directly, skipping the lower, easier levels. +.It Fl j +Jump, +.Em i.e. , +when you run, don't show any intermediate positions; only show things at +the end. +This is useful on slow terminals. +.It Fl r +Real-time mode. +After your first move, robots will advance at least every three seconds. +.It Fl s +Don't play, just show the score file. +.It Fl t +Teleport automatically when you have no other option. +This is a little disconcerting until you get used to it, and then it is +very nice. +.El +.Sh ENVIRONMENT +.Bl -tag -width $HOME/.robots.scores +.It Ev LOGNAME +Name displayed in high score file. +.El +.Sh FILES +.Bl -tag -width $HOME/.robots.scores +.It Pa $HOME/.robots.scores +The score file. +.El +.Sh AUTHORS +.An Ken Arnold diff --git a/static/openbsd/man6/sail.6 b/static/openbsd/man6/sail.6 new file mode 100644 index 00000000..38a7740a --- /dev/null +++ b/static/openbsd/man6/sail.6 @@ -0,0 +1,1083 @@ +.\" $OpenBSD: sail.6,v 1.24 2022/02/18 23:17:14 jsg Exp $ +.\" $NetBSD: sail.6,v 1.4 1995/04/22 10:37:24 cgd Exp $ +.\" +.\" Copyright (c) 1988, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)sail.6 8.2 (Berkeley) 12/30/93 +.\" +.Dd $Mdocdate: February 18 2022 $ +.Dt SAIL 6 +.Os +.Sh NAME +.Nm sail +.Nd multi-user wooden ships and iron men +.Sh SYNOPSIS +.Nm sail +.Op Fl bx +.Op Fl s Op Fl l +.Op Ar number +.Sh DESCRIPTION +.Bf -symbolic +.Nm +is currently unusable because it relies on +.Xr setegid 2 +to allow multiple users read and write access to the same files. +.Ef +.Pp +.Nm +is a computer version of Avalon Hill's game of fighting sail +originally developed by S. Craig Taylor. +.Pp +Players of +.Nm +take command of an old-fashioned Man of War and fight other +players or the computer. +They may re-enact one of the many historical sea battles recorded +in the game, or they can choose a fictional battle. +.Pp +As sea captains in the +.Nm +Navy, players have complete control over the workings of their ship. +They must order every maneuver, change the set of their sails, and judge the +right moments to let loose the terrible destruction of their broadsides. +In addition to fighting their enemies, +they must harness the powers of the wind and sea. +The outcome of many battles during the age of sail was decided by the +ability of one captain to hold the +.Sq weather gage . +.Pp +The flags are: +.Bl -tag -width flag +.It Fl b +No bells. +.It Fl l +Show the login name. +Only effective with +.Fl s . +.It Fl s +Print the names and ships of the top ten sailors. +.It Fl x +Play the first available ship instead of prompting for a choice. +.El +.Sh IMPLEMENTATION +.Nm +is really two programs in one. +All players start a process which runs their ship. +In addition, a +.Em driver +process is forked +.Pq by the first player +to run the computer ships and take care of global bookkeeping. +.Pp +Because the driver must calculate moves for each ship it controls, the +more ships the computer is playing, the slower the game will appear. +.Pp +Players who join a game in progress will synchronize +with the other players +.Pq a rather slow process for everyone , +and then they may play along with the rest. +.Pp +To implement a multi-user game in +.Ux +Version 7, +which was the operating system +.Nm +was first written under, the communicating processes must use a common +temporary file as a place to read and write messages. +In addition, a locking mechanism must be provided to ensure exclusive +access to the shared file. +For example, +.Nm +uses a temporary file named +.Pa /tmp/#sailsink.21 +for scenario 21, and corresponding file names for the other scenarios. +To provide exclusive access to the temporary file, +.Nm +uses a technique stolen from an old game called +.Ic pubcaves +by Jeff Cohen. +Processes do a busy wait in the loop +.Bd -literal -offset indent +for (n = 0; link(sync_file, sync_lock) == -1 && n < 30; n++) + sleep(2); +.Ed +.Pp +until they are able to create a link to a file named +.Pa /tmp/#saillock.?? . +The +.Dq ?? +correspond to the scenario number of the game. +Since +.Ux +guarantees that a link will point to only one file, the process +that succeeds in linking will have exclusive access to the temporary file. +.\" .Pp +.\" Whether or not this really works is open to speculation. When ucbmiro +.\" was rebooted after a crash, the file system check program found 3 links +.\" between the +.\" .Nm +.\" temporary file and its link file. +.Ss "CONSEQUENCES OF SEPARATE PLAYER AND DRIVER PROCESSES" +When players do something of global interest, such as moving or firing, +the driver must coordinate the action with the other ships in the game. +For example, players who want to move in a certain direction, write a +message into the temporary file requesting that the driver move their ship. +Each +.Dq turn , +the driver reads all the messages sent from the players and +decides what happened. +It then writes back into the temporary file new values of variables, etc. +.Pp +The most noticeable effect this communication has on the game is the +delay in moving. +Suppose a player types a move and hits return. +What happens then? +The player process saves up messages to +be written to the temporary file in a buffer. +Every 7 seconds or so, the player process gets exclusive access +to the temporary file and writes out its buffer to the file. +The driver, running asynchronously, must +read in the movement command, process it, and write out the results. +This takes two exclusive accesses to the temporary file. +Finally, when the player process gets around to doing another 7-second update, +the results of the move are displayed on the screen. +Hence, every movement requires four +exclusive accesses to the temporary file (anywhere from 7 to 21 seconds +depending upon asynchrony) before players see the results of their moves. +.Pp +In practice, the delays are not as annoying as they would appear. +There is room for +.Dq pipelining +in the movement. +After the player writes out a first movement message, +a second movement command can then be issued. +The first message will be in the temporary file waiting for the driver, and +the second will be in the file buffer waiting to be written to the file. +Thus, by always typing moves a turn ahead of the time, the player can +sail around quite quickly. +.Pp +If the player types several movement commands between two 7-second updates, +only the last movement command typed will be seen by the driver. +Movement commands within the same update "overwrite" each other, in a sense. +.Ss "HISTORICAL INFO" +Old Square Riggers were very maneuverable ships capable of intricate +sailing. +Their only disadvantage was an inability to sail very close to the wind. +The design of a wooden ship allowed only for the +guns to bear to the left and right sides. +A few guns of small aspect +.Pq usually 6 or 9 pounders +could point forward, but their +effect was small compared to a 68-gun broadside of 24 or 32 pounders. +The guns bear approximately like so: +.Bd -literal -offset indent + \e + b---------------- + ---0 + \e + \e + \e up to a range of ten (for round shot) + \e + \e + \e +.Ed +.Pp +An interesting phenomenon occurred when a broadside was fired +down the length of an enemy ship. +The shot tended to bounce along the deck and did several times more damage. +This phenomenon was called a rake. +Because the bows of a ship are very strong and present a smaller +target than the stern, a stern rake +.Pq firing from the stern to the bow +causes more damage than a bow rake. +.Bd -literal -offset indent + b + 00 ---- Stern rake! + a +.Ed +.Pp +Most ships were equipped with carronades, which were very large, +close-range cannons. +American ships from the revolution until the War of 1812 +were almost entirely armed with carronades. +.Pp +The period of history covered in +.Nm +is approximately from the 1770s until the end of Napoleonic France in 1815. +There are many excellent books about the age of sail +.Pq see Sx REFERENCES . +.Pp +Fighting ships came in several sizes classed by armament. +The mainstays of any fleet were its +.Dq Ships of the Line , +or +.Dq Line of Battle Ships . +They were so named because these ships fought together in great lines. +They were close enough for mutual support, yet every ship could fire +both its broadsides. +We get the modern words +.Dq ocean liner , +or +.Dq liner , +and +.Dq battleship +from +.Dq ship of the line . +The most common size was the 74-gun two-decked ship of the line. +The two gun decks usually mounted 18 and 24 pounder guns. +.Pp +The pride of the fleet were the first rates. +These were huge three decked ships of the line mounting 80 to 136 guns. +The guns in the three tiers were usually 18, 24, and 32 pounders in +that order from top to bottom. +.Pp +Various other ships came next. +They were almost all +.Dq razees , +or ships of the line with one deck sawed off. +They mounted 40-64 guns and were +a poor cross between a frigate and a line of battle ship. +They neither had the speed of the former nor the firepower of the latter. +.Pp +Next came the +.Dq eyes of the fleet . +Frigates came in many sizes mounting anywhere from 32 to 44 guns. +They were very handy vessels. +They could outsail anything bigger and outshoot anything smaller. +Frigates didn't fight in lines of battle as the much bigger 74's did. +Instead, they harassed the enemy's rear or captured crippled ships. +They were much more useful in missions away from the fleet, +such as cutting out expeditions or boat actions. +They could hit hard and get away fast. +.Pp +Lastly, there were the corvettes, sloops, and brigs. +These were smaller ships mounting typically fewer than 20 guns. +A corvette was only slightly smaller than a frigate, +so one might have up to 30 guns. +Sloops were used for carrying dispatches or passengers. +Brigs were something you built for land-locked lakes. +.Ss "SAIL PARTICULARS" +Ships in +.Nm +are represented by two characters. +One character represents the bow of the ship, +and the other represents the stern. +Ships have nationalities and numbers. +The first ship of a nationality is number 0, the second +number 1, etc. +Therefore, the first British ship in a game would be printed as +.Sq b0 . +The second Brit would be +.Sq b1 , +and the fifth Don would be +.Sq s4 . +.Pp +Ships can set normal sails, called Battle Sails, or bend on extra canvas +called Full Sails. +A ship under full sail is a beautiful sight indeed, +and it can move much faster than a ship under Battle Sails. +The only trouble is, with full sails set, there is so much tension on sail and +rigging that a well aimed round shot can burst a sail into ribbons where +it would only cause a little hole in a loose sail. +For this reason, rigging damage is doubled on a ship with full sails set. +Don't let that discourage you from using full sails: +I like to keep them up right into the heat of battle. +A ship with full sails set has a capital letter for its nationality. +E.g., a Frog, +.Sq f0 , +with full sails set would be printed as +.Sq F0 . +.Pp +When a ship is battered into a listing hulk, the last man aboard +.Dq strikes the colors . +This ceremony is the ship's formal surrender. +The nationality character of a surrendered ship is printed as +.Sq \&! . +E.g., the Frog of our last example would soon be +.Sq !0 . +.Pp +A ship has a random chance of catching fire or sinking when it reaches the +stage of listing hulk. +A sinking ship has a tilde +.Sq ~ +printed for its nationality, and a ship on fire and about to explode has a +.Sq # +printed. +.Pp +Captured ships become the nationality of the prize crew. +Therefore, if +an American ship captures a British ship, the British ship will have an +.Sq a +printed for its nationality. +In addition, the ship number is changed +to +.Sq & , +.Sq ' , +.Sq \&( , +.Sq \&) , +.Sq * , +or +.Sq + +depending upon the original number, +be it 0, 1, 2, 3, 4, or 5. +E.g., the +.Sq b0 +captured by an American becomes the +.Sq a& . +The +.Sq s4 +captured by a Frog becomes the +.Sq f* . +.Pp +The ultimate example is, of course, an exploding Brit captured by an +American: +.Sq #& . +.Ss MOVEMENT +Movement is the most confusing part of +.Nm +to many. +Ships can head in 8 directions: +.Bd -literal + 0 0 0 + b b b0 b b b 0b b + 0 0 0 +.Ed +.Pp +The stern of a ship moves when it turns. +The bow remains stationary. +Ships can always turn, regardless of the wind (unless they are becalmed). +All ships drift when they lose headway. +If a ship doesn't move forward at all for two turns, it will begin to drift. +If a ship has begun to drift, then it must move forward before it turns, if +it plans to do more than make a right or left turn, which is always +possible. +.Pp +Movement commands to +.Nm +are a string of forward moves and turns. +An example is +.Sq l3 . +It will turn a ship left and then move it ahead 3 spaces. +In the drawing above, the +.Sq b0 +made 7 successive left turns. +When +.Nm +prompts you for a move, it prints three characters of import. +E.g., +.Pp +.Dl move (7, 4): +.Pp +The first number is the maximum number of moves you can make, +including turns. +The second number is the maximum number of turns you can make. +Between the numbers is sometimes printed a quote +.Sq ' . +If the quote is present, it means that your ship has been drifting, and +you must move ahead to regain headway before you turn (see note above). +Some of the possible moves for the example above are as follows: +.Bd -literal -offset indent +move (7, 4): 7 +move (7, 4): 1 +move (7, 4): d /* drift, or do nothing */ +move (7, 4): 6r +move (7, 4): 5r1 +move (7, 4): 4r1r +move (7, 4): l1r1r2 +move (7, 4): 1r1r1r1 +.Ed +.Pp +Because square riggers performed so poorly sailing into the wind, if at +any point in a movement command you turn into the wind, the movement stops +there. +E.g., +.Bd -literal -offset indent +move (7, 4): l1l4 +Movement Error; +Helm: l1l +.Ed +.Pp +Moreover, whenever you make a turn, your movement allowance drops to +the lesser of what's left or what you would have at the new attitude. +In short, +if you turn closer to the wind, you most likely won't be able to sail the +full allowance printed in the "move" prompt. +.Pp +Old sailing captains had to keep an eye constantly on the wind. +Captains in +.Nm +are no different. +A ship's ability to move depends on its attitude to the wind. +The best angle possible is to have the wind off your quarter, that is, +just off the stern. +The direction rose on the side of the screen gives the +possible movements for your ship at all positions to the wind. +Battle sail speeds are given first, +and full sail speeds are given in parentheses. +.Bd -literal + 0 1(2) + \e|/ + -^-3(6) + /|\e + | 4(7) + 3(6) +.Ed +.Pp +Pretend the bow of your ship +.Pq the Sq ^ +is pointing upward and the wind is +blowing from the bottom to the top of the page. +The numbers at the bottom +.Sq 3(6) +will be your speed under battle or full sails in such a situation. +If the wind is off your quarter, then you can move +.Sq 4(7) . +If the wind is off your beam, +.Sq 3(6) . +If the wind is off your bow, then you can only move +.Sq 1(2) . +If you are facing into the wind, you can't move at all; +ships facing into the wind were said to be +.Dq in irons . +.Ss "WINDSPEED AND DIRECTION" +The windspeed and direction is displayed as a little weather vane on the +side of the screen. +The number in the middle of the vane indicates the wind +speed, and the + to - indicates the wind direction. +The wind blows from +the + sign (high pressure) to the - sign (low pressure). +E.g., +.Bd -literal -offset indent-two +| +3 ++ +.Ed +.Pp +The wind speeds are 0 = becalmed, 1 = light breeze, 2 = moderate breeze, +3 = fresh breeze, 4 = strong breeze, 5 = gale, 6 = full gale, 7 = hurricane. +If a hurricane shows up, all ships are destroyed. +.Ss "GRAPPLING AND FOULING" +If two ships collide, they run the risk of becoming tangled together. +This is called +.Dq fouling . +Fouled ships are stuck together, and neither can move. +They can unfoul each other if they want to. +Boarding parties can only be +sent across to ships when the antagonists are either fouled or grappled. +.Pp +Ships can grapple each other by throwing grapnels into the rigging of +the other. +.Pp +The number of fouls and grapples you have are displayed on the upper +right of the screen. +.Ss BOARDING +Boarding was a very costly venture in terms of human life. +Boarding parties may be formed in +.Nm +to either board an enemy ship or to defend your own ship against attack. +Men organized as Defensive Boarding Parties fight twice as hard to save +their ship as men left unorganized. +.Pp +The boarding strength of a crew depends upon its quality and upon the +number of men sent. +.Ss "CREW QUALITY" +The British seaman was world renowned for his sailing abilities. +American sailors, however, were actually the best seamen in the world. +Because the American Navy offered twice the wages of the Royal Navy, +British seamen who liked the sea defected to America by the thousands. +.Pp +In +.Nm , +crew quality is quantized into 5 energy levels. +.Em Elite +crews can outshoot and outfight all other sailors. +.Em Crack +crews are next. +.Em Mundane +crews are average, and +.Em Green +and +.Em Mutinous +crews are below average. +A good rule of thumb is that +.Em Crack +or +.Em Elite +crews get one extra hit per broadside compared to +.Em Mundane +crews. +Don't expect too much from +.Em Green +crews. +.Ss BROADSIDES +Your two broadsides may be loaded with four kinds of shot: +grape, chain, round, and double. +You have guns and carronades in both the port and starboard batteries. +Carronades only have a range of two, so you have to get in +close to be able to fire them. +You have the choice of firing at the hull +or rigging of another ship. +If the range of the ship is greater than 6, +then you may only shoot at the rigging. +.Pp +The types of shot and their advantages are: +.Bl -tag -width DOUBLEx +.It ROUND +Range of 10. +Good for hull or rigging hits. +.It DOUBLE +Range of 1. +Extra good for hull or rigging hits. +Double takes two turns to load. +.It CHAIN +Range of 3. +Excellent for tearing down rigging. +Cannot damage hull or guns, though. +.It GRAPE +Range of 1. +Sometimes devastating against enemy crews. +.El +.Pp +On the side of the screen is displayed some vital information about your +ship: +.Bd -literal -offset indent +Load D! R! +Hull 9 +Crew 4 4 2 +Guns 4 4 +Carr 2 2 +Rigg 5 5 5 5 +.Ed +.Pp +"Load" shows what your port (left) and starboard (right) broadsides are +loaded with. +A +.Sq \&! +after the type of shot indicates that it is an initial broadside. +Initial broadside were loaded with care before battle and before +the decks ran red with blood. +As a consequence, initial broadsides are a +little more effective than broadsides loaded later. +A +.Sq * +after the type of shot indicates that the gun +crews are still loading it, and you cannot fire yet. +"Hull" shows how much hull you have left. +"Crew" shows your three sections of crew. +As your crew dies off, your ability to fire decreases. +"Guns" and "Carr" show your port and starboard guns. +As you lose guns, your ability to fire decreases. +"Rigg" shows how much rigging you have on your 3 or 4 masts. +As rigging is shot away, you lose mobility. +.Ss "EFFECTIVENESS OF FIRE" +It is very dramatic when a ship fires its thunderous broadsides, but the +mere opportunity to fire them does not guarantee any hits. +Many factors influence the destructive force of a broadside. +First of all, and the chief factor, is distance. +It is harder to hit a ship at range ten than it is +to hit one sloshing alongside. +Next is raking. +Raking fire, as mentioned before, +can sometimes dismast a ship at range ten. +Next, crew size and quality affects the damage done by a broadside. +The number of guns firing also bears on the point, +so to speak. +Lastly, weather affects the accuracy of a broadside. +If the seas are high (5 or 6), then the lower gunports of ships of the line +can't even be opened to run out the guns. +This gives frigates and other flush decked vessels an advantage in a storm. +The scenario +.Em Pellew vs. The Droits de L'Homme +takes advantage of this peculiar circumstance. +.Ss REPAIRS +Repairs may be made to your Hull, Guns, and Rigging at the slow rate of +two points per three turns. +The message "Repairs Completed" will be +printed if no more repairs can be made. +.Ss "PECULIARITIES OF COMPUTER SHIPS" +Computer ships in +.Nm +follow all the rules above with a few exceptions. +Computer ships never repair damage. +If they did, the players could never beat them. +They play well enough as it is. +As a consolation, the computer ships can fire double +shot every turn. +That fluke is a good reason to keep your distance. +The driver figures out the moves of the computer ships. +It computes them with a typical +A.I. distance function and a depth-first search to find the maximum +.Dq score . +It seems to work fairly well, although +.\" I'll be the first to admit +it isn't perfect. +.Sh HOW TO PLAY +Commands are given to +.Nm +by typing a single character. +You will then be prompted for further input. +A brief summary of the commands follows. +.Ss "COMMAND SUMMARY" +.Bl -tag -width xxx +.It f +Fire broadsides if they bear +.It l +Reload +.It L +Unload broadsides (to change ammo) +.It m +Move +.It i +Print the closest ship +.It I +Print all ships +.It F +Find a particular ship or ships (e.g.\& +.Sq a? +for all Americans) +.It s +Send a message around the fleet +.It b +Attempt to board an enemy ship +.It B +Recall boarding parties +.It c +Change set of sail +.It r +Repair +.It u +Attempt to unfoul +.It g +Grapple/ungrapple +.It v +Print version number of game +.It ^L +Redraw screen +.It Q +Quit +.It C +Center your ship in the window +.It U +Move window up +.It D,N +Move window down +.It H +Move window left +.It J +Move window right +.It S +Toggle window to follow your ship or stay where it is +.El +.Sh SCENARIOS +Here is a summary of the scenarios in +.Nm : +.Ss Ranger vs. Drake: +Wind from the N, blowing a fresh breeze. +.Bd -literal +(a) Ranger 19 gun Sloop (crack crew) (7 pts) +(b) Drake 17 gun Sloop (crack crew) (6 pts) +.Ed +.Ss The Battle of Flamborough Head: +Wind from the S, blowing a fresh breeze. +.Pp +This is John Paul Jones' first famous battle. +Aboard the Bonhomme Richard, +he was able to overcome the Serapis's greater firepower +by quickly boarding her. +.Bd -literal +(a) Bonhomme Rich 42 gun Corvette (crack crew) (11 pts) +(b) Serapis 44 gun Frigate (crack crew) (12 pts) +.Ed +.Ss Arbuthnot and Des Touches: +Wind from the N, blowing a gale. +.Bd -literal +(b) America 64 gun Ship of the Line (crack crew) (20 pts) +(b) Befford 74 gun Ship of the Line (crack crew) (26 pts) +(b) Adamant 50 gun Ship of the Line (crack crew) (17 pts) +(b) London 98 gun 3 Decker SOL (crack crew) (28 pts) +(b) Royal Oak 74 gun Ship of the Line (crack crew) (26 pts) +(f) Neptune 74 gun Ship of the Line (average crew) (24 pts) +(f) Duc de Bourgogne 80 gun 3 Decker SOL (average crew) (27 pts) +(f) Conquerant 74 gun Ship of the Line (average crew) (24 pts) +(f) Provence 64 gun Ship of the Line (average crew) (18 pts) +(f) Romulus 44 gun Ship of the Line (average crew) (10 pts) +.Ed +.Ss Suffren and Hughes: +Wind from the S, blowing a fresh breeze. +.Bd -literal +(b) Monmouth 74 gun Ship of the Line (average crew) (24 pts) +(b) Hero 74 gun Ship of the Line (crack crew) (26 pts) +(b) Isis 50 gun Ship of the Line (crack crew) (17 pts) +(b) Superb 74 gun Ship of the Line (crack crew) (27 pts) +(b) Burford 74 gun Ship of the Line (average crew) (24 pts) +(f) Flamband 50 gun Ship of the Line (average crew) (14 pts) +(f) Annibal 74 gun Ship of the Line (average crew) (24 pts) +(f) Severe 64 gun Ship of the Line (average crew) (18 pts) +(f) Brilliant 80 gun Ship of the Line (crack crew) (31 pts) +(f) Sphinx 80 gun Ship of the Line (average crew) (27 pts) +.Ed +.Ss Nymphe vs. Cleopatre: +Wind from the S, blowing a fresh breeze. +.Bd -literal +(b) Nymphe 36 gun Frigate (crack crew) (11 pts) +(f) Cleopatre 36 gun Frigate (average crew) (10 pts) +.Ed +.Ss Mars vs. Hercule: +Wind from the S, blowing a fresh breeze. +.Bd -literal +(b) Mars 74 gun Ship of the Line (crack crew) (26 pts) +(f) Hercule 74 gun Ship of the Line (average crew) (23 pts) +.Ed +.Ss Ambuscade vs. Baionnaise: +Wind from the N, blowing a fresh breeze. +.Bd -literal +(b) Ambuscade 32 gun Frigate (average crew) (9 pts) +(f) Baionnaise 24 gun Corvette (average crew) (9 pts) +.Ed +.Ss Constellation vs. Insurgent: +Wind from the S, blowing a gale. +.Bd -literal +(a) Constellation 38 gun Corvette (elite crew) (17 pts) +(f) Insurgent 36 gun Corvette (average crew) (11 pts) +.Ed +.Ss Constellation vs. Vengeance: +Wind from the S, blowing a fresh breeze. +.Bd -literal +(a) Constellation 38 gun Corvette (elite crew) (17 pts) +(f) Vengeance 40 gun Frigate (average crew) (15 pts) +.Ed +.Ss The Battle of Lissa: +Wind from the S, blowing a fresh breeze. +.Bd -literal +(b) Amphion 32 gun Frigate (elite crew) (13 pts) +(b) Active 38 gun Frigate (elite crew) (18 pts) +(b) Volage 22 gun Frigate (elite crew) (11 pts) +(b) Cerberus 32 gun Frigate (elite crew) (13 pts) +(f) Favorite 40 gun Frigate (average crew) (15 pts) +(f) Flore 40 gun Frigate (average crew) (15 pts) +(f) Danae 40 gun Frigate (crack crew) (17 pts) +(f) Bellona 32 gun Frigate (green crew) (9 pts) +(f) Corona 40 gun Frigate (green crew) (12 pts) +(f) Carolina 32 gun Frigate (green crew) (7 pts) +.Ed +.Ss Constitution vs. Guerriere: +Wind from the SW, blowing a gale. +.Bd -literal +(a) Constitution 44 gun Corvette (elite crew) (24 pts) +(b) Guerriere 38 gun Frigate (crack crew) (15 pts) +.Ed +.Ss United States vs. Macedonian: +Wind from the S, blowing a fresh breeze. +.Bd -literal +(a) United States 44 gun Frigate (elite crew) (24 pts) +(b) Macedonian 38 gun Frigate (crack crew) (16 pts) +.Ed +.Ss Constitution vs. Java: +Wind from the S, blowing a fresh breeze. +.Bd -literal +(a) Constitution 44 gun Corvette (elite crew) (24 pts) +(b) Java 38 gun Corvette (crack crew) (19 pts) +.Ed +.Ss Chesapeake vs. Shannon: +Wind from the S, blowing a fresh breeze. +.Bd -literal +(a) Chesapeake 38 gun Frigate (average crew) (14 pts) +(b) Shannon 38 gun Frigate (elite crew) (17 pts) +.Ed +.Ss The Battle of Lake Erie: +Wind from the S, blowing a light breeze. +.Bd -literal +(a) Lawrence 20 gun Sloop (crack crew) (9 pts) +(a) Niagara 20 gun Sloop (elite crew) (12 pts) +(b) Lady Prevost 13 gun Brig (crack crew) (5 pts) +(b) Detroit 19 gun Sloop (crack crew) (7 pts) +(b) Q. Charlotte 17 gun Sloop (crack crew) (6 pts) +.Ed +.Ss Wasp vs. Reindeer: +Wind from the S, blowing a light breeze. +.Bd -literal +(a) Wasp 20 gun Sloop (elite crew) (12 pts) +(b) Reindeer 18 gun Sloop (elite crew) (9 pts) +.Ed +.Ss Constitution vs. Cyane and Levant: +Wind from the S, blowing a moderate breeze. +.Bd -literal +(a) Constitution 44 gun Corvette (elite crew) (24 pts) +(b) Cyane 24 gun Sloop (crack crew) (11 pts) +(b) Levant 20 gun Sloop (crack crew) (10 pts) +.Ed +.Ss Pellew vs. Droits de L'Homme: +Wind from the N, blowing a gale. +.Bd -literal +(b) Indefatigable 44 gun Frigate (elite crew) (14 pts) +(b) Amazon 36 gun Frigate (crack crew) (14 pts) +(f) Droits L'Hom 74 gun Ship of the Line (average crew) (24 pts) +.Ed +.Ss Algeciras: +Wind from the SW, blowing a moderate breeze. +.Bd -literal +(b) Caesar 80 gun Ship of the Line (crack crew) (31 pts) +(b) Pompee 74 gun Ship of the Line (crack crew) (27 pts) +(b) Spencer 74 gun Ship of the Line (crack crew) (26 pts) +(b) Hannibal 98 gun 3 Decker SOL (crack crew) (28 pts) +(s) Real-Carlos 112 gun 3 Decker SOL (green crew) (27 pts) +(s) San Fernando 96 gun 3 Decker SOL (green crew) (24 pts) +(s) Argonauta 80 gun Ship of the Line (green crew) (23 pts) +(s) San Augustine 74 gun Ship of the Line (green crew) (20 pts) +(f) Indomptable 80 gun Ship of the Line (average crew) (27 pts) +(f) Desaix 74 gun Ship of the Line (average crew) (24 pts) +.Ed +.Ss Lake Champlain: +Wind from the N, blowing a fresh breeze. +.Bd -literal +(a) Saratoga 26 gun Sloop (crack crew) (12 pts) +(a) Eagle 20 gun Sloop (crack crew) (11 pts) +(a) Ticonderoga 17 gun Sloop (crack crew) (9 pts) +(a) Preble 7 gun Brig (crack crew) (4 pts) +(b) Confiance 37 gun Frigate (crack crew) (14 pts) +(b) Linnet 16 gun Sloop (elite crew) (10 pts) +(b) Chubb 11 gun Brig (crack crew) (5 pts) +.Ed +.Ss Last Voyage of the USS President: +Wind from the N, blowing a fresh breeze. +.Bd -literal +(a) President 44 gun Frigate (elite crew) (24 pts) +(b) Endymion 40 gun Frigate (crack crew) (17 pts) +(b) Pomone 44 gun Frigate (crack crew) (20 pts) +(b) Tenedos 38 gun Frigate (crack crew) (15 pts) +.Ed +.Ss Hornblower and the Natividad: +Wind from the E, blowing a gale. +.Pp +A scenario for you Horny fans. +Remember, he sank the Natividad against heavy odds and winds. +Hint: don't try to board the Natividad; +her crew is much bigger, albeit green. +.Bd -literal +(b) Lydia 36 gun Frigate (elite crew) (13 pts) +(s) Natividad 50 gun Ship of the Line (green crew) (14 pts) +.Ed +.Ss Curse of the Flying Dutchman: +Wind from the S, blowing a fresh breeze. +.Pp +Just for fun, take the Piece of cake. +.Bd -literal +(s) Piece of Cake 24 gun Corvette (average crew) (9 pts) +(f) Flying Dutchy 120 gun 3 Decker SOL (elite crew) (43 pts) +.Ed +.Ss The South Pacific: +Wind from the S, blowing a strong breeze. +.Bd -literal +(a) USS Scurvy 136 gun 3 Decker SOL (mutinous crew) (27 pts) +(b) HMS Tahiti 120 gun 3 Decker SOL (elite crew) (43 pts) +(s) Australian 32 gun Frigate (average crew) (9 pts) +(f) Bikini Atoll 7 gun Brig (crack crew) (4 pts) +.Ed +.Ss Hornblower and the battle of Rosas bay: +Wind from the E, blowing a fresh breeze. +.Pp +The only battle Hornblower ever lost. +He was able to dismast one ship and stern rake the others though. +See if you can do as well. +.Bd -literal +(b) Sutherland 74 gun Ship of the Line (crack crew) (26 pts) +(f) Turenne 80 gun 3 Decker SOL (average crew) (27 pts) +(f) Nightmare 74 gun Ship of the Line (average crew) (24 pts) +(f) Paris 112 gun 3 Decker SOL (green crew) (27 pts) +(f) Napoleon 74 gun Ship of the Line (green crew) (20 pts) +.Ed +.Ss Cape Horn: +Wind from the NE, blowing a strong breeze. +.Bd -literal +(a) Concord 80 gun Ship of the Line (average crew) (27 pts) +(a) Berkeley 98 gun 3 Decker SOL (crack crew) (28 pts) +(b) Thames 120 gun 3 Decker SOL (elite crew) (43 pts) +(s) Madrid 112 gun 3 Decker SOL (green crew) (27 pts) +(f) Musket 80 gun 3 Decker SOL (average crew) (27 pts) +.Ed +.Ss New Orleans: +Wind from the SE, blowing a fresh breeze. +.Pp +Watch that little Cypress go! +.Bd -literal +(a) Alligator 120 gun 3 Decker SOL (elite crew) (43 pts) +(b) Firefly 74 gun Ship of the Line (crack crew) (27 pts) +(b) Cypress 44 gun Frigate (elite crew) (14 pts) +.Ed +.Ss Botany Bay: +Wind from the N, blowing a fresh breeze. +.Bd -literal +(b) Shark 64 gun Ship of the Line (average crew) (18 pts) +(f) Coral Snake 44 gun Corvette (elite crew) (24 pts) +(f) Sea Lion 44 gun Frigate (elite crew) (24 pts) +.Ed +.Ss Voyage to the Bottom of the Sea: +Wind from the NW, blowing a fresh breeze. +.Pp +This one is dedicated to Richard Basehart and David Hedison. +.Bd -literal +(a) Seaview 120 gun 3 Decker SOL (elite crew) (43 pts) +(a) Flying Sub 40 gun Frigate (crack crew) (17 pts) +(b) Mermaid 136 gun 3 Decker SOL (mutinous crew) (27 pts) +(s) Giant Squid 112 gun 3 Decker SOL (green crew) (27 pts) +.Ed +.Ss Frigate Action: +Wind from the E, blowing a fresh breeze. +.Bd -literal +(a) Killdeer 40 gun Frigate (average crew) (15 pts) +(b) Sandpiper 40 gun Frigate (average crew) (15 pts) +(s) Curlew 38 gun Frigate (crack crew) (16 pts) +.Ed +.Ss The Battle of Midway: +Wind from the E, blowing a moderate breeze. +.Bd -literal +(a) Enterprise 80 gun Ship of the Line (crack crew) (31 pts) +(a) Yorktown 80 gun Ship of the Line (average crew) (27 pts) +(a) Hornet 74 gun Ship of the Line (average crew) (24 pts) +(j) Akagi 112 gun 3 Decker SOL (green crew) (27 pts) +(j) Kaga 96 gun 3 Decker SOL (green crew) (24 pts) +(j) Soryu 80 gun Ship of the Line (green crew) (23 pts) +.Ed +.Ss Star Trek: +Wind from the S, blowing a fresh breeze. +.Bd -literal +(a) Enterprise 450 gun Ship of the Line (elite crew) (75 pts) +(a) Yorktown 450 gun Ship of the Line (elite crew) (75 pts) +(a) Reliant 450 gun Ship of the Line (elite crew) (75 pts) +(a) Galileo 450 gun Ship of the Line (elite crew) (75 pts) +(k) Kobayashi Maru 450 gun Ship of the Line (elite crew) (75 pts) +(k) Klingon II 450 gun Ship of the Line (elite crew) (75 pts) +(o) Red Orion 450 gun Ship of the Line (elite crew) (75 pts) +(o) Blue Orion 450 gun Ship of the Line (elite crew) (75 pts) +.Ed +.Sh HISTORY +Dave Riggle wrote the first version of +.Nm +on a PDP 11/70 in the fall of 1980. +Needless to say, says Dave, the code was horrendous, +not portable in any sense of the word, and didn't work. +The program was not +very modular and had +.Fn fseek Ns s +and +.Fn fwrites Ns s +every few lines. +After a tremendous rewrite from the top down, +he got the first working version up by 1981. +There were several annoying bugs concerning firing broadsides and +finding angles. +.Nm +uses no floating point, by the way, so the direction routines are rather +tricky. +Ed Wang rewrote the +.Fn angle +routine in 1981 to be less incorrect, and he added code to let a player +select a ship at the start of the game. +.\"instead of the first one available). +.Pp +Captain Happy (Craig Leres) is responsible for making +.Nm +portable for the first time. +This was no easy task, by the way. +.\" Constants like 2 and 10 were very frequent in the code. +.\" I also became famous for using "Riggle Memorial Structures" in +.\" .Nm . +.\" Many of my structure references are so long that they run off the line +.\" printer page. +.\" Here is an example, if you promise not to laugh. +.\" .br +.\" .sp +.\" .ce +.\" specs[scene[flog.fgamenum].ship[flog.fshipnum].shipnum].pts +.\" .br +.\" .sp +.Pp +.Nm +received its fourth and most thorough rewrite in the summer and fall +of 1983: +Ed Wang rewrote and modularized the code +.Pq a monumental feat +almost from scratch. +Although he introduced many new bugs, the final +result was very much cleaner and +.Pq \&? +faster. +He added window movement commands and find ship commands. +.Sh AUTHORS +.An -nosplit +.Nm +has been a group effort of +.An Dave Riggle , +.An \&Ed Wang Pq co-author +and +.An Craig Leres Pq refitting , +with consulting from +.An Chris Guthrie , +.An Captain Happy , +.An Horatio Nelson , +and many valiant others. +.Sh REFERENCES +.Rs +.%B Wooden Ships & Iron Men +.%A "Avalon Hill" +.Re +.Pp +.Rs +.%B Captain Horatio Hornblower Novels +.%O "(13 of them)" +.%A "C.S. Forester" +.Re +.Pp +.Rs +.%B Captain Richard Bolitho Novels +.%O "(12 of them)" +.%A "Alexander Kent" +.Re +.Pp +.Rs +.%B The Complete Works of Captain Frederick Marryat +.Re +Of these, especially +.Bl -item -offset indent -compact +.It +.%B Mr. Midshipman Easy +.It +.%B Peter Simple +.It +.%B Jacob Faithful +.It +.%B Japhet in Search of a Father +.It +.%B Snarleyyow, or The Dog Fiend +.It +.%B Frank Mildmay, or The Naval Officer +.El +.Sh BUGS +Probably a few. +.\" Please report them to "riggle@ernie.berkeley.edu" and +.\" "edward@ucbarpa.berkeley.edu" diff --git a/static/openbsd/man6/snake.6 b/static/openbsd/man6/snake.6 new file mode 100644 index 00000000..8daed46d --- /dev/null +++ b/static/openbsd/man6/snake.6 @@ -0,0 +1,134 @@ +.\" $OpenBSD: snake.6,v 1.15 2022/02/18 23:17:14 jsg Exp $ +.\" $NetBSD: snake.6,v 1.5 1995/04/22 08:34:35 cgd Exp $ +.\" +.\" Copyright (c) 1980, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)snake.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: February 18 2022 $ +.Dt SNAKE 6 +.Os +.Sh NAME +.Nm snake +.Nd display chase game +.Sh SYNOPSIS +.Nm snake +.Op Fl st +.Op Fl l Ar length +.Op Fl w Ar width +.Sh DESCRIPTION +.Nm snake +is a display-based game. +The object of the game is to make as much money as possible without +getting eaten by the snake. +The +.Fl l +and +.Fl w +options allow you to specify the length and width of the field. +By default the entire screen (except for the last column) is used. +The +.Fl s +option shows all scores. +The +.Fl t +option makes the game assume you are on a slow terminal. +.Pp +You are represented on the screen by an I. +The snake is 6 squares long and is represented by s's with an S at the head. +The money is $, and an exit is #. +Your score is posted in the upper left hand corner. +.Pp +You can move around using the same conventions as +.Xr vi 1 : +that is, the +.Ic h , +.Ic j , +.Ic k , +and +.Ic l +keys work, as do the arrow keys. +Other possibilities include: +.Bl -tag -width indent +.It Ic sefc +These keys are like hjkl but form a directed pad around the d key. +.It Ic HJKL +These keys move you all the way in the indicated direction to the +same row or column as the money. +This does +.Em not +let you jump away from the snake, but rather saves you from having +to type a key repeatedly. +The snake still gets all its turns. +.It Ic SEFC +Likewise for the upper case versions on the left. +.It Ic ATPB +These keys move you to the four edges of the screen. +Their position on the keyboard is mnemonic, e.g.\& +P is at the far right of the keyboard. +.It Ic x +This lets you quit the game at any time. +.It Ic p +Sometimes points in a direction you might want to go. +.It Ic w +Space warp to get out of tight squeezes, at a price. +.El +.Pp +To earn money, move to the same square the money is on. +A new $ will appear when you earn the current one. +As you get richer, the snake gets hungrier. +To leave the game, move to the exit (#). +.Pp +A record is kept of the personal best score of each player. +Scores are only counted if you leave at the exit. +Getting eaten by the snake is worth nothing. +.Pp +As in pinball, matching the last digit of your score to the number +which appears after the game is worth a bonus. +.Pp +To see who wastes time playing snake, run +.Nm snake +.Fl s . +.Sh ENVIRONMENT +.Bl -tag -width $HOME/.snake.scores +.It Ev LOGNAME +Name displayed in high score file. +.El +.Sh FILES +.Bl -tag -width $HOME/.snake.scores +.It Pa $HOME/.snake.scores +Database of personal bests. +.\".It Pa $HOME/.snake.log +.\"log of games played +.El +.Sh BUGS +When playing on a small screen, +it's hard to tell when you hit the edge of the screen. +.Pp +The scoring function takes into account the size of the screen. +A perfect function to do this equitably has not been devised. diff --git a/static/openbsd/man6/tetris.6 b/static/openbsd/man6/tetris.6 new file mode 100644 index 00000000..6d266c08 --- /dev/null +++ b/static/openbsd/man6/tetris.6 @@ -0,0 +1,172 @@ +.\" $OpenBSD: tetris.6,v 1.21 2017/06/19 06:04:16 bentley Exp $ +.\" +.\" Copyright (c) 1992, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" Nancy L. Tinkham and Darren F. Provine. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)tetris.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: June 19 2017 $ +.Dt TETRIS 6 +.Os +.Sh NAME +.Nm tetris +.Nd the game of tetris +.Sh SYNOPSIS +.Nm tetris +.Op Fl cps +.Op Fl k Ar keys +.Op Fl l Ar level +.Sh DESCRIPTION +The +.Nm +command runs a display-based game. +The object is to fit shapes together to form complete rows, +which then vanish. +When the shapes fill up to the top, the game ends. +You can optionally select a level of play or custom-select control keys. +.Pp +The default level of play is 2. +.Pp +The default control keys are as follows: +.Pp +.Bl -tag -width "<space>" -compact -offset indent +.It j +move left +.It k +rotate 1/4 turn counterclockwise +.It l +move right +.It <space> +drop +.It p +pause +.It q +quit +.El +.Pp +The options are as follows: +.Bl -tag -width indent +.It Fl c +Classic tetris mode, in which shapes rotate clockwise and are drawn with +.Dq [] . +.It Fl k Ar keys +The default control keys can be changed using the +.Fl k +option. +The +.Ar keys +argument must have the six keys in order; remember to quote any +space or tab characters from the shell. +For example: +.sp +.Dl "tetris -l 2 -k 'jkl pq'" +.sp +will play the default game, i.e. level 2 with the default +control keys. +The current key settings are displayed at the bottom of the screen +during play. +.It Fl l Ar level +Select a level of play. +.It Fl p +Switch on previewing of the shape that will appear next. +This penalizes your score. +.It Fl s +Display the top scores. +.El +.Sh PLAY +At the start of the game, a shape will appear at the top of the screen, +falling one square at a time. +The speed at which it falls is determined directly by the level: +if you select level 2, the blocks will fall twice per second; +at level 9, they fall 9 times per second. +(As the game goes on, things speed up, +no matter what your initial selection.) +When this shape +.Dq "touches down" +on the bottom of the field, another will appear at the top. +.Pp +You can move shapes to the left or right, rotate them counterclockwise, +or drop them to the bottom by pressing the appropriate keys. +As you fit them together, completed horizontal rows vanish, +and any blocks above fall down to fill in. +When the blocks stack up to the top of the screen, the game is over. +.Sh SCORING +You get one point for every block you fit into the stack, +and one point for every space a block falls when you hit the drop key. +(Dropping the blocks is therefore a good way to increase your score.) +Completing a row rewards you with a bonus corresponding to the number +of simultaneous rows completed. +Your total score is the product of the level of play +and your accumulated +points \(em 200 +points on level 3 gives you a score of 600. +Each player gets at most one entry on any level, +for a total of nine scores in the high scores file. +Players who no longer have accounts are limited to one score. +Also, scores over 5 years old are expired. +The exception to these conditions is that the highest score on a given +level is +.Em always +kept, +so that following generations can pay homage to those who have +wasted serious amounts of time. +.Pp +The score list is produced at the end of the game. +The printout includes each player's overall ranking, +name, score, and how many points were scored on what level. +Scores which are the highest on a given level +are marked with asterisks +.Dq * . +.Sh ENVIRONMENT +.Bl -tag -width $HOME/.tetris.scores +.It Ev LOGNAME +Name displayed in high score file. +.El +.Sh FILES +.Bl -tag -width $HOME/.tetris.scores +.It Pa $HOME/.tetris.scores +High score file. +.El +.Sh AUTHORS +.An -nosplit +Adapted from a 1989 International Obfuscated C Code Contest winner by +.An Chris Torek +and +.An Darren F. Provine . +.Pp +Manual adapted from the original entry written by +.An Nancy L. Tinkham +and +.An Darren F. Provine . +.Pp +Shape previewing code adapted from code by +.An Hubert Feyrer . +.Sh BUGS +The higher levels are unplayable without a fast terminal connection. diff --git a/static/openbsd/man6/trek.6 b/static/openbsd/man6/trek.6 new file mode 100644 index 00000000..35ef71cf --- /dev/null +++ b/static/openbsd/man6/trek.6 @@ -0,0 +1,146 @@ +.\" $OpenBSD: trek.6,v 1.17 2021/03/08 02:47:26 jsg Exp $ +.\" $NetBSD: trek.6,v 1.4 1995/04/22 10:59:35 cgd Exp $ +.\" +.\" Copyright (c) 1980, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)trek.6 8.2 (Berkeley) 12/30/93 +.\" +.Dd $Mdocdate: March 8 2021 $ +.Dt TREK 6 +.Os +.Sh NAME +.Nm trek +.Nd trekkie game +.Sh SYNOPSIS +.Nm trek +.Sh DESCRIPTION +.Nm +is a game of space glory and war. +Below is a summary of commands. +For complete documentation, see +.Em Star Trek +by Eric Allman. +.Pp +The game will ask you what length game you would like. +Valid responses are +.Dq short , +.Dq medium , +and +.Dq long . +You will then be prompted for the skill, to which you must respond +.Dq novice , +.Dq fair , +.Dq good , +.Dq expert , +.Dq commodore , +or +.Dq impossible . +You should normally start out with novice and work up. +.Pp +In general, throughout the game, if you forget what is appropriate +the game will tell you what it expects if you just type in a question mark. +.Sh COMMAND SUMMARY +.Bl -item -compact +.It +.Ic abandon +.It +.Ic ca Ns pture +.It +.Ic cl Ns oak +.Ic u Ns p/ Ns Ic d Ns own +.It +.Ic c Ns omputer request; ... +.It +.Ic da Ns mages +.It +.Ic destruct +.It +.Ic do Ns ck +.It +.Ic help +.It +.Ic i Ns mpulse course distance +.It +.Ic l Ns rscan +.It +.Ic m Ns ove course distance +.It +.Ic p Ns hasers Ic a Ns utomatic +amount +.It +.Ic p Ns hasers Ic m Ns anual +amt1 course1 spread1 ... +.It +.Ic ram No course distance +.It +.Ic r Ns est time +.It +.Ic sh Ns ields +.Ic u Ns p/ Ns Ic d Ns own +.It +.Ic s Ns rscan +.Sm off +.Op Ic y No es/ Ic n No o +.Sm on +.It +.Ic st Ns atus +.It +.Ic terminate y Ns es/ Ns Ic n Ns o +.It +.Ic t Ns orpedo course +.Sm off +.Op Ic y No es/ Ic n No o +.Sm on +.Op burst angle +.It +.Ic u Ns ndock +.It +.Ic v Ns isual course +.It +.Ic w Ns arp warp_factor +.El +.Sh HISTORY +The +.Nm +game first appeared in +.Bx 1 . +.Sh SEE ALSO +.Rs +.\" 4.4BSD USD:31 +.%A E. Allman +.%T Star Trek +.%B 4.4BSD User's Supplementary Documents (USD) +.Re +.Sh AUTHORS +.An -nosplit +.An Eric Allman , +May 1976, with contributions from +.An Jeff Poskanzer , +.An Pete Rubinstein , +and +.An Steve Bourne . diff --git a/static/openbsd/man6/worm.6 b/static/openbsd/man6/worm.6 new file mode 100644 index 00000000..a821b011 --- /dev/null +++ b/static/openbsd/man6/worm.6 @@ -0,0 +1,69 @@ +.\" $OpenBSD: worm.6,v 1.14 2015/03/09 19:52:02 tedu Exp $ +.\" +.\" Copyright (c) 1989, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)worm.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: March 9 2015 $ +.Dt WORM 6 +.Os +.Sh NAME +.Nm worm +.Nd play the growing worm game +.Sh SYNOPSIS +.Nm worm +.Op Ar size +.Sh DESCRIPTION +In +.Nm worm , +you are a little worm: your body is the "o"'s on the screen +and your head is the "@". +You move with the hjkl keys (as in the game +.Xr snake 6 ) . +If you don't press any keys, you continue in the direction you +last moved. +The upper case HJKL keys move you as if you had pressed +several of the corresponding lower case key (9 for HL and 5 for JK, or +until you run into a digit, whichever comes first). +.Pp +On the screen you will see a digit. +If your worm eats the digit it will grow longer by that number of "o"'s, +scaled to screen size. +The object of the game is to see how long you can make the worm grow. +.Pp +The game ends when the worm runs into either the sides of the screen +or itself. +The current score +.Pq how much the worm has grown +is kept in the upper right corner of the screen. +.Pp +The optional argument, +.Ar size , +is the initial length of the worm's body. +The specified length will be rejected if it causes the worm to cover +more than roughly one third of the screen. diff --git a/static/openbsd/man6/worms.6 b/static/openbsd/man6/worms.6 new file mode 100644 index 00000000..f922ef84 --- /dev/null +++ b/static/openbsd/man6/worms.6 @@ -0,0 +1,74 @@ +.\" $OpenBSD: worms.6,v 1.16 2022/03/31 17:27:15 naddy Exp $ +.\" +.\" Copyright (c) 1989, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)worms.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: March 31 2022 $ +.Dt WORMS 6 +.Os +.Sh NAME +.Nm worms +.Nd animate worms on a display terminal +.Sh SYNOPSIS +.Nm worms +.Op Fl ft +.Op Fl d Ar delay +.Op Fl l Ar length +.Op Fl n Ar number +.Sh DESCRIPTION +A +.Ux +version of the DEC-2136 program +.Dq worms . +.Pp +The options are as follows: +.Bl -tag -width "-l length" +.It Fl d Ar delay +Specifies a delay, in milliseconds, between each update. +This is useful for fast terminals. +Reasonable values are around 20\(en200. +The default is based on the terminal speed. +If the terminal is 9600 baud or slower, no delay is used. +Otherwise, the delay is computed via the following formula: +.Pp +.Dl delay = speed / 9600 \- 1 +.It Fl f +Makes a +.Dq field +for the worm(s) to eat. +.It Fl l Ar length +Specifies a length for each worm; the default is 16. +.It Fl n Ar number +Specifies the number of worms; the default is 3. +.It Fl t +Makes each worm leave a trail behind it. +.El +.Sh BUGS +The lower-right-hand character position will not be updated properly +on a terminal that wraps at the right margin. diff --git a/static/openbsd/man6/wump.6 b/static/openbsd/man6/wump.6 new file mode 100644 index 00000000..7b7fec59 --- /dev/null +++ b/static/openbsd/man6/wump.6 @@ -0,0 +1,114 @@ +.\" $OpenBSD: wump.6,v 1.9 2007/05/31 19:19:19 jmc Exp $ +.\" +.\" Copyright (c) 1989, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" Dave Taylor, of Intuitive Systems. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)wump.6 8.1 (Berkeley) 5/31/93 +.\" +.Dd $Mdocdate: May 31 2007 $ +.Dt WUMP 6 +.Os +.Sh NAME +.Nm wump +.Nd hunt the wumpus in an underground cave +.Sh SYNOPSIS +.Nm wump +.Op Fl ho +.Op Fl a Ar arrows +.Op Fl b Ar bats +.Op Fl p Ar pits +.Op Fl r Ar rooms +.Op Fl t Ar tunnels +.Sh DESCRIPTION +The game +.Nm +is based on a fantasy game first presented in the pages of +.Em People's Computer Company +in 1973. +In Hunt the Wumpus you are placed in a cave built of many different rooms, +all interconnected by tunnels. +Your quest is to find and shoot the evil Wumpus that resides elsewhere in +the cave without running into any pits or using up your limited supply of +arrows. +.Pp +The options are as follows: +.Bl -tag -width indent +.It Fl a Ar arrows +Specifies the number of magic arrows the adventurer gets. +The default is five. +.It Fl b Ar bats +Specifies the number of rooms in the cave which contain bats. +The default is three. +.It Fl h +Play the hard version -- more pits, more bats, and a generally more +dangerous cave. +.It Fl o +Play the original version, where there are twenty rooms arranged on the +vertices of a dodecahedron, connected by the edges. +In this case, the default is two pits and two bat rooms. +.It Fl p Ar pits +Specifies the number of rooms in the cave which contain bottomless pits. +The default is three. +.It Fl r Ar rooms +Specifies the number of rooms in the cave. +The default cave size is twenty-five rooms. +.It Fl t Ar tunnels +Specifies the number of tunnels connecting each room in the cave to +another room. +Beware, too many tunnels in a small cave can easily cause it to collapse! +The default cave room has three tunnels to other rooms. +.El +.Pp +While wandering through the cave you'll notice that, while there are tunnels +everywhere, there are some mysterious quirks to the cave topology, including +some tunnels that go from one room to another, but not necessarily back! +Also, most pesky of all are the rooms that are home to large numbers of bats, +which, upon being disturbed, will en masse grab you and move you to another +portion of the cave (including those housing bottomless pits, sure +death for unwary explorers). +.Pp +Fortunately, you're not going into the cave without any weapons or tools, +and in fact your biggest aids are your senses; you can often smell the +rather odiferous Wumpus up to +.Em two +rooms away, and you can always feel the drafts created by the occasional +bottomless pit and hear the rustle of the bats in caves they might be +sleeping within. +.Pp +To kill the wumpus, you'll need to shoot it with one of your magic arrows. +Fortunately, you don't have to be in the same room as the creature, and can +instead shoot the arrow from as far as three or four rooms away! +.Pp +When you shoot an arrow, you do so by typing in a list of rooms that you'd +like it to travel to. +If at any point in its travels it cannot find a tunnel to the room you +specify from the room it's in, it will instead randomly fly down one of the +tunnels, possibly, if you're real unlucky, even flying back into the room +you're in and hitting you! |
