nknguyenhc / CS3263-project

Xiangqi engine using principal variation search
0 stars 0 forks source link

Erronous move calculation #8

Closed nknguyenhc closed 5 months ago

nknguyenhc commented 5 months ago

These are errors purely due to calculation, not due the game progress. I.e., a fresh board would still give rise to an erronous move.

-- -- E1 A1 K1 A1 E1 -- --
-- -- -- -- -- -- -- -- --
-- -- H1 -- -- -- -- -- C1
P1 -- P1 -- P1 -- -- -- P1
-- -- -- -- -- -- P1 -- --
P0 -- -- -- -- -- -- R1 --
-- -- R1 -- C1 -- P0 -- P0
-- -- -- -- C0 -- -- -- C0
-- -- -- -- H0 -- -- -- R0
-- R0 E0 A0 K0 A0 E0 -- --

Must-do move: R1.4 Move selected: C1+4

-- -- E1 A1 K1 A1 E1 -- --
-- -- -- -- -- -- -- -- --
-- -- -- -- -- -- H1 -- --
P1 -- -- C1 P1 -- P1 -- P1
-- H1 -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- --
P0 -- -- -- P0 -- P0 -- P0
R0 -- H0 -- E0 -- R1 -- C0
-- -- -- -- A0 -- -- -- R0
-- -- E0 A0 K0 -- -- R1 --

Must-do move: A5-4 Move selected: E5-3

nknguyenhc commented 5 months ago

Somewhat resolved.

For first case, the engine chooses between C1+4 and R1.4.

For second case, the engine now definitely chooses A5-4.