Comments/Ratings for a Single Item
There was a similar problem with the King, and I fixed both. The problem was with the functions for ascertaining the range of the piece, which were used only for potential moves. When I tried to make moves, they worked, and what I needed to fix were the NL, nL, KL, and kL functions. Here is an example of what was no longer working:
def NL array where #0 1 2 where #0 2 1 where #0 -1 -2 where #0 -2 -1 where #0 1 -3 where #0 -1 3 where #0 -3 1 where #0 3 -1 where #0 2 -3 where #0 -2 3 where #0 -3 2 where #0 3 -2;
I believe the problem arose if any of these where
clauses returned false instead of a coordinate. To get around that, I replaced the code with this:
def NL aggregate lambda (where #frm #0 #1) ((1 2) (2 1) (-1 -2) (-2 -1) (1 -3) (-1 3) (-3 1) (3 -1) (2 -3) (-2 3) (-3 2) (3 -2)) =frm;
This uses the aggregate function to build an array of non-empty values of the lambda function, and it passes it the same set of values as the previous code did. So, whenever the where
function returns false, it doesn't get added to the array.
I've just noticed that in the rule enforcing preset for Glinski's chess, several valid knight leaps are not marked as legal from the initial position.
That's now fixed too. When displaying the board from Black's perspective, the CSS uses right and top instead of left and bottom, but I had pasted some code using left and bottom.
It's now displaying correctly, though it isn't switching the display properly when it is Black's turn.
It will display properly if you change the rendering method to GIF, JPG, or PNG. I'll look into why the CSS method is not getting the same results.
The preset reached through the Official Glinski Coordinates button here is not displaying properly
That should be fixed now. There was a typo that may have been due to copying and pasting code without making all the appropriate changes.
The other preset seems to have a problem also. In this game the hexagon alignment switched from vertical to horizontal after the first move and won't go back.
Thank you!
I took some steps to prevent the image from tiling, and now it will also work with the GIF, PNG, and JPG rendering methods.
There was a typo in a new bit of code that was preventing you from selecting CSS as your rendering method. For some reason, this preset works only with CSS, and it will not work if you try to display the board as a GIF, PNG, or JPG image. I repaired your log so that it uses CSS again, and you can now continue your game.
I now see that you were using the unprogrammed preset that actually uses a custom grid rather than the vhex shape. So, I was going in the wrong direction when I tried to make it use the vhex shape. So, the problem is different than I thought it was, and I will have to start over. In the meantime, I have reverted it back to the custom grid shape.
This is probably related to some changes I made to the formfields_customization.php script for something unrelated to hexagonal chess. I got it to use the vhex shape again, but when I do, the pieces are misaligned with the CSS board, and the board appears misshapen when it is automatically drawn as an image. So, something else is going wrong. Since it's late, I'll look into this further tomorrow.
The preset under Official Glinski Coordinates, Medium Size Pieces is not rendering properly. You can see the problem in this game
Game Courier does not handle scoring of games. If someone is running a tournament using Game Courier, then it is up to that person to award scores. So, this person would have the discretion to score with either third or half points.
> Is there a way for interfacing hexagonal chess variants software with winboard?
Only in an ugly way. You can transform a hexagonal board to an orthogonal one by shearing. The 6-fold-neighbor topology of the hex board then is achieved by arbitrarily declaring only one of the diagonals as neighbors. You can use a background image to display sheared hexagons to make it moreobvious what borders on what:
Is there a way for interfacing hexagonal chess variants software with winboard?
A couple of questions for Fergus:
Regarding the rule enforcing preset for Glinski's Hexagonal Chess, am I correct that it scores a stalemate as a 1/2-1/2 draw, rather than 3/4-1/4 for one side (as per the rules noted on that variant's webpage on CVP)?
If yes, am I correct that Game Courier supports only three possible results for any finished game result being recorded for rating purposes by Game Courier, i.e. 1-0, 0-1 or 1/2-1/2?
Wow, I'm lost. 1st time on variants. I want to play Glinski's hex chess with someone. I've been on for 3 minutes, and I can't figure out how to move and manipulate the board. Anyone want to play a game with me?
Double moves and en passant are now being displayed as legal moves for Glinski's Hexagonal Chess.
Glinski's Hexagonal Chess is showing legal moves, but I still have to fix Pawn double moves and en passant. I've just reached the point tonight where I'm too tired to continue thinking about it.
Two pictures for the board mentined in the previous comment, one is from white's point of view and the other from black's. I do not know how to upload them to the site to use them in the preset (so I can know if they really work or not.) White's : http://sibahi.pbwiki.com/f/hex91chess1.gif Black's : http://sibahi.pbwiki.com/f/hex91chess2.gif
I modified the preset a little, it supports the official coordinates and enforces the rules. I sumply used the alias order (the only order I understood from the developer's guide, AND it is quite useful.) One problem remains : the coordinates around the board didn't change to adopt the current system, which makes it too confusing to play with, especially if one is not used to the official system. I don't know how to modify that, but surely someone else can. Here's a link : /play/pbm/play.php?game%3DGlinski%27s+Hexagonal+Chess%26settings%3DPNG-Alfaerie-official I think it looks better than the other presets, and definitely better than the background glinski_hexagonal.gif It can be added to the list.
25 comments displayed
Permalink to the exact comments currently displayed.
Note that I recently changed the behavior of
where
to return false when a coordinate does not exist. This seemed to make more sense than returning a lone rank or file label, as it sometimes would for a non-existent space. But I guess these lone rank or file labels were less problematic for some code.