.\" Copyright (c) 2022 by Alejandro Colomar .\" 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