Moderator: Andres Valverde
Reinhard Scharnagl wrote:I use a 15x12 board and am very satisfied with the performance it provides.
Alessandro Scotti wrote:Never actually measured the performance of 15x12 though.
Reinhard Scharnagl wrote:The 15 is very important. It has to do with special properties of the resulting nature of square coordinates. Without using such things, it would not matter if 10x12 or 16x12. But 15x12 enables SMIRF to see through lines, rows and diagonals.
Alessandro Scotti wrote:I only use the "delta" trick and that requires the board width to be >= 15, that's why I could not choose 10x12.
P.S. The square color idea is a nice one!
Reinhard Scharnagl wrote:Alessandro Scotti wrote:I only use the "delta" trick and that requires the board width to be >= 15, that's why I could not choose 10x12.
Probably I am not familiar with most of such tricks, because I do not use other chess program sources.
Philippe wrote:Thanks ! But Im afraid Im not very experienced in chess programming. I see indeed that the difference between 2 squares is a constant (in the 0x88 representation). But could you explain a little more this attack table ?
Dump of FeldInfo-Lo-2 (Koor=>Text):
x00: #0 #1 ?? ?? ## ## ## ## ## ## ## ## ## ## ??
x0F: ?? ?? ?? ## ## ## ## ## ## ## ## ## ## ## ##
x1E: ?? ?? ?? ## ## a1 a2 a3 a4 a5 a6 a7 a8 ## ##
x2D: ?? ?? ?? ## ## b1 b2 b3 b4 b5 b6 b7 b8 ## ##
x3C: ?? ?? ?? ## ## c1 c2 c3 c4 c5 c6 c7 c8 ## ##
x4B: ?? ?? ?? ## ## d1 d2 d3 d4 d5 d6 d7 d8 ## ##
x5A: ?? ?? ?? ## ## e1 e2 e3 e4 e5 e6 e7 e8 ## ##
x69: ?? ?? ?? ## ## f1 f2 f3 f4 f5 f6 f7 f8 ## ##
x78: ?? ?? ?? ## ## g1 g2 g3 g4 g5 g6 g7 g8 ## ##
x87: ?? ?? ?? ## ## h1 h2 h3 h4 h5 h6 h7 h8 ## ##
x96: ?? ?? ?? ## ## ## ## ## ## ## ## ## ## ## ##
xA5: ?? ?? ?? ?? ## ## ## ## ## ## ## ## ## ## ??
xB4: ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
xC3: ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
H.G.Muller wrote:OK, your board is rotated 90 degrees w.r.t. mine, and I can see why you do it that way
You will lose the easy test for the rank number
In the skipped part between the guard bands I put frequently used global variables and temporaries.
H.G.Muller wrote:The low-bit = square color I had not realized. Great trick! And yet another argument in favor of this representation.
inline int color_of( int sq ) {
return (sq + (sq >> 3)) & 1;
}
Alessandro Scotti wrote:... so it's not much more expensive.
Reinhard Scharnagl wrote:Alessandro Scotti wrote:... so it's not much more expensive.
well, I really doubt on that.
Reinhard.
Alessandro Scotti wrote:How do you expect it to be?
Reinhard Scharnagl wrote:Alessandro Scotti wrote:How do you expect it to be?
Don't feel offended, that is not, what I intended. Be happy with your version! I already have uncovered too much of my not open source SMIRF project. I will no longer disturb your discussion on board representations within this thread.
Regards, Reinhard.
Return to Programming and Technical Discussions
Users browsing this forum: No registered users and 9 guests