Check out Glinski's Hexagonal Chess, our featured variant for May, 2024.

Enter Your Reply

The Comment You're Replying To
🕸Fergus Duniho wrote on Fri, Oct 17, 2008 03:15 PM UTC:
Thanks to the suggestions I got, I have some plans for adding
point-and-click piece movement to Game Courier. It would combine
JavaScript and PHP. On the JavaScript end, I would enclose each piece
image in a borderless anchor. When someone clicked on a piece belonging to
the side that can move, all borders around pieces would be turned off, and
then a border would be placed around the piece clicked on. Clicking more
than one piece that can move would just move the border to a new piece and
change the piece that is going to move. Clicking a piece would also set a
flag that allows the next click to indicate a destination on an empty
space or an enemy occupied space. This second click would cause the
JavaScript to create move notation based on the two clicks and to submit
the form with it. From there, Game Courier would operate as it normally
has. It would check the legality or at least validity of the move and
display the move for verification by the player. This would handle only
single moves from one space to another, including Shogi drops, leaving the
Move field available for other types of moves and for more complex moves. I
might also add support for promotions, but I wouldn't extend it beyond the
needs for Chess and Shogi, because I want it to be simple and easy for most
variants.

Edit Form

You may not post a new comment, because ItemID Zillions and GC does not match any item.