LabinatorSolutions / stockfish-chess-web-gui

Responsive chess web GUI to play against the Stockfish 16 chess engine. Multiple web GUI implementations have also been included.
https://labinatorsolutions.github.io/stockfish-chess-web-gui/
GNU Affero General Public License v3.0
57 stars 37 forks source link

Fix for "Show Hint" button on mobile #5

Closed ipetak closed 4 years ago

ipetak commented 4 years ago

Since you're using two different chessboard projects where one marks fields on the board using codes (a1-h8) the other using numbers (1-64) I've made a small function to calculate the difference between the two. The "Show Hint" button now works just like on desktop.