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 thewishtcl/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 yourwishis living somewhere else ๐ฆ
๐ FILES ๐
/usr/bin/wishโ Default location ofwishtcl/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 ๐๐๐
๐ฆ where this page comes from
- debian bookworm: xchain 1.0.1-10 ยท GPL-2.0-or-later
- debian trixie: xchain 1.0.1-12 ยท GPL-2.0-or-later
- ubuntu jammy: xchain 1.0.1-10 ยท GPL-2.0-or-later
- ubuntu noble: xchain 1.0.1-11 ยท GPL-2.0-or-later
- ubuntu questing: xchain 1.0.1-12
- ubuntu resolute: xchain 1.0.1-12build1 ยท GPL-2.0-or-later
- ubuntu stonking: xchain 1.0.1-12build1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms