Check out Grant Acedrex, our featured variant for April, 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

JavaScript Chess-variant applet[Subject Thread] [Add Response]
H. G. Muller wrote on Wed, Oct 28, 2015 11:21 PM UTC:
Some progress: the page with the applet now contains a text entry, where
the user can type a Betza move-definition string, which can then be
assigned to a 'custom piece' by pressing a button. (The Crossed-Swords
symbol, of which you have one in the holdings, which can be dragged to the
board.) After that the piece (once placed on the board) will move according
to that definition.

What happens when you type a syntactically incorrect Betza string is not
defined; the Betza compiler doesn't produce error messages yet. But it is
able to understand quite complicated XBetza strings: it implements the
'a' ('again') modifier to do multi-leg moves, and one of the pieces
supplied in the holdings is the Chu-Shogi Lion, which uses that. There is
no restriction on the number of legs in the compiler. You can for instance
define arbitrarily lame pieces by specifying them as a multi-leg King move
over all squares where the move is blockable. Hook movers (e.g. masR) also
work.

There still is a restriction in the move-entry process, however: you can
only have one locust capture in the move. After clicking the piece the
possibly locust victims will be highlighted in cyan, and clicking on a cyan
square will then prompt you to click on the to-square (after highlighting
where this can be).