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 Fri, Dec 29, 2023 10:32 PM UTC in reply to François Houdebert from Thu Dec 21 11:15 AM:

I have started a variant to test cbPiecesFromFEN.

For a 10*10 chessboard, is this syntax valid? pieceTypes: this.cbPiecesFromFEN(geometry, "rnbqkbnrrr/pppppppppp/10/10/10/10/PPPPPPPPPP/RRNBQKBNRR", 2),

I have this kind of error : locations[c] is undefined in line if(sqr<geometry.boardSize) locations[c][c==cc?0:1].push(sqr);

Concerning your default palette : I would suggest :

L : lion

F : falcon / hawk

T : Terror or tiger as in shogi or troll as in fantastic XIII

D : Dragon or terror with a dragon aspect or dragon king

Y : Snake like its tongue

I now have debugged this (and pushed it). The numeric argument(s) after the FEN get a different meaning, though. For one they are optional. The first is the furthest rank where the Pawn has extra moves (which by default is everywhere). Only single-step moves can end in the opponent half, though. The other number can limit the push to even shorter distance than that. Note that for orthodox Chess the default is OK; for boards with 6 empty ranks between the armies you would have to specify the pawnRank if you don't want the Pawn to have a double-push after a single step, and maxPush if you want to prevent triple pushing.

The FEN in your example is 10x8, not 10x10. That would still work, but leave two empty ranks at the white end.

As to you suggestions: they seem logical choices for the letters, but I am afraid almost no one would use these pieces. (Or at least not with the move we endow them with; they don't have strong move associations.)