Serious bug in International Checkers Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Comments/Suggestions For Existing Games » Serious bug in International Checkers « Previous Next »

Author Message
Mats W (Kålroten)
Posted on Thursday, February 23, 2006 - 12:48 pm:   

The king in "International Checkers/Draughts" (on the Zillions download/CD) jumps over enemy checkers, which stay on the board. When jumps are finished (since no more captures), enemy checkers are removed. However, the king then continues capturing if the removal of enemy checkers makes yet another capture possible. This cannot be right.
I have corrected the bug, and you can download "Checkers.zrf" here (zipped). I have marked the code that I inserted with 'MW'.

The last move in the following game should not be possible.
-------------------------------------------------------
Zillions Save Game File Version 0.02 HH
RulesFile=C:\Program\Zillions Development\Zillions Demo\Rules\Checkers.zrf
VariantName=International Checkers 10x10
1. Checker f4 - g5
1. Checker g7 - h6
2. Checker e3 - f4
2. Checker f8 - g7
3. Checker d2 - e3
3. Checker e9 - f8
4. Checker c1 - d2
4. Checker d10 - e9
5. Checker b4 - a5
5. Checker a7 - b6
6. Checker c3 - b4
6. Checker b8 - a7
7. Checker d2 - c3
7. Checker a9 - b8
8. Checker f4 - e5
8. partial 2 Checker h6 - f4 = XChecker on g5
8. partial 2 Checker f4 - d2 = XChecker on e3 x e3 x g5
9. Checker h4 - i5
9. Checker b10 - a9
10. Checker i3 - h4
10. Checker d2 - c1 = King
11. Checker h2 - i3
11. Checker i7 - j6
12. Checker f2 - e3
12. partial 2 King c1 - f4 = XChecker on e3
12. partial 2 King f4 - d6 = XChecker on e5 x e5 x e3
12. partial 2 King d6 - h2 = XChecker on g3 x g3
Mats W (Kålroten)
Posted on Thursday, February 23, 2006 - 12:57 pm:   

Also "Friesian checkers" has this bug, which is corrected in the downloadable zrf above. Maybe my correction isn't the formally best, but it works. It's important to fix such bugs because they are easily propagated into one's own implementations, should one construct some form of checkers game. So you ought to download it, even if you're not interested in playing that game.

Mats
Mats W (Kålroten)
Posted on Thursday, February 23, 2006 - 1:27 pm:   

Or don't download my bugfix because it introduces another bug, which I just realized. But somebody should have a look on this problem.
Mats W (Kålroten)
Posted on Thursday, February 23, 2006 - 5:27 pm:   

Neither does "International Checkers" satisfy the rule of maximal captures, so maybe it's no use to dig deeper into this. If somebody doesn't feel for rewriting the code.

Mats
Alfred Pfeiffer (Apf)
Posted on Friday, February 24, 2006 - 3:12 am:   

For International Checkers try David Glaude's "Jeu de Dames" from the Zillions site: http://www.zillions-of-games.com/cgi-bin/zilligames/submissions.cgi/71908?do=show;id=136
Greg Schmidt (Gschmidt)
Posted on Friday, February 24, 2006 - 8:16 am:   

I must admit that I'm a bit weak on the move notation used by Zillions, could someone please explain (in plain language) the meaning of:

12. partial 2 King f4 - d6 = XChecker on e5 x e5 x e3

(OK, I realize that "King f4 -d6" is a king movement and "x" means capture, but things like "partial 2", "=", "e5 x e5 x e5" are a bit confusing to me)

Has anyone put together something like a grammar that explains the general syntax of the move notation? It would be nice to have a reference. Perhaps it boils down to a few simple rules that make it all obvious once they are known.

Thanks
-- Greg
Mats W (Kålroten)
Posted on Friday, February 24, 2006 - 10:15 am:   

Greg, "XChecker on e5" etc., denotes the pieces that are captured, but instead of removing them they are changed to XCheckers. Then, when the king-move is finished, they are removed.

Thanks, Alfred, for the information. I tested Jeu de Dames and it functions correctly. It makes maximum captures and the king stops moving after the "XCheckers" are removed. It is rather impressive, I think, that one can implement such rule complexity in so little code. My own code doesn't look like this.

However, the graphics is bad because one can hardly discern the black pieces against the dark squares. I made the dark squares lighter, and you can download this new board here.

Mats
Greg Schmidt (Gschmidt)
Posted on Friday, February 24, 2006 - 5:09 pm:   

Thanks, do you also know what the number following the "partial" is? It doesn't seem to be the number of partial moves actually made.

(I realize this is not what your original post was about and I apologize for that.)

-- Greg
Mats W (Kålroten)
Posted on Saturday, February 25, 2006 - 3:31 am:   

Dunno.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: