Score Chart

Score Chart

The score chart shows the material score (blue) representing material budget where the pieces represent as usual the values

  • \(s_{pawn} = 1\)

  • \(s_{knight} = 3\)

  • \(s_{bishop} = 3\)

  • \(s_{rook} = 5\)

  • \(s_{queen} = 9\)

If available, the scores emitted by a chess engine (red) are also shown. The engine annotations require command tags according to PGNExt supplement, i.e. tags like [%eval score] or [% score] score is the score [centipawn].

The handling of positions close to mate vary from GUI to GUI. This GUI delivers for a mate in n moves a score of

  • mateScore - n, if black is facing a mate in $n$

  • n -mateScore, if white is facing a mate in $n$

with \(mateScore = 100\).

The actual position of the game and the corresponding score values are indicated in the score graph. It is updated when it changes.

It is possible to control the zoom of the Score axis. The GUI with an ongoing zoom process is shown here.

Zoom control by mouse

Key

Description

mouse-left-press

begin zoom

mouse-left-release

end zoom

mouse-right-release

reset zoom

class scoreplotgraphicsview.ScorePlot(parent: QObject | None = None)[source]

Score plot object

__init__(parent: QObject | None = None) None[source]
setup(notifyGameNodeSelectedSignal: pyqtSignal | None = None)[source]

Set up of the score

Parameters:

notifyGameNodeSelectedSignal – signal to be emitted if a game node is selected

static minQtVersion(major: int, minor: int, patch: int = 0) bool[source]

Checks whether the actual Qt-version is smaller or equal than the specified version

Parameters:
  • major – specified major version number

  • minor – specified minor version number

  • patch – specified patch number

Returns:

True, if the actual Qt-version is smaller or equal than the specified version

resetChart() None[source]

Clears the chart

copyAsBitmap(width: int = None) None[source]

Copies the chart as a bitmap to clipboard

Parameters:

width – width of the bitmap (Def: current width of the bounding box)

selectNodeItem(gameNode: GameNode) None[source]

Selects a game node

Parameters:

gameNode – game node to be selected

addGameNodes(gameNode: GameNode) None[source]

Adds 1 or more nodes, parent node of first node must exist in the editor

Parameters:

gameNode – game node to be added (must be main_variation !!)

setGame(game: Game) None[source]

Sets a new game

Parameters:

game – game node to be set

mouseReleaseEvent(self, QMouseEvent)[source]