From 47761953d6a1a4456d808c6f7a66fa5d3a029879 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 5 Jul 2022 22:07:22 +0200 Subject: [PATCH] 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. --- winboard/jaws.c | 20 ++++++++++++++++++++ winboard/winboard.c | 4 ++++ 2 files changed, 24 insertions(+), 0 deletions(-) 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