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 Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Jocly. An html-based web platform for playing 2-player abstract stategy games.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Sat, Dec 16, 2023 07:24 PM UTC in reply to François Houdebert from 03:46 PM:

I have tested the model with bigorra on your branch. It worked fined :

Great! I will have a look at it shortly.

I managed to tweek the castling code in base-model.js and base-view.js such that it becomes possible to specify alternative final king and rook positions (compared to the one tabulated in the game definition for that king and rook) through the hitherto ignored t field of a castling move. In this case move entry must be done by clicking the destination of the king rather than clicking the rook to be castled with. (The latter is only used for the tabulated castling, so in case of ambiguity with a normal king move you should tabulate the castling with that destination.)

I added some code in the makromachy-model.js to generate 'fast castling', and this appears to work as intended. The only rule that has not been implemented yet is the ban on perpetual checking with an Eagle. But I already built in a mechanism to adjudicate perpetuals, for the benefit of Xiangqi, so this should not be difficult.

BTW, what I forgot to mention in the fairy-move-model description is that this also contains a new routine

this.cbInitialPawnGraph(geometry,direction,initialPush)

where you can specify how far forward the Pawn can slide.