1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00
BadFish/src
Joona Kiiski a093f33154 Use zero null move margin when depth < 4 * OnePly
This is because when we are below 4 * OnePly, the null move
will directly jump to qsearch and if we are below beta,
our opponent is above beta and will get immediate
stand pat cut off.

So basically this patch is just optimizing away useless
evaluation calls. dbg_hit_on() runs show that this heuristic
is correct >99% of cases. Transposition table probably causes
some inaccurary?

After 1148 games on QUAD
mod-orig: 583 - 565 +5 elo

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2010-02-15 19:14:41 +01:00
..
application.cpp Rename stop_threads() to exit_threads() 2010-02-13 12:07:13 +01:00
application.h Remove unused members in Application class 2009-07-26 16:11:20 +01:00
benchmark.cpp Fix sending of best move during an infinite search 2010-01-10 13:18:43 +01:00
benchmark.h Update copyright year 2009-05-07 14:54:40 +02:00
bitbase.cpp Update copyright year 2009-05-07 14:54:40 +02:00
bitbase.h Update copyright year 2009-05-07 14:54:40 +02:00
bitboard.cpp Fix a little warning under gcc compiler 2009-12-30 13:25:22 +01:00
bitboard.h Logaritmic futility margins 2009-11-23 20:59:24 +01:00
bitcount.h Add hardware POPCNT support for gcc 2010-01-31 09:39:32 +01:00
book.cpp Allow build on HP-UX 11.X 2010-02-12 06:49:16 +01:00
book.h Allow build on HP-UX 11.X 2010-02-12 06:49:16 +01:00
color.h Use string instead of std::string 2009-05-10 18:38:47 +01:00
COPYING Initial import of Glaurung 2.1 2008-09-01 07:59:13 +02:00
depth.h Use calculate_reduction() function to simplify code 2010-01-28 11:15:41 +01:00
direction.cpp Space inflate and cleanup direction.cpp 2009-05-20 12:02:39 +02:00
direction.h Update copyright year 2009-05-07 14:54:40 +02:00
endgame.cpp Rename piece_attacks_from() in attacks_from() 2009-09-20 14:55:28 +01:00
endgame.h Better naming and document some endgame functions 2009-08-14 08:19:55 +01:00
evaluate.cpp Save futilityMargin for both colors 2010-02-01 20:06:56 +01:00
evaluate.h Save futilityMargin for both colors 2010-02-01 20:06:56 +01:00
history.cpp Convert gains to use a piece-to mapping 2010-02-03 19:33:59 +01:00
history.h Convert gains to use a piece-to mapping 2010-02-03 19:33:59 +01:00
lock.h Simplify locking in sp_search and sp_search_pv 2010-01-27 17:58:04 +01:00
main.cpp Implemented perft 2009-11-01 17:05:00 +01:00
Makefile Allow build on HP-UX 11.X 2010-02-12 06:49:16 +01:00
material.cpp Fix duplicated scaling function 2010-02-01 19:33:02 +01:00
material.h Move game phase computation to MaterialInfo 2009-11-14 17:57:49 +01:00
mersenne.cpp Warnings termination fest 2008-09-24 00:32:53 +02:00
mersenne.h Update copyright year 2009-05-07 14:54:40 +02:00
misc.cpp Allow build on HP-UX 11.X 2010-02-12 06:49:16 +01:00
misc.h Use string instead of std::string 2009-05-10 18:38:47 +01:00
move.cpp Micro optimize and rename move_promotion() 2009-06-20 09:04:32 +01:00
move.h Delay sorting of negative scored non-captures 2010-02-05 18:31:09 +01:00
movegen.cpp Small code-style touches in movegen.cpp 2009-11-06 14:42:48 +01:00
movegen.h Retire MovePicker::discovered_check_candidates() 2009-11-05 07:03:48 +01:00
movepick.cpp Use gain table to order non-captures 2010-02-07 08:55:51 +01:00
movepick.h Delay sorting of negative scored non-captures 2010-02-05 18:31:09 +01:00
pawns.cpp Convert pawns evaluation to Score 2009-11-14 17:57:50 +01:00
pawns.h Convert pawns evaluation to Score 2009-11-14 17:57:50 +01:00
piece.cpp Update copyright year 2009-05-07 14:54:40 +02:00
piece.h Retire piece_is_slider(PieceType pt) 2009-09-04 08:21:07 +01:00
position.cpp Implement MaxGain table 2010-01-27 09:57:14 +01:00
position.h Implement MaxGain table 2010-01-27 09:57:14 +01:00
psqtab.h Joona tweaks of piece values 2009-07-02 06:29:14 +01:00
san.cpp Avoid copy a Position to get a move's san notation 2010-01-25 16:22:50 +01:00
san.h Avoid copy a Position to get a move's san notation 2010-01-25 16:22:50 +01:00
scale.h Update copyright year 2009-05-07 14:54:40 +02:00
search.cpp Use zero null move margin when depth < 4 * OnePly 2010-02-15 19:14:41 +01:00
search.h Rename stop_threads() to exit_threads() 2010-02-13 12:07:13 +01:00
square.h Update copyright year 2009-05-07 14:54:40 +02:00
thread.h Rename flag 'stop' in 'stopRequest' 2010-02-14 16:04:53 +01:00
tt.cpp Allow build on HP-UX 11.X 2010-02-12 06:49:16 +01:00
tt.h Increase TT size limit to 8 GB 2010-02-01 16:53:10 +01:00
types.h Fix correct name of int64_t type 2009-11-07 10:08:28 +01:00
uci.cpp Standardize set_option function 2010-01-27 20:03:44 +01:00
uci.h Update copyright year 2009-05-07 14:54:40 +02:00
ucioption.cpp Increase TT size limit to 8 GB 2010-02-01 16:53:10 +01:00
ucioption.h Use string instead of std::string 2009-05-10 18:38:47 +01:00
value.cpp Update copyright year 2009-05-07 14:54:40 +02:00
value.h Fix enum Value issue with gcc 4.4 2010-01-19 23:30:23 +01:00