Skip to content

request to be able to use other chess engines #11

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
H3X0M opened this issue Nov 15, 2023 · 12 comments
Open

request to be able to use other chess engines #11

H3X0M opened this issue Nov 15, 2023 · 12 comments

Comments

@H3X0M
Copy link

H3X0M commented Nov 15, 2023

Please make it so that it can use other chess engines

@Hakorr
Copy link
Collaborator

Hakorr commented Nov 15, 2023

There aren't really any other engines that have been ported to JavaScript that work as good as Stockfish.

@H3X0M
Copy link
Author

H3X0M commented Nov 25, 2023

1 similar comment
@H3X0M
Copy link
Author

H3X0M commented Nov 25, 2023

@kusayuzayushko
Copy link

kusayuzayushko commented Nov 30, 2023

Please consider adding lc0 as an option. https://github.com/frpays/lc0-js
There are nets for lc0 that can emulate human play on various elo-levels from 1200 to 1900
https://github.com/CSSLab/maia-chess
There are also fun, super aggressive nets that are small and don't require much computation https://github.com/dkappe/leela-chess-weights/wiki/Bad-Gyal
And many more https://lczero.org/dev/wiki/best-nets-for-lc0/

@Hakorr
Copy link
Collaborator

Hakorr commented Dec 1, 2023

Please consider adding lc0 as an option.

I had implemented that, and it worked poorly and slowly. This could be my fault, of course, but I doubt it.

Furthermore, I don't think the "best nets for Lc0" work for that JS port of Lc0, since it's such an old version (5 years old). The latest version of Lc0 would work well without a doubt, and I'd love to include it, but there are no JS ports of it as far as I know. I've come to the conclusion that I'd need to port it myself to make it worthwhile. I've never ported anything C/C++ to JS and would need to learn how to do that.

@kusayuzayushko
Copy link

Is there a way to run ACAS on localhost and add local engine like lc0 there? I played around with SF and it's really not much of a use compared to lc0. Let me explain. SF play is weird and it gets even nonesensical on low elo settings as it intentionally makes blunders to limit its strength. This is terrible thing to have for a chess assistant. And overall SF play doesn't make sense for both players, it ruins your playstile and it's obvious for everyone who sees it.
Carefully adjusted lc0 is indistinguishable from human and if you use it as a co-pylot, it actually helps to improve positional play a lot. I used to run both and it's absolutely clear that using SF for a chess assistant is a dead end.
Please let's think on what can be done?

@Hakorr
Copy link
Collaborator

Hakorr commented Jan 2, 2024

Please let's think on what can be done?

That's possible locally for sure.

@kusayuzayushko
Copy link

Please let's think on what can be done?

That's possible locally for sure.

Would be awesome to have an ability to add UCI complained chess engine and an ability to select between them with a local build with some basic UI. Maybe even run multiple engines at the same time with different colors for arrows? Please, consider it at least for future updates?

@beansofhell
Copy link

Perhaps we can use CuteFish (in order to create some kind of api to UCI)

@cenunix
Copy link

cenunix commented Feb 27, 2025

yeah @Hakorr would it be very complicated to add lc0 for localhosting? i see you made some adjustments to zerofish but how many changes do you think would be needed to actually run lc0?

@Hakorr
Copy link
Collaborator

Hakorr commented Feb 27, 2025

would it be very complicated to add lc0 for localhosting? i see you made some adjustments to zerofish but how many changes do you think would be needed to actually run lc0?

To run the latest model it would probably be easier to run it locally than attempt to port it to WASM. As far as I know it's not tremendously hard to make A.C.A.S listen for some localhost service, just haven't implemented it as I have figured those wanting to use their own engines and mess around locally can probably find another project like A.C.A.S but one that is external and meant for more advanced users.

@cenunix
Copy link

cenunix commented Feb 27, 2025

Ah, I haven't found anything that's similar yet in terms of A.C.A.S and its connection to websites. I think having engines running locally and connecting to A.C.A.S as you described would be great though

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants