XQUARTO(1)

πŸ“¦ version 2.5, in opensuse-leap 16.0

XQUARTO(1) πŸ’–

okay bestie, welcome to xquarto β€” straight outta the General Commands Manual, and yes it is literally the X version of a simple but tricky board game. buckle up, we’re doing board-game Unix lore today πŸŽ€

✨ NAME ✨

xquarto β€” X version of a simple but tricky board game

πŸŽ€ RULES πŸŽ€

The board is made up of 4x4 squares and 16 pieces. Each piece carries 4 properties, and they are:

  • Black or brown
  • Horizontal or vertical
  • Solid or hollow
  • Round or square

This makes a total of 16 possible pieces, and there’s exactly one piece of each type (so each piece can be represented by a binary number of length 4). iconic little binary babies fr fr πŸ’…

Initially, the board is empty and it is successively filled with pieces. The game is over when a row, a column or a diagonal has four pieces carrying a common property in it, e.g. four black (brown) pieces, four square (round) pieces, four solid (hollow) pieces, four horizontal (vertical) pieces. In the original quarto rules, the player who is the first to complete a row, column or diagonal as described above wins. This is the implicit mode under which Xquarto runs. A variant of the game (tic rules) consists rather of avoiding alignments, i.e. the player who is forced to complete an alignment loses.

The game is a two-player game. Player 1 chooses one of the 16 pieces. Player 2 then places this piece on one of the 16 squares of the board and chooses a piece out of the remaining 15 pieces which he gives to player 1, who places this piece on one of the remaining 15 squares on the board, etc...

Xquarto supports three different player combinations: human vs computer, computer vs human and human vs human (possibly through the local network in the latter case). The default combination is human vs computer, i.e. the human player starts the game against the computer. This can be changed by clicking on the "Actions" menu (see below for more details).

There are two menus, the 'Actions' Menu and the 'Options' Menu, and two additional buttons: a 'Hint' button letting the computer produce a suggestion, and an 'Undo' button allowing to take a piece back to its previous position.

πŸ¦‹ Actions Menu πŸ¦‹

  • New game: Human vs computer β€” Starts a new game of xquarto, ending the previous one abruptly and letting the human start.
  • New game: Computer vs human β€” Identical to previous option, except that the computer will begin the next game.
  • New game: Human vs human β€” A new game is started with two human players, named as Player 1 and Player 2. The computer doesn't play any role, except for deciding which of the two players is the winner.
  • New game: Network game β€” Opens a popup from which you can specify a host to connect with, e.g. <othermachine>:0.0. You can then play with a human opponent working on <othermachine>, through the local network. The opponent must have set to export widgets to <othermachine> (just pass a phone call or an e-mail to tell him!). Again, the computer doesn't play any role, except for deciding which of the two players is the winner - and optionally managing mail between players or giving hints...
  • Save game β€” Saves the actual state game as .xquarto_save in the user's home directory.
  • Load game β€” Loads a previously saved game .xquarto_save from the user's home directory.
  • Help β€” Displays a short explanation of Quarto and Tic rules.
  • Quit β€” Exits from xquarto.

🌸 Options Menu 🌸

  • Quarto rules β€” Use quarto rules (who gets first an alignment wins).
  • Tic rules β€” Use tic rules (who is forced to realize an alignment loses).
  • Level trivial β€” The easiest level. The computer only tries to place the selected piece in a way that it does not lose immediately, and chooses any free piece to give away, i.e. it thinks only one move ahead.
  • Level easy β€” The computer thinks two moves ahead.
  • Level medium β€” The computer thinks three moves ahead.
  • Level hard β€” The computer thinks four moves ahead.
  • Level very hard β€” The computer thinks five moves ahead.
  • Level don't try β€” The computer thinks six moves ahead. This can be quite slow (and hard).
  • Game Type: normal β€” In addition to the rows and columns, the two main diagonals are dangerous (can make the game end).
  • Game Type: nodiags β€” Only the rows and columns are dangerous.
  • Game Type: torus β€” All 8 "diagonals" are dangerous. This corresponds to playing on a torus.

πŸŽ€ Undo Button πŸŽ€

Cancels the last action made by human player(s).

πŸ’€ BUGS πŸ’€

Probably plenty. Report any you find to mjo@math.kth.se

πŸ‘‘ AUTHOR πŸ‘‘

Mattias Jonsson, Dept of Mathematics, Royal Institute of Technology, S-100 44 Stockholm, Sweden.

email: mjo@math.kth.se, URL: http://www.math.kth.se/~mjo


okay that’s the whole XQUARTO(1) page, bestie πŸ’– β€” source/version X11, footer credit Mattias Jonsson, KTH, and no date is shown on this footer, so consider this your timestamp-free little farewell πŸŽ€βœ¨

πŸ“¦ where this page comes from