SquareInfo constructor

SquareInfo(
  1. int index,
  2. double size
)

Implementation

SquareInfo(this.index, this.size) : file = ((index % 8) + 1), rank = ((index / 8).floor() + 1);