File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -88,11 +88,6 @@ static int16_t see(Position &position, Move move)
8888 return scores[0 ];
8989}
9090
91- static Move get_hash_move (Position &position, TTable &tt)
92- {
93- return (Move)tt.retrieve (position).move ;
94- }
95-
9691template <bool quiet = false >
9792static void order_normal_movelist (Position &position, Movelist &movelist, Search &search)
9893{
@@ -129,11 +124,11 @@ bool MovePicker::next(Move &move)
129124 if (stage == Stage::HashMove)
130125 {
131126 stage = Stage::GenNoisy;
132- Move hash_move = get_hash_move (*position, *table );
133-
134- if (can_move (hash_move ))
127+ auto & entry = table-> retrieve (*position);
128+
129+ if (entry. hash == position-> key . data () && can_move ((Move)entry. move ))
135130 {
136- move = hash_move ;
131+ move = (Move)entry. move ;
137132 return true ;
138133 }
139134 }
Original file line number Diff line number Diff line change 2525#include " benchmark.h"
2626#include " searchinit.h"
2727
28- const char *version = " 5.55 " ;
28+ const char *version = " 5.6 " ;
2929
3030namespace
3131{
You can’t perform that action at this time.
0 commit comments