You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To allow blind people to move pieces on a chessboard.
This feature is not that easy to do right. That's why we should start simple and improve later. If you know the subject, or are interested by it I'd be glad to get help. Come and join on discord to discuss it!
Implementation notes
Ideally, this should be done by a widget which should replace automatically GameBoardLayout if navigation by screen reader is detected in the current context.
final mediaQueryData = MediaQuery.of(context);
...
if (mediaQueryData.accessibleNavigation) {
return NonVisualBoard(...);
} else {
return GameBoardLayout(...);
}
List of commands that we should eventually support (not in the scope of this issue), for reference:
// play move should support SAN or UCI notation
// Example: e4, or e2 e4
// these commands are on lichess website
c: Read clocks.
l: Read last move.
o: Read name and rating of the opponent.
p: Read locations of a piece type. Example: p N, p k.
s: Read pieces on a rank or file. Example: s a, s 1.
abort: Abort game.
resign: Resign game.
draw: Offer or accept draw.
takeback: Offer or accept take back.
// extra commands needed for mobile since it does not have the virtual board
m: read possible moves for selected piece. Example: m e4
The text was updated successfully, but these errors were encountered:
Tentative plan for non-visual board:
Mimic a 2d physical board. Dragging over squares reads out the coordinate and any piece on the square. Releasing the finger over a square selects it. This is intended to match how dragging selects elements normally (https://blog.gskinner.com/archives/2022/09/flutter-crafting-a-great-experience-for-screen-readers.html).
Once a square is selected, drag again to select a second square. As you drag, the app will read out what that move would be, eg rook a2, rook a3, rook takes a4, rook a5. Once the second square is selected, the move is made or reported as invalid.
Normally a one finger swipe can go to the previous or next element. Ideally we should not block that behavior with the drag behavior.
Also will need a way to cancel the initial selection. Probably dragging out of the board or dragging to the original piece could read "cancel selection". And maybe tapping on the board should cancel too.
veloce
changed the title
Non visual game UI
Non visual board UI
Jan 10, 2024
I updated the description and issue title to focus first on a non visual board implementation (previously it was also considering the game aspect).
Once it is done we can move to non-visual game and puzzle UI.
A non visual board
To allow blind people to move pieces on a chessboard.
This feature is not that easy to do right. That's why we should start simple and improve later. If you know the subject, or are interested by it I'd be glad to get help. Come and join on discord to discuss it!
Implementation notes
Ideally, this should be done by a widget which should replace automatically
GameBoardLayout
if navigation by screen reader is detected in the current context.Here's lichess.org implementation as a reference:
List of commands that we should eventually support (not in the scope of this issue), for reference:
The text was updated successfully, but these errors were encountered: