qwerty084 / vue3-chessboard

Vue 3 chessboard component, built with lichess chessground and chess.js
https://qwerty084.github.io/vue3-chessboard-docs/
GNU General Public License v3.0
70 stars 17 forks source link

How to add stockfish.js AI #229

Closed zafarich closed 11 months ago

zafarich commented 12 months ago

I add vue3-chessboard. Component works correctly. But I need to add stockfish AI

qwerty084 commented 12 months ago

Hey, you need to add stockfish.js for example to your project. Then read the engine output and use drawMove and/or move method from the api to indicate the best move. I will add an example to the documentation, probably this weekend.

zafarich commented 12 months ago

Thanks bro. It would be great if you could show an example of how to use it. For an example that selects game levels

zafarich commented 12 months ago

If you add an example, write it here. please

qwerty084 commented 11 months ago

Thanks bro. It would be great if you could show an example of how to use it. For an example that selects game levels

Not sure what you mean by game levels?

My idea was to explain the general usage and add an example where you play vs Stockfish.

zafarich commented 11 months ago

It is true. I need to add an example where you play vs Stockfish

qwerty084 commented 11 months ago

Hi, the documentation for uci engines (stockfish) is almost ready. I will finish it tomorrow. Here is the current state maybe it can help you, but be careful its wip... https://github.com/qwerty084/vue3-chessboard-docs/blob/main/src/stockfish.md

qwerty084 commented 11 months ago

New documentation is now live. You can find the stockfish example here: https://qwerty084.github.io/vue3-chessboard-docs/stockfish.html

larskuerten commented 3 months ago

The Engine.js has public and private modifiers The css is missing in the Vue component

Fixing this it works as expected