computeCornerParity method

int computeCornerParity()

Implementation

int computeCornerParity() {
  var s = 0;

  for (var i = Corner.downRightBottom.index; i >= Corner.upRightFront.index + 1; i--) {
    for (var j = i - 1; j >= Corner.upRightFront.index; j--) {
      if (_cp[j].index > _cp[i].index) {
        s++;
      }
    }
  }

  return s % 2;
}