ROBOTS(1)
๐ค ROBOTS(1) โ fight off villainous robots ๐
okay so bestie, welcome to the User Contributed Perl Documentation page for robots(1) โ yes, the manual about fighting villainous robots. it's giving classic terminal chaos, and I'm lowkey obsessed. ๐ซถ
๐ธ NAME ๐ธ
robots โ fight off villainous robots
โจ SYNOPSIS โจ
"robots -hjstv [-a [level]] [-i num] [-r [secs]] [scorefile]"
๐ DESCRIPTION ๐
robots pits you against a growing hoard of evil robots bent on your destruction (much like real life). Your only weapons against the robot hoard are your wits and their stupidity. Consumed by their single-minded mission of destruction, the robots will not deviate from their pursuit even if it causes them to collide with and annihilate each other, leaving behind a pile of robot junk. iconic, honestly. ๐
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 level. This keeps up until they finally get you (or until you meet the final boss robot, Zektor the Destroyer, and defeat the game). ๐
Robots are represented on the screen by a +, the junk heaps from their collisions by a *, and you (the good guy) by a @.
๐ฎ The commands are:
hโ move one square leftlโ move one square rightkโ move one square upjโ move one square downyโ move one square up and leftuโ move one square up and rightbโ move one square down and leftnโ move one square down and right.(also space) โ do nothing for one turnHJKLBNYUโ run as far as possible in the given direction>โ do nothing for as long as possibletโ teleport to a random locationwโ wait until you die or they all doqโ quit^Lโ redraw the screen
All commands can be preceded by a count.
If you use the w command and survive to the next level, you will get a bonus of 1 point for each robot that died after you decided to wait. If you die, however, you get nothing (again, much like in real life). For all other commands, the program will save you from typos by stopping short of being eaten. However, with w you take the risk of dying by miscalculation. bestie, that's the danger zone. ๐ญ
Only five scores per user are allowed 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.
If the score file is named pattern_roll, then the game will be played automatically using the repeated sequence of commands: YHBJNLUK. The game will stop on each level when there is only one robot left alive, allowing you to finish the level manually. Automatic play will resume at the start of the next level. Auto-teleport will be active. ๐ฆ
If the score file is named stand_still, then the game will be played automatically using a repeated sequence of the > command. The game will stop on each level when there is only one robot left alive, allowing you to finish the level manually. Automatic play will resume at the start of the next level. Auto-teleport will be active. ๐ง
๐ ๏ธ The options are:
-a [LEVEL]โ Advance into the higher levels directly, skipping the lower, easier levels. Takes an optional level argument, and defaults to4with no arguments. Setting this to anything less than the default (4) takes you out of contention for a place in the score file. A bonus of600points is awarded after the completion of the first level played.-hโ Display a usage message and short help screen.-i NUMโ Increment the number of robots on the playing field byNUMafter each level is completed. Setting this to anything less than the default (10) takes you out of contention for a place in the score file.-jโ Jump: when you run, don't show any intermediate positions. This is useful on slow terminals.-r [SECS]โ Play in real time, which means that the robots advance after a certain period of time (default:3seconds) whether you've moved or not. Takes an optional delay arguments (in seconds).-sโ Don't play, just show the score file.-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.--manualโ Show the manual page via perldoc.--versionโ Show the robots version number.
๐ซถ AUTHOR ๐ซถ
John C. Siracusa (siracusa@mindspring.com)
๐ FILES ๐
/var/games/robots_roll โ the score file
๐ BUGS ๐
Curses.pm doesn't support the tstp() function, so I'm trying to handle that signal myself, with varying degrees of success. This is my first program of any kind using curses, so I'm probably not doing things very efficiently. The logic is somewhat spaghetti-like, but not much worse than the original C version. Hey, at least there are no gotos... ngl, that last part is a flex. โจ
๐ COPYRIGHT ๐
Copyright(c) 1999 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
๐ that's the whole page, bestie โ brought to you by perl v5.42.2, dated 2026-02-15, and this is the ROBOTS(1) manual. periodt. ๐
๐ฆ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 ยท GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms