xgammon(6)
๐ xgammon(6) ๐
okay so bestie, this is the xgammon(6) manual page, she's from the Game section, and she is a lot โ but in the best way. grab a snack, we're doing this together ๐ฒโจ
โจ NAME โจ
xgammon โ an X11 backgammon for linux. that's the whole elevator pitch. iconic. ๐
๐ SYNOPSIS ๐
xgammon [-otherdisplay <displayname>]
[-boardgeometry <geometry_string>]
[-boardcolor <color>] [-bc <color>]
[-darkcolor <color>] [-dc <color>]
[-lightcolor <color>] [-lc <color>]
[-barcolor <color>] [-b <color>]
[-whitecolor <color>] [-blackcolor <color>]
[-doublerfont <font>] [-smallFont <font>]
[-doubling +doubling]
[-watchmove +wachmove]
[-stonesteps <pixel>]
[-delaytime <tsec>]
[-buttonmove +buttonmove]
[-bm +bm]
[-autoplay +autoplay]
[-rollout +rollout]
[-nr <number_of_rollouts>]
[-f <filename>]
[-h (black|white)]
[-gamekind -g (hvc|cvc|hvh)]
[-winat <points>]
[-? -help]
๐ฆ DESCRIPTION ๐ฆ
xgammon, a backgammon program for linux.
that's it. that's the description. she's mysterious, she's serving minimalism, we respect it ๐
๐ฅ OPTIONS ๐ฅ
xgammon recognizes the following options โ and girl, there are so many, so let's lock in:
-otherdisplay <displayname>โ play a game with a player on some remote X-Terminal. a secondxgammonwill be displayed there. (example:xgammon -otherdisplay somehost:0.0)-boardgeometry <geometry_string>โ defines the size of the board widget.Geometry_stringmust be an XtGeometry-string (example:450x350). by default the relation of width/height of the board is 12/15.<Geometry_string>is rounded to this relation.-boardcolor,-bc <color>โ sets the background color of the board.-darkcolor,-dc <color>โ sets the color of dark points.-lightcolor,-lc <color>โ sets the color of light points.-barcolor,-b <color>โ sets the color of the bar and the left and right edge of the board.-whitecolor,-blackcolor <color>โ sets the color of the stones.-humancolor,-h (black|white)โ sets the color of the human player's stones. implies a game betweenxgammonand a human being. (the default.)-doublerfont <font>,-smallFont <font>โ these are the fonts used for the doubler dice. only one large and one small font can be selected now, not a font family yet.-gamekind,-g (cvc|hvc|hvh)โ sets the game.cvcmeans computer versus computer,hvcmeans human versus computer,hvhmeans human versus human,
-winat <points>โ play a tournament up to<points>points.-watchmove,+watchmoveโxgammonwill "move" it's stones.-stonesteps <pixel>โ you can speed up the stones by giving this resource a greater value. implieswatchmoveis settrue.-delaytime (tseconds)โ sets a delaytime in tenth of a second, which gives you a closer look on the computer moves. implieswatchmoveis setfalse.-buttonmove,-mb,+buttonmove,+bmโ ifbuttonmoveis true, you can set the stones simply by pressing the button. the left button sets the lower dice value, the right one the other. in case of equation both buttons can be used.-autoplay,+autoplayโXgammonwill set your stones, if there is only one possible move.-doubling,+doublingโ sets the use of the doubler dice. since the doubling ofxgammonis still poor, you might wish to turn it off.-rollout,+rolloutโXgammonwill rollout a position. this rank is read from a file. (see-foption below.) this file is automatically generated from the current game, if not specified otherwise.-nr <number_of_rollouts>โ sets the number of rollouts.-f <filename>โ specifies the positionfile you want to use. the default isxgammon.save.-database <filename>โ specifies the endgame database file to use.-?,-helpโ the classic "help me" flag ๐ซถ
๐ฎ HOW TO PLAY ๐ฎ
when you start the game, xgammon will immediately roll and start a game. when it's your turn:
- Move pointer to a stone.
- Press left button.
- Carry stone to the chosen point.
- Release button.
that's it. ๐ซถ
to speed this a little up, try the +buttonmove option or .buttonmove resource. (see RESOURCES or OPTIONS.)
๐ DOUBLING ๐
when you're allowed to double, xgammon draws empty dice. you can double by a single click on the doubler dice or press the d key. some simple popups manage the rest.
this is only possible when the doubling resource is true. (see RESOURCES or OPTIONS.)
๐ GAME OPTIONS ๐
there are three different kind of games. human versus human, computer versus human, and computer versus computer. the last one isn't very meaningful yet, and more or less for reasons of development. ๐
๐ MENU OPTIONS ๐
[edit position]
if you click on this menu entry, xgammon will first break the current game or tournament and draw an empty board. then you can enter a position to your liking. the right button gives you a black stone, the left button a white stone. the middle button removes a stone. if there are 15 stones of each color on the board xgammon will automatically ask you for the dice and doubler etc. in a popup. in case of stones already beared off, you can break the setting of stones by hitting any key. choose ok button and the game continues. you can as well rollout or maildump this position. (for this purpose set the right gamekind first.)
[computer finish]
if the game is almost done and you are bored with rolling it down, you can click this option and the computer will finish the game. at the end of the game the human player gets control again. in this mode the computer will not double.
[rollout]
to rollout a position use this option. the number of games rolled out are set with the numrollouts resource or the -nr command line option. (see RESOURCES or OPTIONS.) invoked from the game xgammon will fork itself and start a second, third ... process, so you can continue playing. there will be a popup to inform you about the current state and the result. this popup will vanish with any button or key event inside. the result of the rollout is additionally saved in a xgammon.rollout.<num>.save file. it is more appropriate to use this feature via commandline options. (see ROLLOUT below.)
[mail dump]
saves the current or an edited position in the format used by FIBS or in rec.games.backgammon newsgroup in a file named xgammon.maildump.
๐ KEYS ๐
the board reacts on the following keys:
q,<Ctrl>cor<Ctrl>dquit the game.uundoes the current move move.rrestarts the game (tournament).s,S,landLsave or load a position or game.
you may set these keys in your .Xdefaults file.
๐ TEXT WINDOWS ๐
there are two text windows in the XGammon-Buttons window, where the current tournament, moves, doubler actions etc. are printed. you can also add comments there. the text in the lower window will be saved if you invoke any save command.
๐ง EDIT A POSITION ๐ง
you may edit a position, and play out from there, by pressing the edit position menu entry in the game menu. black stones are set with left mouse button, white stones with the right one. if you misplace a stone you can remove it with the middle button. there will be a popup asking for additional information, if you have entered 15 black and 15 white stones, or pressed any key to stop placing stones.
๐ธ MAIL DUMP A POSITION ๐ธ
clicking the menu entry mail dump xgammon will save the current position in a file named xgammon.maildump. the occuring format is that used most often in rec.games.backgammon news group. so it should be very easy to edit a position, add some comments and then mail or post it.
โญ ROLLOUTS โญ
even if there is the menu option rollout, this is more or less a command line option. an example would be
xgammon -rollout -nr 1000 -doubling -f rollout.save
which would rollout a 1000 times the position saved in rollout.save. it should be rather easy to modify the save file slightly, and make several rollouts of these positions. all results will be appended to these files. if you use the menu entry rollout, it is most important to set an appropriate numrollouts resource in your .Xdefault file, because xgammon will not ask you for this value, when starting rollouts.
...and that's not even the whole page, bestie. part 2 is loading, don't go anywhere ๐ฆ
โจ X RESOURCES โจ
ok so bestie, you can also ~customize~ how everything looks and behaves by setting X resources. it's giving personalization era ๐ here's the full menu:
.otherdisplay: <displayname>โ play a game with a player on some remote X-Terminal. A secondxgammonwill be displayed over there. (example:xgammon -otherdisplay somehost:0.0).boardColor: <color>โ picks the background color of the board..lightColor: <color>โ picks the background color of the lighter points..darkColor: <color>โ picks the background color of the darker points..barColor: <color>โ picks the color of the bar and the board borders..whiteColor: <color>โ picks the color of the "white" stones..blackColor: <color>โ picks the color of the "black" stones..doublerFont: <font>,.smallFont: <font>โ defines the fonts used for doubler dice. The doubler dice size depends on the board size. If the board size is too small, thesmallFontwill be used.*board.cursor: <cursor>โ sets the cursor to be used for the board widget(s)..humanStones: <black|white>โ if you want to play the white stones set this resource to"white". ("Black"is Default.).watchmove: <true|false>โ if watchmove is true, you can see the stones "fly" when the computer moves. ๐ฆ.delaytime: <seconds>โ sets a delaytime in tenth of a second, which gives you a closer look on the computer moves. Implies watchmove is setfalse..stonesteps: <pixel>โ you can speed up the stones by giving this resource a greater value. Implies watchmove istrue..doubling: <true|false>โ sets the use of doubler dice. Since the doubling of the computer is still poor, you might wish to turn it off. ๐.buttonMove: <true|false>โ if buttonmove is true, you can play by simply pressing a button. The left button sets the lower dice value, the right one the other. On equation both buttons can be used..numrollouts: <number>โ specifies the number of rollouts from a given position, before adding the result to a position file. Any unsigned integer value should be all right..positionfile: <name>โ the file, wherexgammonshall save and load all informations to-and-fro.
๐ฉบ DIAGNOSTICS
Xgammon uses the function usleep() for delaytime. Usleep is not defined on some systems, bestie ๐ญ so this gets set instead:
#define usleep(a) sleep(a)
as a result of that, you can only delay seconds, not tseconds. lowkey tragic but it is what it is.
๐ BUGS
ok so real talk, the program is still in state of development, so there are certainly bugs. no cap. Xgammon will save the current position in a xgammon.sig_save file on some signals. please email this file to the authors โ it may help find the bugs. if you can generate a core dump, gzip, uuencode and mail it, which would also be very helpful. ๐ซถ
Otherdisplay:
Some popup resources and actions on .otherdisplay sometimes get lost. Black can set white stones and vv. (funny feature ?)
๐ AUTHORS
Lambert Klasen and Detlef Steuer
email:
klasen@asterix.uni-muenster.de steuer@amadeus.statistik.uni-dortmund.de
and that's the whole page bestie, you ate it ๐ this one's from the Game manual section, dated 01Aug1995, and it's the xgammon(6) page โ go forth and slay some backgammon ๐ธ๐โจ
๐ฆ where this page comes from
- debian bookworm: xgammon 0.99.1128-8
- debian trixie: xgammon 0.99.1128-10
- ubuntu jammy: xgammon 0.99.1128-5
- ubuntu noble: xgammon 0.99.1128-8build2
- ubuntu resolute: xgammon 0.99.1128-10
- ubuntu stonking: xgammon 0.99.1128-12 ยท GPL
- Copyright (c) 1995 Lambert Klasen Detlef Steuer
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms