Currently I use my "unique block" a1-d1-d4-a4, which I can understand
I can't understand the symmetry of the triangle. Is there someone who can explain this?
Moderator: Pachnes
q1 = Q;
q2 = 1;
while (q1 >= q2) {
q1 -= q2;
q2++;
}guyhaw wrote:szyzygy - do you have a source/reference for that neat formula for 'Q' which enumerates the positions of like men?
h.g.muller wrote:So the matter of ordering of the different Pawn constellations will simply never crop up.
Some of the more nonsensical Pawn constellations (such as 5 Pawns on 2nd/7th rank) might then be left out, as their sensical predecessors, e.g. with only two connected Pawn on 7th rank, might already be proven fully won by pushing one of those Pawns to promotion.
h.g.muller wrote:Of course the non-sensical P-slices could be of interest to problemists and such, so eventually someone will have to generate them. But it would be an enormous advantage to be able to calculate the sensible 99% of P-slices of KPPPPKP without first having to do KQQQKQQ, KQQRQKQQ, KQQQKQR, ... And I think this is exactly what the described algorithm will give you. Most of the P-slices will be able to get complete, fully valid, mathematically correct DTZ assignments, without the need to build nonsense like KQQQKQQ. And for the ones that don't... Who cares? My aim is not to have all tablebases. Only the important ones. That applies equally to P-slices, which in my mind are separate tablebases.
Next subject. What is your compression method?
Your point 2) suggests that you try to pack position values in e.g. 5 bits if there are at most 32 different values. Is that your compression? Or do you first pack positions in as few bits as possible (and pack those into bytes), then compress the result?
The first option gives lousy compression. The second option most likely only hurts compression as it hides some of the redundancy that a good compression algorithm can exploit.
EricLang wrote:First I "bitpack" all positions.
Second I compress the bitpacked data with a general data-compression-algorithm, which I got from internet. I work with Delphi and the unit is called ZlibEx.
h.g.muller wrote:The only way to guarantee the latter is if all WTM positions are already wins. As long as there are (wtm) draws or losses, there is no guarantee that they would not change into wins by one of the converting or zeroing moves not yet considered. So in that case, you could calculate another successor, and repeat the building process including the seeding from that successor.
guyhaw wrote:The DTZ(k) metric, as hgm points out, does have the advantage over DTC/DTM that if there is a move zeroing the move-count, changing the phase, and winning, no other successors need be consulted. 'dz', the depth under the DTZ metric, is 1: end of story.
guyhaw wrote:However, we shouldn't get hgm's EGTs confused with the definitive EGTs which this discussion board has so far focussed on. You might also be able to tell that I am distinctly unenthusiastic about proposed classification of endgames or P-slices into 'sensical/nonsensical', or of positions into 'blessed/damned' (re any k-move rule).
syzygy wrote:... So your idea would only work for generally won pawn slices?guyhaw wrote:The DTZ(k) metric, as hgm points out, does have the advantage over DTC/DTM that if there is a move zeroing the move-count, changing the phase, and winning, no other successors need be consulted. 'dz', the depth under the DTZ metric, is 1: end of story.
True. For single positions this works very fine: if the Q-promotion wins, there is no need to probe the underpromotions. However, if there is only one position in the slice for which the Q-promotion is not winning, the underpromotion subtables will have to be probed and thus will have to be generated.
h.g.muller wrote:In its most simple form it would only work for totaly won (for wtm) Pawn slices. This seems a severe restriction, but in fact I believe it to already be extremely useful in practice, as it will cut off the path to successor phases with multiple queenings. It is to be expected that having a single (surviving) Queen is enough to have a totally won slice (when the opponent has no Pawns close to promotion).
Users browsing this forum: No registered users and 1 guest