get

fun get(index: Int): Square

Returns the Square enum constant corresponding to the given zero-based index (0-63). This uses the standard file-major ordering (A1=0, H8=63).

Return

The corresponding Square enum constant.

Since

1.0.0-beta.1

Parameters

index

The zero-based index of the square.

Throws

if the index is outside the 0-63 range.