WandererXII / lishogi

☗ lishogi.org: the forever free, adless and open source shogi server forked from lichess.org ☗
https://lishogi.org
GNU Affero General Public License v3.0
261 stars 40 forks source link

Chu shogi doublecaptutre pawn/gb and lion #817

Open Olekaze opened 4 months ago

Olekaze commented 4 months ago

In this position https://lishogi.org/editor/chushogi/12/12/12/12/6n5/6i5/5N6/12/12/12/12/kK10_b_-_1 doublecapturing the gb and lion is illegal but we think it should be legal. After capturing the gb, the lion is no longer defended so there's no reason it shouldn't be capturable. One could argue that the gamestate doesn't change mid move but this isn't true. In this position https://lishogi.org/editor/chushogi/12/12/12/12/5n6/6i5/5N6/8b3/12/12/12/kK10_b_-_1 the lion is undefended but can't be doublecaptured because after taking the gb, the gamestate changes and the lion becomes defended by the bishop. These examples are inverses and they should follow the same rule. https://i.ibb.co/hfKj2D8/Screen-Shot-2024-03-26-at-22-07-07.png

WandererXII commented 4 months ago

If I'm not mistaken I believe CSRM rules disallow it tho, this was mentioned in the testing page: https://lishogi1.org/assets/sandbox/chushogi/index.html?v=3#21 I do agree that your interpretation is more consistent, but I tried following the CSRM rules... Although sometimes I don't really like them.

daxx00 commented 4 months ago

Of all the renmei rules pertinent to actual gameplay, this is the one with most general opposition and the most likely to have an impact. Prohibiting the capture here serves no purpose. The renmei cites their only reason for this prohibition as being the lion is defended before the whole move, but the consideration of game states only after every whole move is merely a convention brought about by the fact that most games don't have multi-step moves, and not anything defined by rules. None of the historical mating problems hint to such a prohibition.

PraseodymiumSpike commented 3 months ago

We should follow the current Chu Shogi Renmei rules in my opinion.

amdewitt commented 2 months ago

Perhaps we can include parameters that select a ruleset? For example, historic rules vs Chushogi Renmei rules? Of course, I'd prefer that we follow the historic ruleset over the Chushogi Renmei rules any day. If it isn't broken, don't fix it.