mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-11 08:32:41 +01:00
CuckooChess: Back-ported Texel improvements to CuckooChess. +24 ELO against previous version after 1894 games at 60/6 time control.
This commit is contained in:
@@ -125,6 +125,19 @@ public class BitBoardTest {
|
||||
}
|
||||
}
|
||||
|
||||
private static final int computeDistance(int from, int to) {
|
||||
int dx = Position.getX(to) - Position.getX(from);
|
||||
int dy = Position.getY(to) - Position.getY(from);
|
||||
return Math.max(Math.abs(dx), Math.abs(dy));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetDistance() {
|
||||
for (int from = 0; from < 64; from++)
|
||||
for (int to = 0; to < 64; to++)
|
||||
assertEquals(computeDistance(from, to), BitBoard.getDistance(from, to));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTrailingZeros() {
|
||||
System.out.println("trailingZeros");
|
||||
|
||||
Reference in New Issue
Block a user