Offset

data class Offset(val fileDelta: Int, val rankDelta: Int)

Represents a relative offset in file and rank for chess piece movement.

Constructors

Link copied to clipboard
constructor(fileDelta: Int, rankDelta: Int)

Properties

Link copied to clipboard

The change in file (horizontal movement).

Link copied to clipboard

The change in rank (vertical movement).