]> git.sesse.net Git - stockfish/commit - src/main.cpp
Use simple array for Pawns Connected bonus #2061
authorprotonspring <mike@whiteley.org>
Mon, 25 Mar 2019 19:04:14 +0000 (13:04 -0600)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 31 Mar 2019 09:28:48 +0000 (11:28 +0200)
commit95ba7f78d5e025499ec8124e37e9f3b769660e4a
treee41daf4c9f713050fd062255c0cfc64e422ab737
parent76f1807baa90eb69f66001d25df2a28533f9406f
Use simple array for Pawns Connected bonus #2061

Simplification which removes the pawns connected array.
Instead of storing the values in an array, the values are
calculated real-time. This is about 1.6% faster on my machines.

Performance:
master ave nps: 159,248,672
patch ave nps: 161,905,592

STC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 20363 W: 4579 L: 4455 D: 11329
http://tests.stockfishchess.org/tests/view/5c9925ba0ebc5925cfff79a6

Non functional change.
src/main.cpp
src/pawns.cpp
src/pawns.h