Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Is there a version for xiangqi available? #37

Open
agogugu opened this issue Feb 13, 2024 · 6 comments
Open

Is there a version for xiangqi available? #37

agogugu opened this issue Feb 13, 2024 · 6 comments

Comments

@agogugu
Copy link

agogugu commented Feb 13, 2024

Hi Pham,
my name is Agostino.
I'm a fun of xiangqi game. My wife is GM Lin Ye 1981 Chinese xiangqi Champion and 1997 World xiangqi Champion.
I think it would be very great if you could write an Open Chess Game Database (OCGDB) version for xiangqi.
Do you think it's possible?

Best whishes

Agostino

@nguyenpham
Copy link
Owner

Wow, good information about your wife GM! I have found two games by your wife from my databases.

OCGDB could be used directly for Xiangqi. What we need is a standard for Xiangqi only - how to encode and decode Xiangqi moves into/from 2 bytes. I will publish a guide about that, to avoid there being so many sub-standards.

I have been developing two freeware using OCGDB for Xiangqi, one for desktop computers (Windows/Mac/Linux) and one for iOS (there is not yet for Android). They just need a few steps/shiny works before release.

ocgdb-ios

ocgdb-mac

@agogugu
Copy link
Author

agogugu commented Feb 18, 2024 via email

@nguyenpham
Copy link
Owner

For quick comparison we can consider that OCGDB is equally to PGN. What you can do with PGN you can do with OCGDB. If you can store your puzzles with PGN, you can do the same with OCGDB.

However, sometimes people want to store chess positions in the form of EPD. We have create a new database format for that type. The SQLite file will have the extension of .epd.db3. Sometimes I see it is good for storing puzzles too. You may read more here:

https://talkchess.com/forum3/viewtopic.php?f=7&t=78464&start=280#p927684

The code of EPD format have been pushed here for long time. However, I forgot (and was lazy) to update the standard.

All code here is pure C/C++ 17. They don't have the GUI code and can integrate into any C/C++ project in any OS, including Visual Studio ones. Just add the code into your project and then add all files. They should be compiled easily.

Thank a lot about good words to me!!!

Yes, I love to have those games of your wife, as well any games from high rank Xiangqi players. I have been building a new database too. Just sen them to me and thank a lot in advance. If you could, please translate all player names into Latin words since I can't read Chinese.

@agogugu
Copy link
Author

agogugu commented Feb 21, 2024 via email

@nguyenpham
Copy link
Owner

  1. Yes. Recently all my apps (BanksiaGUI, new apps for iOS) can work with variations. I just use a simple solution, quite similar to parenthesises in PGN for storing variations. However, the code is tricky to work with. I have just implemented recently, thus there is no update for OGCDB. I may mention as a part of the standard
    I don't have any Xiangqi game with variations at the moment, you may see the one for chess

  2. Chess has ECO system. Xiangqi has ECCO (Encyclopaedia of Chinese Chess Openings). The ECCO is in both English and Chinese. I have added Vietnamese

  3. I have been collecting games for building a new Xiangqi database. Thus it has not been published yet.
    The hard point I can't use ones with player names in Chinese since I can't read them as well as my friends. If there is a dictionary for referencing between Chinese and Latin/English names it will be so useful for me

IMG_4638

IMG_4636

@agogugu
Copy link
Author

agogugu commented Feb 29, 2024 via email

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

No branches or pull requests

2 participants