myfish wrote:
Agreed. I was speaking to someone about 'King Entering' recently and how it gets VERY hard to find mates in these situations.
I guess this is the situation that the Wikipedia page on Shogi refers to as "Impasse". It's very hard to do anything about that without resorting to special knowledge in the search and evaluation.
If there's a simple solution, I'd be happy to hear it.
The issue with goro goro is the pieces don't really allow for any leeway in strategy when sente's and gote's pieces are laid out in opposite camps as you simply have golds, promoted knights (golds), tokins (golds), silvers (golds) etc etc.
So you are faced with a wall of pieces, all facing the wrong direction for attacks and no rearward diagonals. This was something I was surprised to see sjaaakII do in almost continuity. It didn't seem to consider, NOT promoting silver to make the mate.
Well, in simple material balance a gold is worth more than a silver, so it's not surprising that it would promote the silver at every opportunity. Having an army of golds is less useful than having a few silvers mixed in, but it's not so easy to give a general rule for that.
The other issue is that Sjaak will consider the gold to have mate potential - which is correct, as long as the defending king is in front of the gold. It doesn't take that into account. If it did, it
might be enough to convince it to keep a silver around to avoid the loss of mate potential. That requires quite a bit of changes to the code though (as well as the rule of thumb that says that > 2 pieces are considered mate potential if they're not all color-bound on the same colour).
The tricky part here is that really all Sjaak knows about a variant are the rules and the piece values you give it. Everything else (whether pieces can deliver mate or not, whether pieces should be centralised or not) is derived from the rules and a set of heuristics.
However, there is an easy way to encourage it to keep a silver around: simply set the value of a promoted silver to be lower than that of a silver itself. Sjaak will then prefer to not promote the silver unless it sees an immediate benefit to doing that. It's wrong in general, but it would avoid this particular problem.