getCustomState method

int getCustomState(
  1. int i
)

Retrieves the value of the custom state variable i.

Implementation

int getCustomState(int i) =>
    state.board[size.secretSquare(i)] >> Bishop.flagsStartBit;