The engine toggle off/on feature allows the player to turn the Stockfish engine on or off depending on his desire. However, after turning the engine off, then on again, the player still needs to play one extra move before the engine can play again regardless of which turn it is.
Despite the label, this is more of an enhancement feature than a bug report.
I caught one visual bug. I haven't attached any photo, but I record the steps to reproduce the error.
category: visual issue
severity: low
Steps to reproduce:
Open hosted "Web GUI For Stockfish Chess" app
Click the Engine toggle button ( switch "player" option )
Move any figure in any direction
Click the "take back" button
Actual result:
The "Take back" button background is still disabled after moving any figure. The user has switched the engine toggle button to "player" ( off setting). If user click the "Take back" he can still undo any move.
Expected result:
When user click to move any figure the take out button change background from off (dark grey) to on (light grey)
On mouse-enabled devices (Desktop PCs), the only way to move the pieces is by dragging and dropping. It would be a great improvement to add "clicking and pointing" as an alternative option.
Hello, another proposed change. But as I have already openned a pull request, I recommend you to do it in a clean master branch, since the other changes are not accepted yet.
The change is in file js/board-actions-mobile.js line 51:
Add this line, before setTimeout:
updateEngineSkill();
The "caustique" chessboard is not rotating/flipping on touch devices (tablets and smartphones). This affects the "flip" and the "switch sides" buttons.
A great addition to this web GUI would be a visual responsive evaluation meter to show the player what is the engine's evaluation of the current position. An example of such an evaluation meter can be found in the second example of the "other-implementations" folder of this repository.
Taking back a move after a checkmate, stalemate, or a draw is important for absolute beginners since sometimes their game ends without having the ability to "takeback" and change its outcome.
The takeback button after the game ends would only navigate you to the past move rather than actually allowing you to play a different one. A player should be allowed to fully takeback a move to play another one even the game has ended.
The take back button blinks when the user moves to any position of any figure.
it is just a second but in my opinion it distract user from game. On the other hand user get attention on the button fast. I think it is not the bug, but it is designed to do this by giving user the information. for instance it cannot undo a move while the computer is making a move. I suggest to disable this blinking . If user click to player vs player option it has no purpose.
category: usability issue
Steps to reproduce:
Open hosted "Web GUI For Stockfish Chess" app
Move any figure in any direction
Click the Engine toggle button ( switch "player" option )
@LabinatorSolutions
Hi, I have found solution for the issue.
In the file "chessboard-caustique-min.js", search $(this).context.id, it is trying to get the id of the clicked piece.
It is using "context" but context is depreciated in JQuery version 3.0 and onward.
See https://api.jquery.com/context/
So now it's not able to get id of the clicked piece.
Solution is that simply replace $(this).context.id with this.id or $(this).attr("id")
I am new to GitHub. Please someone update the chessboard-caustique-min.js as i suggested.
If you win a match with White or Black on a touch-based device, the checkmate message does not get displayed but instead, you get only a "check" message. The engine though stops analyzing and you would be able to read the message if you "switch" the board.
How to test or replicate this bug?
Open the GUI using any touch-based device like your smartphone or tablet.
Tune the engine against level 1 to win easily. If you are a chess beginner, use the "hint" button as much as you can to win. Another faster way would be to tune the engine at the hardest level, make yourself lose fast then "switch" the board before checkmate so that you can deliver it yourself.
History not changing well in mobile. When I try to click in history, the history play doesn't appears well in Mobile. In Desktop it's working well. I recomment this.
In file js/board-init.js, line 62, comment loadBoard:
$('#game-turns-history li span').off().click(function() {
var turnN = parseInt($(this).attr('turn'));
console.log('History: show turn ' + $(this).attr('turn'));
moves = JSON.parse(localStorage.getItem('boardHistory'));
console.log(moves[turnN-1]);
//loadBoard(moves[turnN-1], true);
});
The user can not start a new game with the black pieces if he/she is on touch devices (tablets and smartphones). The only way for the computer to play as White is if the user has clicked the "Switch Sides" button.
The engine toggle (on/off) is currently only working on non-touch based devices. The app loads a different chessboard for touch-based devices which this feature has not yet been implemented on.