1*f5d4590cSdholland.\" $NetBSD: robots.6,v 1.15 2009/08/05 04:03:47 dholland Exp $ 26045e6e0Scgd.\" 36045e6e0Scgd.\" Copyright (c) 1991, 1993 46045e6e0Scgd.\" The Regents of the University of California. All rights reserved. 561f28255Scgd.\" 661f28255Scgd.\" Redistribution and use in source and binary forms, with or without 761f28255Scgd.\" modification, are permitted provided that the following conditions 861f28255Scgd.\" are met: 961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright 1061f28255Scgd.\" notice, this list of conditions and the following disclaimer. 1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 1261f28255Scgd.\" notice, this list of conditions and the following disclaimer in the 1361f28255Scgd.\" documentation and/or other materials provided with the distribution. 14e5aeb4eaSagc.\" 3. Neither the name of the University nor the names of its contributors 1561f28255Scgd.\" may be used to endorse or promote products derived from this software 1661f28255Scgd.\" without specific prior written permission. 1761f28255Scgd.\" 1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2161f28255Scgd.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2861f28255Scgd.\" SUCH DAMAGE. 2961f28255Scgd.\" 306045e6e0Scgd.\" @(#)robots.6 8.1 (Berkeley) 5/31/93 3161f28255Scgd.\" 32*f5d4590cSdholland.Dd August 4, 2009 331535a457Sjtc.Dt ROBOTS 6 341535a457Sjtc.Os 351535a457Sjtc.Sh NAME 361535a457Sjtc.Nm robots 371535a457Sjtc.Nd fight off villainous robots 381535a457Sjtc.Sh SYNOPSIS 399007937fSlukem.Nm 40*f5d4590cSdholland.Op Fl Aajnrst 41*f5d4590cSdholland.Op Ar maximum 421535a457Sjtc.Op Ar scorefile 431535a457Sjtc.Sh DESCRIPTION 449007937fSlukem.Nm 4561f28255Scgdpits you against evil robots, who are trying to kill you (which is why 4661f28255Scgdthey are evil). 4761f28255ScgdFortunately for you, even though they are evil, they are not very bright 4861f28255Scgdand have a habit of bumping into each other, thus destroying themselves. 4961f28255ScgdIn order to survive, you must get them to kill each other off, since you 5061f28255Scgdhave no offensive weaponry. 511535a457Sjtc.Pp 5261f28255ScgdSince you are stuck without offensive weaponry, you are endowed with one 5361f28255Scgdpiece of defensive weaponry: a teleportation device. 5461f28255ScgdWhen two robots run into each other or a junk pile, they die. 5561f28255ScgdIf a robot runs into you, you die. 5661f28255ScgdWhen a robot dies, you get 10 points, and when all the robots die, 5761f28255Scgdyou start on the next field. 5861f28255ScgdThis keeps up until they finally get you. 591535a457Sjtc.Pp 6061f28255ScgdRobots are represented on the screen by a 61c91d8d6bSwiz.Sq \&+ , 6261f28255Scgdthe junk heaps from their collisions by a 631535a457Sjtc.Sq \(** , 6461f28255Scgdand you 6561f28255Scgd(the good guy) 6661f28255Scgdby a 67f10218e5Sjoerg.Sq @ . 681535a457Sjtc.Pp 6961f28255ScgdThe commands are: 701535a457Sjtc.Bl -tag -width indent -compact 711535a457Sjtc.It Ic h 721535a457Sjtcmove one square left 731535a457Sjtc.It Ic l 741535a457Sjtcmove one square right 751535a457Sjtc.It Ic k 761535a457Sjtcmove one square up 771535a457Sjtc.It Ic j 781535a457Sjtcmove one square down 791535a457Sjtc.It Ic y 801535a457Sjtcmove one square up and left 811535a457Sjtc.It Ic u 821535a457Sjtcmove one square up and right 831535a457Sjtc.It Ic b 841535a457Sjtcmove one square down and left 851535a457Sjtc.It Ic n 861535a457Sjtcmove one square down and right 871535a457Sjtc.It Ic \&. 881535a457Sjtc(also space) do nothing for one turn 891535a457Sjtc.It Ic HJKLBNYU 901535a457Sjtcrun as far as possible in the given direction 91c91d8d6bSwiz.It Ic \*[Gt] 921535a457Sjtcdo nothing for as long as possible 931535a457Sjtc.It Ic t 941535a457Sjtcteleport to a random location 951535a457Sjtc.It Ic w 961535a457Sjtcwait until you die or they all do 971535a457Sjtc.It Ic q 981535a457Sjtcquit 991535a457Sjtc.It Ic ^L 1001535a457Sjtcredraw the screen 1011535a457Sjtc.El 1021535a457Sjtc.Pp 10361f28255ScgdAll commands can be preceded by a count. 1041535a457Sjtc.Pp 10561f28255ScgdIf you use the 1061535a457Sjtc.Sq Ic w 10761f28255Scgdcommand and survive to the next level, you will get a bonus of 10% 10861f28255Scgdfor each robot which died after you decided to wait. 10961f28255ScgdIf you die, however, you get nothing. 11061f28255ScgdFor all other commands, the program will save you from typos 11161f28255Scgdby stopping short of being eaten. 11261f28255ScgdHowever, with 1131535a457Sjtc.Sq Ic w 11461f28255Scgdyou take the risk of dying by miscalculation. 1151535a457Sjtc.Pp 11661f28255ScgdOnly five scores are allowed per user on the score file. 11761f28255ScgdIf you make it into the score file, you will be shown the list at the end 11861f28255Scgdof the game. 119*f5d4590cSdhollandIf an alternative score file is named on the command line, that file 120*f5d4590cSdhollandwill be used instead of the standard file for scores. 121*f5d4590cSdhollandThe score file must be created empty beforehand, e.g. with 122*f5d4590cSdholland.Xr touch 1 . 123*f5d4590cSdhollandIf the argument 124*f5d4590cSdholland.Ar maximum , 125*f5d4590cSdhollandwhich must be a number, is provided when a score file is first used, 126*f5d4590cSdhollandthe value given will be used as the maximum number of scores to keep 127*f5d4590cSdhollandper user instead of the default five. 128*f5d4590cSdhollandThis value is a property of the score file and cannot be changed later. 1291535a457Sjtc.Pp 13061f28255ScgdThe options are 1311535a457Sjtc.Bl -tag -width indent 132*f5d4590cSdholland.It Fl A 133*f5d4590cSdhollandAuto-bot mode. 134*f5d4590cSdhollandLets the game play itself. 135*f5d4590cSdholland.It Fl a 136*f5d4590cSdhollandAdvance into the higher levels directly, skipping the lower, easier levels. 1371535a457Sjtc.It Fl j 13861f28255ScgdJump, 1391535a457Sjtc.Em i.e. , 14061f28255Scgdwhen you run, don't show any intermediate positions; only show things at 14161f28255Scgdthe end. 14261f28255ScgdThis is useful on slow terminals. 143*f5d4590cSdholland.It Fl n 144*f5d4590cSdhollandIncrease the number of games played by one; that is, automatically 145*f5d4590cSdhollandchoose to play again one time per usage of this option. 146*f5d4590cSdholland.It Fl r 147*f5d4590cSdhollandPlay in real time; that is, if you do nothing for a few seconds the 148*f5d4590cSdhollandgame will assume you meant to do nothing and move the robots. 149*f5d4590cSdholland.It Fl s 150*f5d4590cSdhollandDon't play, just show the score file. 1511535a457Sjtc.It Fl t 15261f28255ScgdTeleport automatically when you have no other option. 15361f28255ScgdThis is a little disconcerting until you get used to it, and then it is 15461f28255Scgdvery nice. 1551535a457Sjtc.El 1561535a457Sjtc.Sh FILES 1571535a457Sjtc.Bl -tag -width /var/games/robots_roll -compact 1581535a457Sjtc.It Pa /var/games/robots_roll 159*f5d4590cSdhollandThe score file. 1601535a457Sjtc.El 161d9f5a9dfSwiz.Sh AUTHORS 162d9f5a9dfSwiz.An Ken Arnold 163d9f5a9dfSwiz.An Christos Zoulas 164d9f5a9dfSwiz(autobot mode) 1651535a457Sjtc.Sh BUGS 16661f28255ScgdBugs? 16761f28255ScgdYou 1681535a457Sjtc.Em crazy , 16961f28255Scgdman?!? 170