Chess engine with GUI in under ~250 lines of JS code

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

User avatar
maksimKorzh
Posts: 783
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Chess engine with GUI in under ~250 lines of JS code

Post by maksimKorzh »

User avatar
towforce
Posts: 13406
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK
Full name: Graham Laight

Re: Chess engine with GUI in under ~250 lines of JS code

Post by towforce »

Very good!

* can the pieces be clearer? Maybe loaded as images?

* I know the idea is to be a tiny program - but it would be lovely to have a way to save the game as a PGN
Human chess is partly about tactics and strategy, but mostly about memory
User avatar
maksimKorzh
Posts: 783
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Re: Chess engine with GUI in under ~250 lines of JS code

Post by maksimKorzh »

Thank you, I think this is closer to what you are looking for:
https://github.com/maksimKorzh/wukongJS
User avatar
towforce
Posts: 13406
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK
Full name: Graham Laight

Re: Chess engine with GUI in under ~250 lines of JS code

Post by towforce »

maksimKorzh wrote: ↑Sat Oct 31, 2026 1:05 am Thank you, I think this is closer to what you are looking for:
https://github.com/maksimKorzh/wukongJS
Perfect! Direct link: https://maksimkorzh.github.io/wukongJS/wukong.html

The first game at the default (max) level ended in an incorrect outcome, so I won't post the pgn here. :)
Human chess is partly about tactics and strategy, but mostly about memory
User avatar
maksimKorzh
Posts: 783
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Re: Chess engine with GUI in under ~250 lines of JS code

Post by maksimKorzh »

towforce wrote: ↑Fri Nov 06, 2026 3:39 pm
maksimKorzh wrote: ↑Sat Oct 31, 2026 1:05 am Thank you, I think this is closer to what you are looking for:
https://github.com/maksimKorzh/wukongJS
Perfect! Direct link: https://maksimkorzh.github.io/wukongJS/wukong.html

The first game at the default (max) level ended in an incorrect outcome, so I won't post the pgn here. :)
First, this is the link to a completely different project, not the one the post is about.

Second, what do you mean by default max level? Default is 1 sec per move, max is 1 min

What do you min by wrong outcome?