Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Bench: 14096881
  • Loading branch information
Aryan1508 committed Jul 2, 2021
commit 9acfe2df57584efa855d2b29c88cf423cab7de2e
44 changes: 0 additions & 44 deletions Bit-Genie/src/killer.h

This file was deleted.

1 change: 0 additions & 1 deletion Bit-Genie/src/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ enum PieceType : uint8_t;
enum Color : uint8_t;

class CastleRights;
class Killers;
class Movelist;
class PieceManager;
class Position;
Expand Down
4 changes: 2 additions & 2 deletions Bit-Genie/src/moveorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ bool MovePicker::next(Move &move)
if (stage == Stage::Killer1)
{
stage = Stage::Killer2;
Move killer = search->killers.first(search->stats.ply);
Move killer = search->killers[search->stats.ply][0];

if (can_move(killer))
{
Expand All @@ -202,7 +202,7 @@ bool MovePicker::next(Move &move)
if (stage == Stage::Killer2)
{
stage = Stage::GiveBadNoisy;
Move killer = search->killers.second(search->stats.ply);
Move killer = search->killers[search->stats.ply][1];

if (can_move(killer))
{
Expand Down
8 changes: 7 additions & 1 deletion Bit-Genie/src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ namespace
return std::abs(alpha - beta) > 1;
}

void add_killer(Search::Info& search, Move move)
{
search.killers[search.stats.ply][1] = search.killers[search.stats.ply][0];
search.killers[search.stats.ply][0] = move;
}

SearchResult pvs(Search::Info& search, int depth, int alpha, int beta, bool do_null = true)
{
if (search.limits.stopped)
Expand Down Expand Up @@ -239,7 +245,7 @@ namespace
{
search.history.add(position, move, depth * depth);
search.history.penalty(position, picker.gen.movelist, move, depth);
search.killers.add(search.stats.ply, move);
add_killer(search, move);
}
break;
}
Expand Down
3 changes: 1 addition & 2 deletions Bit-Genie/src/search.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#pragma once
#include "searchstats.h"
#include "searchlimits.h"
#include "killer.h"
#include "shistory.h"
#include <atomic>

Expand All @@ -29,7 +28,7 @@ namespace Search
Position* position;
Stats stats;
Limits limits;
Killers killers;
Move killers[64][2] = {NullMove};
SHistory history;

void update();
Expand Down
2 changes: 1 addition & 1 deletion Bit-Genie/src/uci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "searchinit.h"
#include "polyglot.h"

const char *version = "7.15";
const char *version = "7.16";

namespace
{
Expand Down