Tabla de șah devine matrice cu semne (+v alb, −v negru), iar scorul maxim se află ca suma maximă a unei submatrice cu Kadane 2D.