summaryrefslogtreecommitdiffstats
path: root/share/man/man6/chess-init.6
blob: 31ccaf2827a273d83f83d36bce01df137bff5074 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.\" Copyright (c) 2022 by Alejandro Colomar <alx.manpages@gmail.com>
.\" SPDX-License-Identifier: GPL-2.0
.\"
.TH CHESS-INIT 6 2022-01-23 chessutils "Games Manual"
.SH NAME
chess\-init \- initialize a chess game
.SH SYNOPSIS
.B chess\-init
.SH DESCRIPTION
.MR chess\-init 6
prints an initial chess game to standard output.
.PP
Pieces are represented by the following characters:
.TP
.BR B ", " b
Bishop.
.TP
.BR K ", " k
King.
.TP
.BR N ", " n
Knight.
.TP
.BR P ", " p
Pawn.
.TP
.BR Q ", " q
Queen.
.TP
.BR R ", " r
Rook.
.PP
The board is printed in a standard orientation,
such that cell
.I a1
is bottom left,
and
.I h1
is bottom right.
.PP
See
.MR chessboard\-empty 6
for a description of the board.
.SH EXIT STATUS
On success, the program exits with a status of
.BR EXIT_SUCCESS .
On error, one of the following values can be returned.
.SH ERRORS
.TP
.B EX_IOERR
A write to standard output failed.
.PP
(See
.MR sysexits.h 0 .)
.SH EXAMPLES
.EX
$ chess\-init
RNBQKBNR
PPPPPPPP
\- \- \- \- 
\& \- \- \- \-
\- \- \- \- 
\& \- \- \- \-
pppppppp
rnbqkbnr
.EE
.SH COPYRIGHT
Copyright (c) 2022 by
.MT alx.manpages@gmail.com
Alejandro Colomar
.ME .
.PP
SPDX-License-Identifier:
.B GPL-2.0
.SH SEE ALSO
.MR chessboard\-empty 6 ,
.MR chess\-lsmv 6 ,
.MR chess\-mv 6 ,
.MR chessutils 7