Check out Janggi (Korean Chess), our featured variant for December, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Latest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

Later Reverse Order Earlier
Shogi. Play the Japanese form of Chess with Jocly.[All Comments] [Add Comment or Rating]
A. M. DeWitt wrote on Fri, Jan 26 02:53 PM UTC in reply to H. G. Muller from Thu Jan 25 02:55 PM:

I tested this description of the bug, and that looks to be exactly right. Would switching lines 142 and 143 help?

Also, does updating this require updating both the browser cache and CloudFare's cache in order for changes to show?

Edit: I also tested this with the other drop games. The bug also appears in Tori Shogi (Three Swallows instead of Two Pawns) but not in Mini Shogi.


📝H. G. Muller wrote on Thu, Jan 25 02:55 PM UTC in reply to A. M. DeWitt from Wed Jan 24 04:50 PM:

I did notice a bug in the drop-model, but not one that explanes exactly what you describe. The wrapper of cbApplyMove does demotion and testing for Pawn capture in the wrong order (lines 142 and 143). With as consequence that capturing a Tokin decreases the Pawn count for the file where it happens. So it should not matter in which file you promoted, but depend on where the Tokin was captured. As the Pawn count is updated incrementally, the error would persist for the rest of the game.


2 comments displayed

Later Reverse Order Earlier

Permalink to the exact comments currently displayed.