Wukong Xiangqi - Chinese chess engine

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

Moderators: hgm, Rebel, chrisw

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

Wukong Xiangqi - Chinese chess engine

Post by maksimKorzh »

Hey what's up guys, Code Monkey King's here.
I've just released the very first Chinese chess engine in my life.
It was the most exciting chess programming experience I ever had.
It's written in javascript and has it's own web GUI to play with online.
It's intended for novice players to improve their skills. However it's not so
weak - I've manage to connect it to Xboard and play versus MaxQi by
H.G. Muller and Wukong seems to beat MaxQi - both engines hit around
the same depth but Wukong seems to have a better evaluation that
I've grabbed from open sources.

I'd like to thank Mr. Muller for 50+ post thread discussion of various aspects of Xiangqi.
Without his help and guadience I wouldn't get there where I am now.
There's a HIDDEN TRIBUTE to HGM in the game!

Play it now: https://maksimkorzh.github.io/wukong-xi ... angqi.html
Source code: https://github.com/maksimKorzh/wukong-xiangqi
Tech specs: https://github.com/maksimKorzh/wukong-x ... s/SPECS.MD
YouTube tutorial (17 videos):
games vs MaxQi: https://github.com/maksimKorzh/wukong-x ... e/main/pgn
open them in Winboard, the 3 fold draw is actually a loss in Xiangqi but at that moment I just forgot to write hash keys into repetition table)

Waiting for your feedbacks!
User avatar
maksimKorzh
Posts: 771
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Re: Wukong Xiangqi - Chinese chess engine

Post by maksimKorzh »

Just fixed a couple of minor PGN scoring and game state bugs in normal and edit modes.
Now it should be completed.
User avatar
maksimKorzh
Posts: 771
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Re: Wukong Xiangqi - Chinese chess engine

Post by maksimKorzh »

I've just implemented a puzzle solver based on my xiangqi engine:
https://maksimkorzh.github.io/wukong-xi ... olver.html

If anyone has xiangqi puzzles in FEN format please be kind to share so that many people could be solving them.
User avatar
maksimKorzh
Posts: 771
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Re: Wukong Xiangqi - Chinese chess engine

Post by maksimKorzh »

So did anyone try to play?
User avatar
mvanthoor
Posts: 1784
Joined: Wed Jul 03, 2019 4:42 pm
Location: Netherlands
Full name: Marcel Vanthoor

Re: Wukong Xiangqi - Chinese chess engine

Post by mvanthoor »

maksimKorzh wrote: Thu Feb 04, 2021 1:26 am So did anyone try to play?
I did. It's a great piece of work. Well done.

I don't like Chinese chess. It feels alien.Piece movements are too restricted for my taste.
Author of Rustic, an engine written in Rust.
Releases | Code | Docs | Progress | CCRL
User avatar
maksimKorzh
Posts: 771
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Re: Wukong Xiangqi - Chinese chess engine

Post by maksimKorzh »

mvanthoor wrote: Thu Feb 04, 2021 12:34 pm
maksimKorzh wrote: Thu Feb 04, 2021 1:26 am So did anyone try to play?
I did. It's a great piece of work. Well done.

I don't like Chinese chess. It feels alien.Piece movements are too restricted for my taste.
Thank you Marcel.
I'm now learning to play this game as a human - it's awesome, it's just different from chess.
User avatar
maksimKorzh
Posts: 771
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Re: Wukong Xiangqi - Chinese chess engine

Post by maksimKorzh »

I've created a couple of apps based on my Wukong Xiangqi chess engine:
- game viewer (1000+ bundled games)
- puzzle solver (3000+ bundled puzzles)
that use data extracted from xiangqi games database I've scraped recently.

Now the main update is that all 3 apps can be easily embedded into 3rd party websites via iframes,
here's video demo:
duydaniel
Posts: 1
Joined: Fri Feb 12, 2021 10:35 pm
Full name: Daniel Tran

Re: Wukong Xiangqi - Chinese chess engine

Post by duydaniel »

I REALLY enjoy your program. I plan to contribute to it (I am new to chess engine and not as good as Javascript as you are though :) )
User avatar
maksimKorzh
Posts: 771
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Re: Wukong Xiangqi - Chinese chess engine

Post by maksimKorzh »

duydaniel wrote: Sat Feb 13, 2021 5:48 pm I REALLY enjoy your program. I plan to contribute to it (I am new to chess engine and not as good as Javascript as you are though :) )
Thank you)
User avatar
maksimKorzh
Posts: 771
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Re: Wukong Xiangqi - Chinese chess engine

Post by maksimKorzh »

Hi guys

Just wanted to share a bit of success I had recently.
I've developer interactive xiangqi apps for https://xqinenglish.com
https://maksimkorzh.github.io/interacti ... embed.html
derived from my Wukong Xiangqi engine.

I did it for free but Jim Png (Fang Hao Jian), maintainer of xqinenglish.com has introduced me
to Paul English, the founder of https://xiangqi.com so now I'm working with the team developing the site
to integrate my wukong xiangqi engine with their GUI for play vs bots/puzzle solving purposes -
the very first real world chess programming job in my life!

Some links where my diagrams are embedded into Jim's site
(I just provided embedded iframes - the format suitable for Jim,
he has embedded them on his own):
http://www.xqinenglish.com/index.php/en/
http://www.xqinenglish.com/index.php/en ... -movers-01
http://www.xqinenglish.com/index.php/en ... -movers-01
http://www.xqinenglish.com/index.php/en ... -movers-01

You just scroll down to the bottom of the page
Last edited by maksimKorzh on Wed Feb 17, 2021 11:37 am, edited 1 time in total.