GREED(6)

πŸ’– GREED(6) πŸ’–

okay bestie, sit down, we're playing greed β€” the section 6 game, the one where you literally just eat the whole screen until you can't move anymore. no cap. let's go πŸ¦‹


✨ NAME ✨

greed β€” eat a game field until you run out of moves 🍽️


✨ SYNOPSIS ✨

greed [-s] [-w width] [-h height] [-f] [-p] [-r seed]

✨ DESCRIPTION ✨

so the whole point of Greed (main character energy fr) is to erase as much of the screen as you possibly can by moving around in a grid of numbers. that's it. that's the game. πŸ’…

to move your cursor, just use your arrow keys, or the hjklyubn keys, or your numeric keypad (with Num Lock on). your location is signified by the @ symbol β€” that's you, bestie, you're the @ πŸŽ€

here's the diagram showing how the basic movement keys work:

    y k u  7 8 9
     \|/    \|/
    h-+-l  4-+-6
     /|\    /|\
    b j n  1 2 3

when you move in a direction, you erase N number of grid squares in that direction, where N is the first number in that direction. your score reflects the total number of squares eaten. obsessed tbh 🌸

Greed will not let you make a move that would have placed you off the grid or over a previously eaten square. literally refused. πŸ™… if no valid moves exist, your game ends. periodt.

other Greed commands you need to know:

  • Ctrl+L to redraw the screen πŸ”„
  • p to toggle the highlighting of the possible moves ✨
  • q to quit πŸ‘‹

✨ OPTIONS ✨

  • -w width β€” sets the width of the board πŸ“
  • -h height β€” sets the height of the board πŸ“
  • -f β€” sizes the board to fit your terminal window πŸͺŸ
  • -p β€” displays all your next possible moves with a reverse-video highlight 🌈 (during the game, p toggles this feature on and off)
  • -r seed β€” sets the random seed 🎲 (useful for reproducible games, iykyk)
  • -s β€” output the high score file πŸ‘‘

✨ ENVIRONMENT ✨

the environment variable GREEDOPTS can override the default color set, and it gets parsed as a string of the form:

<c1><c2><c3><c4><c5><c6><c7><c8><c9>[:[p]]

where <cn> is a character describing the color for digit n. the color letters are read as follows:

  • b = blue
  • g = green
  • c = cyan
  • r = red
  • m = magenta
  • y = yellow
  • w = white

also, capitalizing a letter turns on the A_BOLD attribute for that letter. bold AND colorful, we love to see it πŸ’…

if the string ends with a trailing :, the letters following are taken as game options. at present, only p (equivalent to an initial p command) is defined.


✨ FILES ✨

  • /usr/lib/games/greed.hs β€” default location of Greed high scores πŸ‘‘
  • ~/.greedscores β€” where they're put if the default location cannot be written to 🏠

✨ AUTHORS == ORIGINALLY WRITTEN ✨

written by Matt Day. maintained by esr@snark.thyrsus.com. see ESR's home page at http://www.catb.org/~esr/ for updates and other resources 🫢


✨ BUGS ✨

this really ought to be an X game, but that would have been too much like work πŸ˜­πŸ’€


so that's the whole page, bestie πŸŽ€ this is GREED(6) from 2026-05-21 β€” go eat the grid, no cap πŸ’–βœ¨

πŸ“¦ where this page comes from