LinuxCommandLibrary

backgammon

Text-based backgammon board game

TLDR

Start backgammon game
$ backgammon
copy
Start as red player (skip instructions)
$ backgammon -r
copy
Start a two-player game
$ backgammon -b
copy
Restore a saved game
$ backgammon -s [savefile]
copy

SYNOPSIS

backgammon [-] [-nrwb] [-pr] [-pw] [-pb] [-t term] [-s file]

DESCRIPTION

backgammon is a classic text-based backgammon game from the BSD games collection. It provides a text-based interface for playing backgammon against the computer or another player. Players move checkers based on dice rolls, attempting to bear off all pieces before their opponent.
The companion program teachgammon teaches the rules and strategy of backgammon.

PARAMETERS

-n

Don't ask for rules or instructions
-r
Player is red (implies -n)
-w
Player is white (implies -n)
-b
Two-player mode, red and white (implies -n)
-pr
Print board before red's turn
-pw
Print board before white's turn
-pb
Print board before both players' turns
-t term
Specify terminal type
-s file
Restore a saved game from file

CONTROLS

space / return

Roll dice
d
Double
p
Print board
q
Quit game
s
Save game
Moves are expressed as source-destination (e.g., 3-5).

CAVEATS

Text-based interface only. Part of the bsd-games package on most systems.

HISTORY

backgammon was written by Alan Char in 1980 at UC Berkeley and has been part of BSD games distributions since then.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard