o-jill / ruversi

reversi program.
https://o-jill.github.io/ruversi/
1 stars 0 forks source link

duelの結果がおかしい。 #46

Closed o-jill closed 2 years ago

o-jill commented 2 years ago

bitboardのduel対応にミスったっぽいです。

total,112,win,76,draw,3,lose,33,69.72%,R,+144.9
ev1 @@,win,0,draw,0,lose,0
ev1 [],win,76,draw,3,lose,33
ev1:evaltable.txt
ev2:evaltable.txt.old
o-jill commented 2 years ago

先後交代後はnth(1)が正解。

            teban = g.kifu.nth(0).teban;  // <---
            result = dresult.unwrap();
        } else {
            // prepare game
            let mut g = game::Game::from(rfen);
            g.start_with_2et(node::Node::think_ab, 7, &w2, &w1).unwrap();
            let dresult = g.kifu.winner();
            teban = g.kifu.nth(0).teban;  // <---
o-jill commented 2 years ago

直した。 876834ded98e7b81