module

Experion::Psqt

Constants

CENTER_D = StaticArray[3, 2, 1, 0, 0, 1, 2, 3]
EG_PAWN_RANK = StaticArray[0, 8, 12, 22, 44, 84, 150, 0]
MATERIAL_EG = StaticArray[94, 281, 297, 512, 936, 0]
MATERIAL_MG = StaticArray[82, 337, 365, 477, 1025, 0]
MG_PAWN_RANK = StaticArray[0, -12, -4, 8, 20, 42, 80, 0]
PHASE_INC = StaticArray[0, 1, 1, 2, 4, 0]

phase increments: N/B = 1, R = 2, Q = 4 (total 24)

TABLE_EG = StaticArray(Int32, 768).new(0)
TABLE_MG = StaticArray(Int32, 768).new(0)

Instance methods

apply_tuned
Source
eg(pc : Int, sq : Int) : Int32
Source
init
Source
mg(pc : Int, sq : Int) : Int32
Source
phase_of(pc : Int) : Int32
Source