From: H.G.Muller Date: Tue, 5 Jul 2022 20:07:22 +0000 (+0200) Subject: Allow accessible version to recite pieces by type X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=47761953d6a1a4456d808c6f7a66fa5d3a029879;p=xboard.git Allow accessible version to recite pieces by type The move type-in can be used to enter a piece ID. In this case the accessible version will read out on which squares pieces of that colored type can be found. --- diff --git a/winboard/jaws.c b/winboard/jaws.c index a6c1927..42c203f 100644 --- a/winboard/jaws.c +++ b/winboard/jaws.c @@ -842,6 +842,26 @@ SayPieces(ChessSquare p) } VOID +SayPieceType(char id) +{ + int f, r, nr = 0; + char buf[MSG_SIZ]; + ChessSquare piece = CharToPiece(id); + if(piece == EmptySquare) { + SayString(T_("That is not a valid piece"), FALSE); + return; + } + for(r=0; r