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:
Peter Osterlund
2012-07-15 10:39:23 +00:00
parent 6861e6d266
commit ab87bb9ae8
12 changed files with 292 additions and 185 deletions

View File

@@ -64,13 +64,27 @@ public class Move {
this.score = m.score;
}
public void copyFrom(Move m) {
public final void copyFrom(Move m) {
from = m.from;
to = m.to;
promoteTo = m.promoteTo;
// score = m.score;
}
public final void clear() {
from = 0;
to = 0;
promoteTo = 0;
score = 0;
}
public final void setMove(int from, int to, int promoteTo, int score) {
this.from = from;
this.to = to;
this.promoteTo = promoteTo;
this.score = score;
}
/** Note that score is not included in the comparison. */
@Override
public boolean equals(Object o) {