Luecx / Koivisto

UCI Chess engine
GNU General Public License v3.0
148 stars 33 forks source link

Manhattan Distance wrong #236

Open Carbecq opened 2 months ago

Carbecq commented 2 months ago

Same as Chebyshev distance.

altarchess commented 2 months ago

Can you point to where it's wrong?

Carbecq commented 2 months ago

Hi,

In the file bitboard.h, line 458, 485, Manhattan distance and Chebyshev are the same.

Its should be this :

           int vertical   = abs(SQ::rank(sq1) - SQ::rank(sq2));             int horizontal = abs(SQ::file(sq1) - SQ::file(sq2));             MANHATTAN_DISTANCE[sq1][sq2] = vertical + horizontal;

I took the definition here : https://www.chessprogramming.org/Manhattan-Distance

Best Regards,

Philippe

De : altarchess @.> À : Luecx/Koivisto @.> Sujet : Re: [Luecx/Koivisto] Manhattan Distance wrong (Issue #236) Date : 09/09/2024 09:15:03 Europe/Paris Copie à : Carbecq @.>;    Author @.>

Can you point to where it's wrong?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>