aclap-dev / joclyboard

Multiplatform 3D/2D desktop application for playing board games
Other
44 stars 20 forks source link

[International Draughts] GUI - Allow easiest user actions for mandatory capture and move #9

Closed IgorLeMasson closed 7 years ago

IgorLeMasson commented 7 years ago

When there is only a unique possible capture, the user interface could allow the movement just doing double-clicking on the piece that is "capturer" (square 31 on attached screenshots) or doing a double-click on the square where the piece will stay after whole capture movement (square 21 on attached screenshots).

capture_screen1

capture_screen2

The same issue happens for a selected piece which as a unique possible move.

mi-g commented 7 years ago

That should be the case, at least for International Draughts. Can you check in the view options, parameter Auto-complete moves ? If it is set, clicking the initial piece when there is no ambiguity should be enough to validate the move. Auto-complete moves should be on by default. Note that it is a single click, as double click does not match the underlying Web technology too well.

IgorLeMasson commented 7 years ago

Many thanks for your tip!

Auto-complete moves should be on by default.

I agree this change would be nice, currently its default value is off.

The Auto-complete moves works when double-click is done on selected piece to move (square 31 on given screenshots), but it does not works when the end square is double-clicked (square 21 on given screenshots).

mi-g commented 7 years ago

I checked the source code and autoComplete is true by default on International Draughts. Note that it's not easy to verify because this parameter uses the last value that has been set, so you need to remove the configuration file and restart JoclyBoard to see what the default is. Also it's always single click, and you indeed need to click on the piece to move, not the target position. I don't think we need both mechanisms.

IgorLeMasson commented 7 years ago

I checked the source code and autoComplete is true by default on International Draughts. Note that it's not easy to verify because this parameter uses the last value that has been set, so you need to remove the configuration file and restart JoclyBoard to see what the default is.

I'm not sure but I guess after install JoclyBoard the autoComplete option was disabled.

mi-g commented 7 years ago

You can try to quit the app, remove the config file and restart JoclyBoard. The config file location is described here

mi-g commented 7 years ago

As far as i can tell, the auto-complete feature works as expected.