mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 11:39:15 +00:00
Fix an off-by-one bug in ThreatBonus[] table
We need a retuning anyhow. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
c20a41c9cf
commit
6c6b6cd1a4
1 changed files with 2 additions and 3 deletions
|
@ -133,12 +133,11 @@ namespace {
|
|||
// ThreatBonus[attacking][attacked] contains bonus according to which
|
||||
// piece type attacks which one.
|
||||
const Score ThreatBonus[8][8] = {
|
||||
{},
|
||||
{}, {},
|
||||
{ S(0, 0), S(18,37), S( 0, 0), S(37,47), S(55,97), S(55,97) }, // KNIGHT
|
||||
{ S(0, 0), S(18,37), S(37,47), S( 0, 0), S(55,97), S(55,97) }, // BISHOP
|
||||
{ S(0, 0), S( 9,27), S(27,47), S(27,47), S( 0, 0), S(37,47) }, // ROOK
|
||||
{ S(0, 0), S(27,37), S(27,37), S(27,37), S(27,37), S( 0, 0) }, // QUEEN
|
||||
{}, {}, {}
|
||||
{ S(0, 0), S(27,37), S(27,37), S(27,37), S(27,37), S( 0, 0) } // QUEEN
|
||||
};
|
||||
|
||||
// ThreatedByPawnPenalty[] contains a penalty according to which piece
|
||||
|
|
Loading…
Add table
Reference in a new issue