1#ifndef EVAL_ML_PROGRESS_H
2#define EVAL_ML_PROGRESS_H
17 static int eval(Progress16 black, Progress16 white);
20 static int index(Progress16 black, Progress16 white)
22 return black.value() * 16 + white.value();
30 static int eval(Progress16 black_attack, Progress16 white_defense,
31 Progress16 white_attack, Progress16 black_defense);
34 static int index(Progress16 attack, Progress16 defense)
36 return attack.value() * 16 + defense.value();
45 static int eval(Progress16 black_attack,
46 Progress16 white_defense,
47 Progress16 white_attack, Progress16 black_defense);
50 static int index(Progress16 black_attack, Progress16 white_defense,
51 Progress16 white_attack, Progress16 black_defense)
53 return white_attack.value() +
54 16 * (black_defense.value() +
55 16 * (black_attack.value() * 16 + white_defense.value()));
static CArray< int, 65536 > table
static void setUp(const Weights &weights)
static int index(Progress16 black_attack, Progress16 white_defense, Progress16 white_attack, Progress16 black_defense)
static CArray< int, 256 > table
static int index(Progress16 attack, Progress16 defense)
static void setUp(const Weights &weights)
static CArray< int, 256 > table
static void setUp(const Weights &weights)
static int index(Progress16 black, Progress16 white)