diff options
| -rwxr-xr-x | extract.sh | 10 | ||||
| -rw-r--r-- | include/ct1986.c | 11 |
2 files changed, 8 insertions, 13 deletions
@@ -2,11 +2,15 @@ db_file=games_anon.db +chosen_players="fwwwwibib archvenison NohatCoder nqeron ManaT +SultanPepper orfane rabbitboy84 applemonkeyman Tayacan AaaarghBot +applemonkeyman Breeze" +# chosen_players="" + query() { query="(size == $1) and (result != '1-0') and (result != '0-1') and (result != '0-0') and (result != '1/2-1/2')" selct="" - for player in fwwwwibib archvenison NohatCoder nqeron ManaT rabbitboy84 applemonkeyman Tayacan AaaarghBot applemonkeyman; do - # for player in; do + for player in $chosen_players; do selct="$selct(player_black == '$player') or (player_white == '$player') or " done; if [ -n "$selct" ]; then @@ -58,5 +62,5 @@ make pptdb for size in 5; do echo extract $size notation,result - process $size 300000 training + process $size 400000 training done diff --git a/include/ct1986.c b/include/ct1986.c index a3b089e..cf46bfa 100644 --- a/include/ct1986.c +++ b/include/ct1986.c @@ -110,7 +110,7 @@ ct1986_evaluate_black_win(void) { } // =================================================================== -// Minimax using the above evaluator +// α-β probabilistic depth minimax using the above evaluator // =================================================================== static void @@ -124,15 +124,6 @@ previous_ply(void) { } } -/* - * static inline int - * win_evaluate_or_recurse(const uint8_t cur_depth, - * const uint8_t max_depth, const uint8_t min, - * float* alpha, float* beta, float *optimal) { - * float this; - * enum WIN_TYPE w = 0xFF; - */ - static float val; static enum WIN_TYPE w; |
