Square.fromICString constructor

Square.fromICString(
  1. String s
)

Constructs new Square that corresponds to ICString representation s.

Implementation

Square.fromICString(String s)
    : row = int.parse(s.substring(1)) - 1,
      col = 'abcdefghijklmnopqrst'.indexOf(s[0]);