portnov / qcheckers

QCheckers, formely known as KCheckers, is a is a Qt version of the classic boardgame "checkers" ("draughts").
https://portnov.github.io/qcheckers/
GNU General Public License v2.0
6 stars 6 forks source link

Slovak draughts rules #6

Open jose1711 opened 5 years ago

jose1711 commented 5 years ago

Please add support for Slovak draughts. Rules: https://checkers.fandom.com/wiki/Slovensk%C3%A1_d%C3%A1ma

portnov commented 5 years ago

Hello. First, thanks for the interest in qcheckers! :) Unfortunately, qcheckers's code is relatively ancient C++, and was not exactly designed for easy addition of rules (it is possible, but not easy). And I'm not an expert in C++ :/ (I'm not original author of qcheckers). I will leave this issue open in case someone wants to help and implement this.

I have another project https://github.com/portnov/hcheckers - that one I designed for easy addition of rules, and it already supports much more than qcheckers. It might be not so easy to build from sources, but there are some debian/ubuntu packages and docker container. There I can add Slovak (as well as Czech) rules much more easily.

portnov commented 5 years ago

If you are interested in czech draughts as well, you may check out "checkersland" program (it is free, as beer, not as a word); that supports czech, but not slovak...

portnov commented 5 years ago

@jose1711 Hello again. I have a question about huffing rule in Slovak draughts. Is it really widely used or is it just a variation used by children?

jose1711 commented 5 years ago

Hey @portnov, it is a common rule and one of the specifics of Slovak checkers ("Dáma"). Please note that if a player has an option to take an opponent's piece by a regular piece and a crowned piece, crowned piece takes precedence. If a player fails to obey this rule and use a regular piece opponent may (right before his/her turn) remove the crowned piece from the board.

portnov commented 5 years ago

ok, thanks.

portnov commented 5 years ago

@jose1711 , and if a player has two options to capture - by regular piece and by a crowned piece - but does not capture at all, then opponent may remove either that usual piece or that crowned piece, at his choice?

jose1711 commented 5 years ago

I did not find how this situation should be resolved in the rules of the game .. I'd personally go with "make your choice" option.