Check out Modern Chess, our featured variant for January, 2025.


[ 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 ]

Comments by HGMuller

EarliestEarlier Reverse Order LaterLatest
Play Chess Variants with Jocly. Missing description[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Mon, Mar 18, 2024 03:10 PM UTC in reply to François Houdebert from 07:25 AM:

I was wondering if we could finalize the 2d and 3d visuals for team mate.

The following things would have to be done there:

  • The 2d Cobra image would have to be improved. (There were complaints it looked too much like a tennis racket.)
  • The Spider must be added to the fairy piece set. This requires:
  1. Creation of a 2d Spider icon for in res/fairy/icons.
  2. Adding that to the wikipedia-fairy-sprites.
  3. Some hand-editing of the 3d mesh file, for shaping up the inner legs.
  4. Making a visual of the 2d+3d representation for in res/rules/fairy.
  • Making the team-mate view use those.
  • Make 2d and 3d visuals of the team-mate setup.
  • Making a new thumbnail.

I think I will start with the mesh editing.

 


Home page of The Chess Variant Pages. Homepage of The Chess Variant Pages.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Mon, Mar 18, 2024 04:49 PM UTC in reply to Kevin Pacey from 04:35 PM:

You should not see any search results, because you did not request a search. The confusing thing here is that the address bar is used for two pupropses. If you type a URL there (presumably recognized by containing no spaces, and a number of internal dots) it interprets it as a website address, and goes there. If it doesn't recognize what you type as a URL, it sends it to the website of your defaut search engine (apparently Google), and that will then return search results for your request, which will be displayed with clickable links.

If you get no response, it usually means it cannot even connect to the address that you typed.

The reason I put up that page is that when you also suffer a crash loading that, we can systematically start deleting parts of it until it starts working, and determine that way what the offending part was.

[Edit] I now made a page so simple that it should never cause a problem for any browser, at https://chessvariants.com/hi.html . Check if you can see that.

 


About Game Courier. Web-based system for playing many different variants by email or in real-time.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Tue, Mar 19, 2024 09:28 AM UTC in reply to Fergus Duniho from 07:28 AM:

You are a bit too hard on our non-programmer users. Since Game Courier is partly implemented server side through PHP, and partly client side through JavaScript it is not really possible to know what task is done where if you don't know the exact details of the implementation.

For clarity: the rendering method is decided server side, (so communication with the server is needed to chage it), and only the Table and CSS rendering method, once provided by the server, would allow you to move pieces through mouse clicks.

BTW,  isn't it possible to make the system more user friendly by automatically requesting a new page load when someone changes the setting of the render method? It should be possible to attach a JavaScript event handler to such a change of the selected item.


Play Chess Variants with Jocly. Missing description[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Tue, Mar 19, 2024 09:46 AM UTC in reply to François Houdebert from Mon Mar 18 04:38 PM:

The rightmost board-painter image looks like it would fit well within the set. But are we allowed to use it?

I will redraw the Cobra more like the opper part of the rightmost image.

I have already tweeked the 3d Spider enough to make it acceptable.


H. G. Muller wrote on Tue, Mar 19, 2024 02:23 PM UTC in reply to François Houdebert from 10:09 AM:

I made these SVGs:

But I am still not sure whether it wouldn't be better to only show the head+hood part. Like this:


H. G. Muller wrote on Tue, Mar 19, 2024 06:43 PM UTC:

Spider SVGs:

Perhaps the inner lining of the black one still needs some work. Maybe I should make it entirely black.


@ Gerd Degens[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Tue, Mar 19, 2024 07:36 PM UTC in reply to Gerd Degens from 07:10 PM:

It depends on whether they would offer the same promotion choice or a different one. For the same choice all you would have to do is add the line

maxPromote=2

to the Diagram definition, and make sure the two promotiong pieces are the first two in the table. It doesn't matter what their ID is; only the IDs of the pieces they promote to must be used in promoChoice, never the ID of the promoting piece.

Offering a different choice is possible in the Diagram, by only have the first piece promote normally (the default situation), and defining a second promotion set, and letting the second piece morph to that. But this is not supported in the GAME code yet; only automatic morphing into a single type is supported there.


Play Chess Variants with Jocly. Missing description[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Tue, Mar 19, 2024 09:33 PM UTC in reply to Jean-Louis Cazaux from 08:04 PM:

I now used the new pieces in Team-Mate Chess in the Jocly on my own website. (With an all-black Spider for the 2d.) The white Cobra might still have a little too fat outlines. I will still have to put the new sprites in the move diagrams in the rules description, and then I am ready to push it.

I also want to use Spider and Octopus in Scirocco; these occur there as promoted pieces.


H. G. Muller wrote on Wed, Mar 20, 2024 07:37 AM UTC in reply to François Houdebert from 07:26 AM:

I hadn't anything special in mind for Owl or Flamingo. I made these mainly as test cases for the Tube tool, to try out whether the newly implemented feature for tilting the rings and defining multiple tubes was workable. (The Owl used a second tube for its beak.) Up to that point I had only been able to make pieces that consisted of a single, vertical tube consisting of stacked ellipses. The Flamingo is associated with a (6,1) leap (which is pretty useless on an 8x8 board).


H. G. Muller wrote on Wed, Mar 20, 2024 08:31 AM UTC in reply to François Houdebert from 08:08 AM:

I am afraid that it is more a matter of being tenacious and making long hours, than of talent.

I am still not entirely happy with the eyes drawn by the Tube tool. The mapping of the tube surface onto an 80% x 80% area of the diffuse/normalmap sometimes causes very poor resolution in one of the dimensions. Especially in designs with long legs, such as Spider or Octopus. It divides the entire height of the maps over the sum of all the lengths, while each tube can use the full width of the map, no matter how tiny the tube diameter. I already improved the situation a bit by allowing parts that need little detail to be vertically compressed, to make more room for other parts, but this doesn't help enough, and can still result in eyes being drawn with very poor vertical resolution.

What is really needed is to keep track of the ratio of the total tube length (along the surface) and the maximum circumference. If that gets extreme (say > 3), it would be better to map it to a rectangle that is 4 times higher than wide, and split that into an upper and a lower part, which are then displayed side by side to fill a square. The maps nor also always leave room for a disc in the upper-right 20% x 20% to which a cone segment can be mapped, even if no such segment is used. (And I hardly ever use it...) Without the disc the map could be structured as two side-by-side 50% x 100% areas, and even with a disc the left part could be 50% x 100%, and the right part 50% x 75%.

It would probably a bad idea to have discontinuous mapping of a single tube onto the maps, but very long tube length typically occurs because there are multiple tubes in the design. So it can roughly split the tubes into two approximately equally long sets, one going into the left part, the other in the right part. It might also be useful to make it pay attention to the diameter of the tubes. Those with very small diameter, such as the Spider legs or Octopus tentacles could be mapped into a narrow area on the right. Perhaps it would in general be better to not split the width of the map 50-50, but 70-30, mapping the narrow tubes onto the 30% half.

I will take a look at Minjiku.

There also is the issue that I amended the rules of Team-Mate Chess here on CVP with the possibility of a 'double promotion' to a pair of inverted Silver Generals. And that the Jocly implementation still uses the old rules. This would require extra code. While Team-Mate Chess so far was the only variant I did for Jocly (and therefore did first) that didn't need any code modifications.


About Game Courier. Web-based system for playing many different variants by email or in real-time.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Wed, Mar 20, 2024 09:06 AM UTC in reply to Fergus Duniho from Tue Mar 19 09:58 PM:

Just to be sure I understand what is going on: showpiece.php also renders the white SVG files as a raster bitmap, after replacing the #f9f9f9 by some other color? And then saves this bitmap as a PNG image with palette encoding?

I know for sure that all areas of the images you mention that must be recolored are filled with #f9f9f9. Otherwise the rendering of the black pieces with fen2.php would not have worked. But there the inside of the Rook is always blue.

So the problem is not in the SVG; it must be in showpiece. It must overlook one of the #f9f9f9 strings when it replaces those. That it always does it in the Rook part suggests that the string is in some special context there that prevents it from being recognized by the substitute command. These images are all composits, and they were probably made by Greg (I usually relied on fen2.php's ability to combine SVGs on the fly, without first making SVG for those) with Inkscape by combining the existing SVG images of the pieces they combine. Perhaps this combining created the context that prevents the recognition of the color string.

The bbadger.png looks weird. I suspect something has gone wrong in creating the palette. Perhaps an overflow of the number of colors. It is all the pixels that would interpolate blue and black that seem to be missing.


H. G. Muller wrote on Wed, Mar 20, 2024 04:43 PM UTC in reply to Fergus Duniho from 04:29 PM:

If you open the newly made black badger in a text editor, do you see a white color anywhere in the text? When I look at the original SVG the stroke color around the eyes is #f9f9f9. All other stroke colors are #000000, but there are a few areas that specify "stroke:none". Perhaps the latter cause the problem?


H. G. Muller wrote on Wed, Mar 20, 2024 05:34 PM UTC in reply to Fergus Duniho from 05:29 PM:

So what did you replace, and by what?


H. G. Muller wrote on Wed, Mar 20, 2024 07:11 PM UTC in reply to Fergus Duniho from 06:26 PM:

I replaced "fill:none" with "fill:#5984bd" in bbadger.svg and "fill:#f9f9f9" in wbadger.svg. I uploaded both corrected files and used them to generate new PNG files.

That is not the correct thing to do, and will alter the image. To figure out what these invisible strokes are, I replaced 'none' by #ff0000, and then I get:

So it seems these invisible outlines cover partly the black, and partly the white areas. It would be less critical if you would first reduce the stroke width to 1.

There must be a bug in the SVG rendering routine that it cannot handle the 'none'.


Piececlopedia: Pushme-Pullyu. (Updated!) Moves like a Queen, and captures by approach and withdrawal.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Wed, Mar 20, 2024 07:21 PM UTC in reply to Fergus Duniho from 06:54 PM:

Since no one else did it, I have now created wknightcamel.svg and bknightcamel.svg by removing the zebra stripes from wcamelzebra.svg and changing the color for the black piece.

I guess normally one uses the Wildebeest icon for this compound. Usually we don't have any black SVG, since the fill color can so easily be adapted to anything. Only for piece sets that have their black pieces really black we have separate symbols, as filling with black would make the inner lines invisible.


Play Chess Variants with Jocly. Missing description[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Wed, Mar 20, 2024 07:47 PM UTC in reply to François Houdebert from 08:08 AM:

Another detail about minjiku: the rules don't match the sprite for the ninja. Even if you don't have time to make a 3d ninja, it would be nice to have an updated model.

I now used the Gate in the game implementation as well. This is not such a bad choice, as this piece was intended to represent the Ski-Rook, the hole at the bottom symbolizing it would skip the nearest square. I used it in Scirocco for the Wagon (which is a lame Ski-Rook). And the Ninja has a sideway Ski-Rook move. The only good idea for having a dedicated easily recognizable Ninja representation was to use a shuriken, but this is not tube-like, and would have to be made entirely by hand. (But we could have used the Star...)

Unfortunately there was a lot more wrong with Minjiku Shogi. Apparently I broke the SkiGraph routine for doing ski-slides when I enhanced it for doing the Osprey. So it was doing a normal Rook move rather than a ski-slide. This must be fixed in locust-move-model.js.

And that is not all; the flying generals do not respect the ranking as promoted pieces. The ranking is part of the piece-type definition, but to make testing of it more efficient, I copy that to the piece object, so it can be easily tested by the move generator or GetAttackers function (which is called really often). But promoting a piece just alters the number of the piece type (piece.t). It does not add or change the ranking number if that new type had a ranking. This must be fixed in base-model.js, which handles the flying pieces.

And when I am at it, I might as well provide a method for requesting 'double promotion' in base-model.js as well. Perhaps I should allow specification of negative numbers in the promotion-choice arrays returned by the user-supplied promote() routine. The base model could then interpret these as their absolute value, but whenever such a promotion is applied to the board, call a user-supplied custom routine for adapting the game state. In the Minjiku case this routine could then set the ranking of the promoted piece, and in Team-Mate Chess it could add the extra promotion piece to the origin square of the move. (Problem: the legality testing, (through cbQuickApply), which ignores promotion, might reject the move if it doesn't realize the origin square is not evacuated. But I guess it even has that in common with the ranked pieces; the promoted piece might block a flying attack that the unpromoted piece would not. This will require some careful thinking.)


Piececlopedia: Pushme-Pullyu. (Updated!) Moves like a Queen, and captures by approach and withdrawal.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Wed, Mar 20, 2024 09:16 PM UTC in reply to Fergus Duniho from 08:58 PM:

A Knight-Camel chimera seems a very odd choice for a Push-Me Pull-You, which neither moves like a Knight nor a Camel. Encouraging its use seems the opposit from what we should do, as it can only cause confusion. If this page uses it, the proper action would be to replace it on this page for something more sensible...

That's not true. All the original GIF pieces and their PNG replacements have separate white and black pieces regardless of how the black pieces are colored.

I was talking about SVG pieces. So far these were only used as input for rendering scripts. The browser on my tablet wouldn't render them if I used them directly (as I did in one of the Comments below). So they cannot be used directly. And if a script is used to render them, this script does not have to be awfully clever to know that when someone asks for bxxx it should render wxxx with teh default white color replaced by the default black color. So we had no use for the black alfaerie SVG.

The XBoard (and Motif) pieces do have essentially different designs for black, though. In fen2.php you can request these by asking for black color #202020.


About Game Courier. Web-based system for playing many different variants by email or in real-time.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Wed, Mar 20, 2024 09:30 PM UTC in reply to Fergus Duniho from 08:49 PM:

In my opinion, the first ones look best. So I don't think I made any mistake here.

We have a proverb: "In the land of the blind, one-eye is king". The goal is not to be best, but to be good. This 'first one' has much to narrow outline compared to the other alfaerie pieces. It is not the original. As my math teacher used to say: "nearly correct. Thus faulty!"


Piececlopedia: Pushme-Pullyu. (Updated!) Moves like a Queen, and captures by approach and withdrawal.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Wed, Mar 20, 2024 09:47 PM UTC in reply to Fergus Duniho from 09:34 PM:

Well, no one had made an SVG of a back-to-back Camel and Knight either. If you are referring to the Ox-Ram chimera shown in an earlier command: SVG of the Ox and Ram are available too.


About Game Courier. Web-based system for playing many different variants by email or in real-time.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Wed, Mar 20, 2024 09:49 PM UTC in reply to Fergus Duniho from 09:42 PM:

And if it's not, why do your badger pieces look exactly the same?

You really cannot see the difference between:

and these?:

 


H. G. Muller wrote on Thu, Mar 21, 2024 06:54 AM UTC in reply to Fergus Duniho from 12:44 AM:

OK, sorry. I overlooked that you were not changing the stroke:none but the fill:none. (And I did not see any filenames, as I just copy-pasted them from your comment in WYSIWIG mode.)

But then the good result is entirely accidental, and cannot be generalized to other images that contain a 'none' filling or stroke.

I think I understand what was causing the problem, though: because this image did not have a black outline with white/blue fill, but had a black ouline without fill, and an exactly matching white/blue area without outline inside it, the latter gets white/blue pixels that are partly transparent when rendered as a raster image. Normally only the black outline touches the transparent background. Apparently the palette did not contain the white/blue with the required transparency, and rounding took place which either made the pixels entire white/blue, or entirely transparent. (Mostly the latter, it seems from the mottled result.) When you apply the fill to the outline, the holes in the inside area make this fill shine through, which camouflages them. In fact these stroke:none elements seem entirely redundant if the other elements are filled.

This SVG was probably generated automatically with the help of an edge-tracing function; these often do not treat the outlines as outlines, but as borderless black-filled areas, tracing both the inner and the outer side of the black lines. And then they create separate areas for the interior.


Play Chess Variants with Jocly. Missing description[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Thu, Mar 21, 2024 08:35 AM UTC:

It appears that the configuration of all the variants I added still needs fixing in index.js. I never realized that he AI's evaluation is controlled from there, and always just cloned the same game definition, only changing the build scripts and filenames of visuals and such. But I just found out that the weights of the various evaluation terms are controlled in the property config.model.gameOptions, in a property levelOptions.

It appears that the version I cloned was referring to config_model_gameOptions_2, which is a setting for Shatranj or mini variants, and doesn't award advance of passers very much. Most of the variants would need the settings used for classic-chess.


H. G. Muller wrote on Thu, Mar 21, 2024 06:17 PM UTC in reply to François Houdebert from 08:54 AM:

I implemented pair-promotion to Brutes in Team-Mate Chess, and updated the rule description accordingly. I also improves the evaluation, making it recognize insufficient material draws were all remaing pieces are color bound and on the same shade. I think that should finish it.


H. G. Muller wrote on Thu, Mar 21, 2024 08:52 PM UTC in reply to François Houdebert from 07:43 PM:

Yes, I am already working on the others. For some the custom evaluation was entirely wrong. (E.g. in Elven Chess the testing for insufficient mating material made no sense, as by using fairy-piece-model all type numbers had changed. And the bonus for advance Pawns did not take into account that the promotion zone was 3 ranks rather than 1, and was only awarding the bonus when the Pawns were already in the zone.)

And Aanca is indeed Acromentula. I thought I had replaced that everywhere, but apparently I missed some.

[Edit] I have now fixed the obvious evaluation errors in my non-Shogi variants. But:

  • Makromachy has no dedicated evaluation at all. So it won't encourage Pawns to advance, no matter what set of eval parameters it uses, and it won't recognize insufficient mating material. (But it is so large that the latter might not matter.)
  • Scirocco needs to encourage many other pieces than Pawns to advance towards the zone. Especially the very slow ones, such as Ferz, Wazir, Steward and Commoner, but to a lesser extent also the range-2 leapers Alfil, Dababbah, Stork, Goat and the enhanced Knights.
  • That holds also for other Shogi variants without drops. (Scirocco is a sort of Chess-Shogi hybrid.)
  • Minjiku Shogi currently also has no dedicated evaluation.
  • Chu Shogi still has the unmodifed Classic Chess evaluation, basing its 'insufficiant mating material' judgement on the idea that piece types 4 and 5 are Knight and Bishop, and Pawns promote on last rank only.
  • Shogi, Tori Shogi and mini-Shogi have empty evaluation functions. They would really need some King-Safety term to play sensibly.

 


Bent Riders. A discussion of pieces, like the Gryphon, that take a step then move as riders.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Fri, Mar 22, 2024 07:43 AM UTC in reply to HaruN Y from 03:26 AM:

You could also call them the Bent Betzas!

Note that Americans might get upset by the pun.


25 comments displayed

EarliestEarlier Reverse Order LaterLatest

Permalink to the exact comments currently displayed.