Comments/Ratings for a Single Item
The Official Glinski Coordinates preset has CSS rendering which isn't working right for hexagonal games
The board image it was using had two separate elseif clauses dealing with it in a long series of elseif clauses in image_dimensions.php, and changes I was making to the second one had no effect. But when I noticed that it had two and combined them into one, I was able to set a value for $offy that worked for the board.
The Official Glinski Coordinates preset has CSS rendering which isn't working right for hexagonal games
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.
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.
25 comments displayed
Permalink to the exact comments currently displayed.
Is it possible for css to work with the horizontal or vertical hexagons shapes?