-
- return unknownFound? RESULT_UNKNOWN : RESULT_LOSS;
- }
-
-
- int compute_index(Square wksq, Square bksq, Square psq, Color stm) {
- int p = int(square_file(psq)) + (int(square_rank(psq)) - 1) * 4;
- int result = int(stm) + 2*int(bksq) + 128*int(wksq) + 8192*p;
- assert(result >= 0 && result < IndexMax);
- return result;
- }
-
-
- int compress_result(Result r) {
- return (r == RESULT_WIN || r == RESULT_LOSS)? 1 : 0;