From 455a465f60d28ed3fe4de3f3297bc1a96aec77e4 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Tue, 27 Mar 2007 10:08:02 +0000 Subject: [PATCH] Convert to mdoc. Taken-from: NetBSD --- games/hangman/hangman.6 | 31 ++++---- games/snake/snake/snake.6 | 117 ++++++++++++++++-------------- games/trek/trek.6 | 147 +++++++++++++++++++++++++------------- 3 files changed, 182 insertions(+), 113 deletions(-) diff --git a/games/hangman/hangman.6 b/games/hangman/hangman.6 index 599389a30d..0ccadd6f6a 100644 --- a/games/hangman/hangman.6 +++ b/games/hangman/hangman.6 @@ -31,22 +31,27 @@ .\" .\" @(#)hangman.6 8.1 (Berkeley) 5/31/93 .\" $FreeBSD: src/games/hangman/hangman.6,v 1.4 1999/08/27 23:29:06 peter Exp $ -.\" $DragonFly: src/games/hangman/hangman.6,v 1.2 2003/06/17 04:25:24 dillon Exp $ +.\" $DragonFly: src/games/hangman/hangman.6,v 1.3 2007/03/27 10:08:02 swildner Exp $ .\" -.TH HANGMAN 6 "May 31, 1993" -.UC 4 -.SH NAME -hangman \- the game of hangman -.SH SYNOPSIS -.B /usr/games/hangman -.SH DESCRIPTION +.Dd May 31, 1993 +.Dt HANGMAN 6 +.Os +.Sh NAME +.Nm hangman +.Nd the game of hangman +.Sh SYNOPSIS +.Nm +.Sh DESCRIPTION In -.I hangman, +.Nm , 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. -.SH FILES -/usr/share/dict/words On-line word list -.SH AUTHOR -Ken Arnold +.Sh FILES +.Bl -tag -width ".Pa /usr/share/dict/words" -compact +.It Pa /usr/share/dict/words +On-line word list +.El +.Sh AUTHORS +.An Ken Arnold diff --git a/games/snake/snake/snake.6 b/games/snake/snake/snake.6 index 2d361ae44e..3f5543b284 100644 --- a/games/snake/snake/snake.6 +++ b/games/snake/snake/snake.6 @@ -31,88 +31,101 @@ .\" .\" @(#)snake.6 8.1 (Berkeley) 5/31/93 .\" $FreeBSD: src/games/snake/snake/snake.6,v 1.4.2.1 2001/07/22 11:01:23 dd Exp $ -.\" $DragonFly: src/games/snake/snake/snake.6,v 1.3 2006/09/03 23:23:10 pavalos Exp $ +.\" $DragonFly: src/games/snake/snake/snake.6,v 1.4 2007/03/27 10:08:02 swildner Exp $ .\" -.TH SNAKE 6 "May 31, 1993" -.UC 4 -.SH NAME -snake, snscore \- display chase game -.SH SYNOPSIS -.B snake -[ -.B -w width -] [ -.B -l length -] [ -.B -t -] +.Dd May 31, 1993 +.Dt SNAKE 6 +.Os +.Sh NAME +.Nm snake , +.Nm snscore +.Nd display chase game +.Sh SYNOPSIS +.Nm +.Op Fl w Ar width +.Op Fl l Ar length +.Op Fl t .br -.B snscore -.SH DESCRIPTION -Snake is a display-based game which must be played on a CRT terminal. +.Nm snscore +.Sh DESCRIPTION +.Nm Snake +is a display-based game which must be played on a CRT terminal. The object of the game is to make as much money as possible without -getting eaten by the snake. The -.B \-l +getting eaten by the snake. +The +.Fl l and -.B \-w +.Fl w options allow you to specify the length and width of the field. -By default the entire screen is used. The -.B \-t +By default the entire screen is used. +The +.Fl t option makes the game assume you are on a slow terminal. -.PP +.Pp You are represented on the screen by an I. -The snake is 6 squares long and is represented by S's. +The snake is 6 squares long and is represented by s's with an S at its 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 vi(1), -the h, j, k, and l keys work, as do the arrow keys. +.Pp +You can move around using the same conventions as +.Xr vi 1 , +the +.Ic h , +.Ic j , +.Ic k , +and +.Ic l +keys work, as do the arrow keys. Other possibilities include: -.IP sefc +.Bl -tag -width indent +.It Ic sefc These keys are like hjkl but form a directed pad around the d key. -.IP HJKL +.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 -.I not +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 his turns. -.IP SEFC +to type a key repeatedly. +The snake still gets all his turns. +.It Ic SEFC Likewise for the upper case versions on the left. -.IP ATPB +.It Ic ATPB These keys move you to the four edges of the screen. -Their position on the keyboard is the mnemonic, e.g. +Their position on the keyboard is the mnemonic, e.g., P is at the far right of the keyboard. -.IP x +.It Ic x This lets you quit the game at any time. -.IP p +.It Ic p Points in a direction you might want to go. -.IP w +.It Ic w Space warp to get out of tight squeezes, at a price. -.PP +.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 +.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 +.Pp As in pinball, matching the last digit of your score to the number which appears after the game is worth a bonus. -.PP +.Pp To see who wastes time playing snake, run -.I snscore . -.SH FILES -.nf -.ta \w'/var/games/snakerawscores 'u -/var/games/snakerawscores database of personal bests -/var/games/snake.log log of games played -.DT -.fi -.SH BUGS +.Nm snscore . +.Sh FILES +.Bl -tag -width ".Pa /var/games/snakerawscores" -compact +.It Pa /var/games/snakerawscores +database of personal bests +.It Pa /var/games/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 +.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/games/trek/trek.6 b/games/trek/trek.6 index 9e629e715b..3caf66d509 100644 --- a/games/trek/trek.6 +++ b/games/trek/trek.6 @@ -31,62 +31,113 @@ .\" .\" @(#)trek.6 8.2 (Berkeley) 12/30/93 .\" $FreeBSD: src/games/trek/trek.6,v 1.4 1999/08/27 23:29:19 peter Exp $ -.\" $DragonFly: src/games/trek/trek.6,v 1.2 2003/06/17 04:25:25 dillon Exp $ +.\" $DragonFly: src/games/trek/trek.6,v 1.3 2007/03/27 10:08:02 swildner Exp $ .\" -.TH TREK 6 "December 30, 1993" -.UC 4 -.SH NAME -trek \- trekkie game -.SH SYNOPSIS -.B /usr/games/trek -[ [ -.B \-a -] file ] -.SH DESCRIPTION -.I Trek -is a game of space glory and war. Below is a summary of commands. +.Dd December 30, 1993 +.Dt TREK 6 +.Os +.Sh NAME +.Nm trek +.Nd trekkie game +.Sh SYNOPSIS +.Nm +.Oo +.Op Fl a +.Ar file +.Oc +.Sh DESCRIPTION +.Nm Trek +is a game of space glory and war. +Below is a summary of commands. For complete documentation, see -.IR Trek +.Em Trek by Eric Allman. -.PP +.Pp If a filename is given, a log of the game is written onto that file. If the -.B \-a +.Fl a flag is given before the filename, that file is appended to, not truncated. -.PP +.Pp The game will ask you what length game you would like. -Valid responses are \*(lqshort\*(rq, \*(lqmedium\*(rq, and \*(lqlong\*(rq. -You may also type \*(lqrestart\*(rq, which restarts a previously saved game. +Valid responses are +.Dq short , +.Dq medium , +and +.Dq long . +You may also type +.Dq restart , +which restarts a previously saved game. You will then be prompted for the skill, to which you must respond -\*(lqnovice\*(rq, \*(lqfair\*(rq, \*(lqgood\*(rq, \*(lqexpert\*(rq, -\*(lqcommodore\*(rq, or \*(lqimpossible\*(rq. +.Dq novice , +.Dq fair , +.Dq good , +.Dq expert , +.Dq commodore , +or +.Dq impossible . You should normally start out with a novice and work up. -.PP +.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 AUTHOR -Eric Allman -.SH "SEE ALSO" -/usr/share/doc/usd/31.trek/* -.SH "COMMAND SUMMARY" -.ie t .ds f \fB -.el .ds f \fI -.ta 3i -.nf -\*fabandon\fR \*fca\fRpture -\*fcl\fRoak \*fu\fRp/\*fd\fRown -\*fc\fRomputer request; ... \*fda\fRmages -\*fdestruct\fR \*fdo\fRck -\*fhelp\fR \*fi\fRmpulse course distance -\*fl\fRrscan \*fm\fRove course distance -\*fp\fRhasers \*fa\fRutomatic amount -\*fp\fRhasers \*fm\fRanual amt1 course1 spread1 ... -\*ft\fRorpedo course [\*fy\fRes] angle/\*fn\fRo -\*fram\fR course distance \*fr\fRest time -\*fshell\fR \*fsh\fRields \*fu\fRp/\*fd\fRown -\*fs\fRrscan [\*fy\fRes/\*fn\fRo] -\*fst\fRatus \*fterminate\fR \*fy\fRes/\*fn\fRo -\*fu\fRndock \*fv\fRisual course -\*fw\fRarp warp_factor -.fi -.DT +.Sh SEE ALSO +.Pa /usr/share/doc/usd/31.trek +.Sh AUTHORS +.An Eric Allman +.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 t Ns orpedo course +.Op Ic y Ns es +.No angle/ Ns Ic n Ns o +.It +.Ic ram No course distance +.It +.Ic r Ns est time +.It +.Ic shell +.It +.Ic sh Ns ields +.Ic u Ns p/ Ns Ic d Ns own +.It +.Ic s Ns rscan +.Op Ic y Ns es/ Ns Ic n Ns o +.It +.Ic st Ns atus +.It +.Ic terminate y Ns es/ Ns Ic n Ns o +.It +.Ic u Ns ndock +.It +.Ic v Ns isual course +.It +.Ic w Ns arp warp_factor +.El -- 2.41.0