1*affbef56Stedu.\" $OpenBSD: robots.6,v 1.18 2017/05/28 22:27:10 tedu Exp $ 2df930be7Sderaadt.\" 3df930be7Sderaadt.\" Copyright (c) 1991, 1993 4df930be7Sderaadt.\" The Regents of the University of California. All rights reserved. 5df930be7Sderaadt.\" 6df930be7Sderaadt.\" Redistribution and use in source and binary forms, with or without 7df930be7Sderaadt.\" modification, are permitted provided that the following conditions 8df930be7Sderaadt.\" are met: 9df930be7Sderaadt.\" 1. Redistributions of source code must retain the above copyright 10df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer. 11df930be7Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright 12df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer in the 13df930be7Sderaadt.\" documentation and/or other materials provided with the distribution. 147a09557bSmillert.\" 3. Neither the name of the University nor the names of its contributors 15df930be7Sderaadt.\" may be used to endorse or promote products derived from this software 16df930be7Sderaadt.\" without specific prior written permission. 17df930be7Sderaadt.\" 18df930be7Sderaadt.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19df930be7Sderaadt.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20df930be7Sderaadt.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21df930be7Sderaadt.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22df930be7Sderaadt.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23df930be7Sderaadt.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24df930be7Sderaadt.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25df930be7Sderaadt.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26df930be7Sderaadt.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27df930be7Sderaadt.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28df930be7Sderaadt.\" SUCH DAMAGE. 29df930be7Sderaadt.\" 30df930be7Sderaadt.\" @(#)robots.6 8.1 (Berkeley) 5/31/93 31df930be7Sderaadt.\" 32bacfd86dStedu.Dd $Mdocdate: May 28 2017 $ 33df930be7Sderaadt.Dt ROBOTS 6 34df930be7Sderaadt.Os 35df930be7Sderaadt.Sh NAME 36df930be7Sderaadt.Nm robots 37df930be7Sderaadt.Nd fight off villainous robots 38df930be7Sderaadt.Sh SYNOPSIS 39a702fa09Spjanzen.Nm robots 40fa0ffc49Sjmc.Op Fl ajrst 41df930be7Sderaadt.Op Ar scorefile 42df930be7Sderaadt.Sh DESCRIPTION 433897dfeeSpjanzen.Nm 443bfc9584Spjanzenpits you against evil robots, who are trying to kill you 453bfc9584Spjanzen.Pq which is why they are evil . 46df930be7SderaadtFortunately for you, even though they are evil, they are not very bright 47df930be7Sderaadtand have a habit of bumping into each other, thus destroying themselves. 48df930be7SderaadtIn order to survive, you must get them to kill each other off, since you 493bfc9584Spjanzenhave no offensive weaponry. 503bfc9584SpjanzenYou are endowed with one piece of defensive weaponry: a teleportation device. 51df930be7SderaadtWhen two robots run into each other or a junk pile, they die. 52df930be7SderaadtIf a robot runs into you, you die. 53df930be7SderaadtWhen a robot dies, you get 10 points, and when all the robots die, 54df930be7Sderaadtyou start on the next field. 55df930be7SderaadtThis keeps up until they finally get you. 56df930be7Sderaadt.Pp 57df930be7SderaadtRobots are represented on the screen by a 58*affbef56Stedu.Sq + , 59df930be7Sderaadtthe junk heaps from their collisions by a 60*affbef56Stedu.Sq * , 61df930be7Sderaadtand you 62df930be7Sderaadt(the good guy) 63df930be7Sderaadtby a 64*affbef56Stedu.Sq @ . 65df930be7Sderaadt.Pp 66df930be7SderaadtThe commands are: 67df930be7Sderaadt.Bl -tag -width indent -compact 68df930be7Sderaadt.It Ic h 69df930be7Sderaadtmove one square left 70df930be7Sderaadt.It Ic l 71df930be7Sderaadtmove one square right 72df930be7Sderaadt.It Ic k 73df930be7Sderaadtmove one square up 74df930be7Sderaadt.It Ic j 75df930be7Sderaadtmove one square down 76df930be7Sderaadt.It Ic y 77df930be7Sderaadtmove one square up and left 78df930be7Sderaadt.It Ic u 79df930be7Sderaadtmove one square up and right 80df930be7Sderaadt.It Ic b 81df930be7Sderaadtmove one square down and left 82df930be7Sderaadt.It Ic n 83df930be7Sderaadtmove one square down and right 84df930be7Sderaadt.It Ic \&. 85df930be7Sderaadt(also space) do nothing for one turn 86df930be7Sderaadt.It Ic HJKLBNYU 87df930be7Sderaadtrun as far as possible in the given direction 88*affbef56Stedu.It Ic > 89df930be7Sderaadtdo nothing for as long as possible 90df930be7Sderaadt.It Ic t 91df930be7Sderaadtteleport to a random location 92df930be7Sderaadt.It Ic w 93df930be7Sderaadtwait until you die or they all do 94df930be7Sderaadt.It Ic q 95df930be7Sderaadtquit 96df930be7Sderaadt.It Ic ^L 97df930be7Sderaadtredraw the screen 98df930be7Sderaadt.El 99df930be7Sderaadt.Pp 1004c144bbcSpjanzenAll commands can be preceded by a count unless the game is in real-time mode. 101df930be7Sderaadt.Pp 102df930be7SderaadtIf you use the 103df930be7Sderaadt.Sq Ic w 104df930be7Sderaadtcommand and survive to the next level, you will get a bonus of 10% 105df930be7Sderaadtfor each robot which died after you decided to wait. 106df930be7SderaadtIf you die, however, you get nothing. 107df930be7SderaadtFor all other commands, the program will save you from typos 108df930be7Sderaadtby stopping short of being eaten. 109df930be7SderaadtHowever, with 110df930be7Sderaadt.Sq Ic w 111df930be7Sderaadtyou take the risk of dying by miscalculation. 112df930be7Sderaadt.Pp 113df930be7SderaadtOnly five scores are allowed per user on the score file. 114df930be7SderaadtIf you make it into the score file, you will be shown the list at the end 115df930be7Sderaadtof the game. 116fdb7e56cSpjanzenIf an alternative score file is specified, that will be used instead of the 117df930be7Sderaadtstandard file for scores. 118df930be7Sderaadt.Pp 119fa0ffc49SjmcThe options are as follows: 120df930be7Sderaadt.Bl -tag -width indent 121fa0ffc49Sjmc.It Fl a 122fa0ffc49SjmcAdvance into the higher levels directly, skipping the lower, easier levels. 123df930be7Sderaadt.It Fl j 124df930be7SderaadtJump, 125df930be7Sderaadt.Em i.e. , 126df930be7Sderaadtwhen you run, don't show any intermediate positions; only show things at 127df930be7Sderaadtthe end. 128df930be7SderaadtThis is useful on slow terminals. 129fa0ffc49Sjmc.It Fl r 130fa0ffc49SjmcReal-time mode. 131fa0ffc49SjmcAfter your first move, robots will advance at least every three seconds. 132fa0ffc49Sjmc.It Fl s 133fa0ffc49SjmcDon't play, just show the score file. 134df930be7Sderaadt.It Fl t 135df930be7SderaadtTeleport automatically when you have no other option. 136df930be7SderaadtThis is a little disconcerting until you get used to it, and then it is 137df930be7Sderaadtvery nice. 138df930be7Sderaadt.El 13987b7d5d4Stb.Sh ENVIRONMENT 14087b7d5d4Stb.Bl -tag -width $HOME/.robots.scores 14187b7d5d4Stb.It Ev LOGNAME 14287b7d5d4StbName displayed in high score file. 14387b7d5d4Stb.El 144df930be7Sderaadt.Sh FILES 14587b7d5d4Stb.Bl -tag -width $HOME/.robots.scores 146e224588fStb.It Pa $HOME/.robots.scores 14705ea1278SjmcThe score file. 148df930be7Sderaadt.El 1491f2e2e45Spjanzen.Sh AUTHORS 15027e95970Sschwarze.An Ken Arnold 151