analyzer

package module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 6 Imported by: 0

README

Go Version Tests codecov

Chesstutis Game Analyzer

  • given a chess "Game" from github.com/corentings/chess/v2 output a game analysis and puzzles based on the mistakes each player made
  • for now analysis will only output puzzles

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

func NewAnalyzer

func NewAnalyzer(eng *uci.Engine, cfgs ...Config) (*Analyzer, error)

func (*Analyzer) AnalyzeGame

func (a *Analyzer) AnalyzeGame(game *chess.Game, color chess.Color) (*GameAnalysis, error)

func (*Analyzer) Close

func (a *Analyzer) Close()

type Config

type Config struct {
	Threads            int
	HashMB             int
	BestMoveDepth      int
	VerifyMoveTime     time.Duration
	BlunderThresholdCP int
	SkipOpeningPlies   int
}

func DefaultConfig

func DefaultConfig() Config

type GameAnalysis

type GameAnalysis struct {
	Puzzles []Puzzle
}

type Puzzle

type Puzzle struct {
	Position   *chess.Position
	PlayerMove *chess.Move
	BestMove   *chess.Move
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL