{ "ResignMoves", "spin","0","10000", "3" , NULL,0,NNB, PG|XBOARD|XBSEL},
{ "QueenNeverResigns","check","0","0", "true" , NULL,0,NNB, PG|XBOARD|XBSEL},
{ "ResignScore", "spin","0","10000", "600" , NULL,0,NNB, PG|XBOARD|XBSEL},
+ { "HandleDraws", "check","0","0", "false" , NULL,0,NNB, PG|XBOARD|XBSEL},
+ { "ContemptScore", "spin","0","10000", "30" , NULL,0,NNB, PG|XBOARD|XBSEL},
{ "MateScore", "spin","0","100000", "10000" , NULL,0,NNB, PG|XBOARD},
if(option_find(Uci->option,"UCI_DrawOffers")){
my_log("POLYGLOT draw from XB received");
uci_send_option(Uci,"DrawOffer","%s","draw");}
+ else if (option_get_bool(Option,"HandleDraws") && Uci->root_move_nb > 20) { // [HGM] PG draw handling
+ my_log("POLYGLOT draw from XB received");
+ if (Uci->best_score <= -option_get_int(Option,"ContemptScore"))
+ gui_send(GUI,"offer draw");}
} else if (match(string,"easy")) {
XB->ponder = FALSE;