assert(Math.floor(mate[i] / 2) === k && Math.floor(mate[j] / 2) === k);