xchain(6)

โœจ xchain โ€” Chain Reaction, Strategy game for 2-4 players โœจ

okay bestie, buckle UP because this is xchain(6) from the Games Manual and it's literally a whole strategy game hiding in your terminal ๐Ÿ’–


๐ŸŒธ SYNOPSIS ๐ŸŒธ

xchain [-v] [--version] [-h] [--help] [path to wish]

๐ŸŽ€ DESCRIPTION ๐ŸŽ€

๐Ÿ‘‘ Rules of the game

Chain Reaction is played on an 8 by 8 board. Players take turns to move. On each move, the player may select an empty square, or one they already own. Squares belonging to other players may not be chosen. If the square was unowned, it becomes the property of the player, and is given a value of 1. If the square was owned by the player, the value is incremented. ๐Ÿฆ‹

If the value of a square ever exceeds the maximum permitted of that square, it explodes ๐Ÿ’ฅ. Squares in the corner have a maximum of 1, squares touching an edge, but not on a corner have a maximum of 2, and squares in the interior have a maximum of 3. no cap, that's the whole map logic.

When a square explodes, it becomes unowned, and it's value is reset to 0. The 4 squares touching it become owned by the owner of the exploding square, and their values are incremented. If any of these are above their maximum, they explode, giving rise to the chain reaction. it's giving domino effect, it's giving main character energy โœจ

If, at the end of a move, any of the players have no squares, they are dead, and get no more turns. When there is only one person left, they are the winner. ๐Ÿ‘‘

๐ŸŽฎ Game options

On loading the game, a 2 player game with a blank board is loaded. To change this, edit the settings to suit, and click on "New Game". Clicking on this in the middle of a game will abandon it, and start a new one. ๐Ÿ™ˆ

To select the number of players, click on the numbered radio buttons. To the right of these are entry boxes to fill in player names, if desired. The background to these shows the colour of the players' squares. Names and colours are only updated when "New Game" is clicked on. To the right of these, are counters of the number of squares belonging to each player. โœจ

If a shorter game is desired, squares can be set for the players before the game starts. This can be up to 4 rows and columns, or a random placement. For 2 players, up to 32 squares each may be chosen. For 3 players, up to 21 each, and for 4 players, up to 16 each. math is mathing ๐Ÿงฎ

Whoever goes first has quite an advantage. To offset this, a random first person</> can be chosen. On clicking "New game", the status bar below the board shows who this will be. ๐Ÿ’…


๐Ÿ’… OPTIONS ๐Ÿ’…

  • -h, --help โ€” Show summary of options. your lil cheat sheet fr fr ๐Ÿซถ
  • -v, --version โ€” Show version of program. gotta know what era you're in ๐Ÿ’–
  • path to wish โ€” Chain Reaction requires the wish tcl/tk interpreter. By default it uses /usr/bin/wish (The default for Debian GNU/Linux, and most other Unix-like systems). Use this option to force a different location. lowkey essential if your wish is living somewhere else ๐Ÿฆ‹

๐ŸŒˆ FILES ๐ŸŒˆ

  • /usr/bin/wish โ€” Default location of wish tcl/tk interpreter. iconic home address tbh ๐Ÿ 

๐Ÿ’€ BUGS ๐Ÿ’€

Not guaranteed to be free of potential buffer overflows. Do not use setuid, or with greater privilege than the players using it.

bestie I am BEGGING you, do not run this as root or setuid, that's not the vibe, that's a security incident ๐Ÿšจ


โญ WISH LIST โญ

  • Network support.
  • A way to save game settings โ€” either environment variables, or a settings file.

manifesting these for the dev ๐Ÿ™โœจ


๐Ÿงš HISTORY ๐Ÿงš

First seen many years ago on the (as it was then) Acorn Archimedes. Original author unknown. Written for Unix by Alistair Cunningham <ac212@cam.ac.uk>

http://thor.cam.ac.uk/~ac212/xchain/


okay that's the whole page, and yes it's xchain(6) from the Games Manual โ€” go forth and explode some squares, you absolute queen ๐Ÿ‘‘๐ŸŽ€๐Ÿ’–