This chapter describes how to run @gnubg{}, and how to end it when you are finished.
Start GNU Backgammon by running the program gnubg. Once started, it will process commands from the terminal.
You can also instruct @gnubg{} to read an existing game or match from a file, to play or analyse. To read from filename, specify gnubg filename.
@gnubg{} will give you a short summary of how to invoke it if given the option @option{--help} (@option{-h} for short), and report its version with @option{--version} (@option{-v}).
GNU Backgammon will normally use a graphical board window if a window system is available. To prevent this behaviour and use standard terminal output instead, you can specify the @option{--tty} option (which can be abbreviated to @option{-t}).
By default, @gnubg{} will attempt to load pre-trained neural net weights; if you have no weights or wish to train a net from scratch, you can supply the @option{--no-weights} (@option{-n}) option, and new weights will be randomly generated.
FIXME the previous command is out of date; --no-weights is now --new-weights.
FIXME document --no-bearoff, --no-rc, --datadir and --window-system-only options.
exit
quit
@gnubg{} will also exit upon end-of-file; you can therefore exit by typing an end-of-file character (usually C-d, i.e. hold the CTRL key and press D).
If you send an interrupt sequence (often by pressing C-c), the current @gnubg{} command (if any) will be terminated. This can be useful if you do not want to wait for a slow command to complete.
You can execute shell commands from @gnubg{} without leaving or suspending it.
![command]