Documentation ¶
Index ¶
Constants ¶
View Source
const ( QueenSideBB = FileAMask | FileBMask | FileCMask | FileDMask KingSideBB = FileEMask | FileFMask | FileGMask | FileHMask )
Variables ¶
This section is empty.
Functions ¶
func RelativeRankOf ¶
func RelativeSquare ¶
Types ¶
type EvaluationService ¶
Weiss 2.0 eval. CCRL 40/15 3220 ELO. From here: https://github.com/TerjeKir/weiss
func NewEvaluationService ¶
func NewEvaluationService() *EvaluationService
func (*EvaluationService) EnableTuning ¶
func (e *EvaluationService) EnableTuning() *EvaluationService
func (*EvaluationService) Evaluate ¶
func (e *EvaluationService) Evaluate(p *Position) int
type Weights ¶
type Weights struct { PawnValue Score KnightValue Score BishopValue Score RookValue Score QueenValue Score BishopPair Score KnightMobility [9]Score BishopMobility [14]Score RookMobility [15]Score QueenMobility [28]Score PawnDoubled Score PawnSupport Score PawnOpen Score PawnPhalanx [RANK_NB]Score PawnIsolated Score PassedPawn [RANK_NB]Score PassedDefended [RANK_NB]Score PassedBlocked [RANK_NB]Score PassedDistUs [FILE_NB]Score PassedDistThem Score PassedRookBack Score KingAtkPawn Score NBBehindPawn Score RookFile [2]Score SafetyAttackPower [PIECE_NB]int SafetyCheckPower [PIECE_NB]int KingLineDanger [28]Score ThreatByPawn Score ThreatByPawnPush Score PSQT [COLOUR_NB][PIECE_NB][64]Score `json:"-"` }
Click to show internal directories.
Click to hide internal directories.