From 01e5040542807b51a9cde5ca62865b157ebe3228 Mon Sep 17 00:00:00 2001 From: yaneurao Date: Mon, 14 Oct 2024 16:41:49 +0900 Subject: [PATCH] =?UTF-8?q?-=20Move=E3=82=92class=E5=8C=96=E3=81=97?= =?UTF-8?q?=E3=81=9F=E3=81=A8=E3=81=8D=E3=81=AB=E3=80=81=E3=81=B5=E3=81=8B?= =?UTF-8?q?=E3=81=86=E3=82=89=E7=8E=8B=E3=81=A7=E3=83=93=E3=83=AB=E3=83=89?= =?UTF-8?q?=E3=81=8C=E9=80=9A=E3=81=A3=E3=81=A6=E3=81=84=E3=81=AA=E3=81=8B?= =?UTF-8?q?=E3=81=A3=E3=81=9F=E3=81=AE=E4=BF=AE=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/book/makebook2015.cpp | 2 +- source/eval/deep/nn_types.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/book/makebook2015.cpp b/source/book/makebook2015.cpp index 41014d555..69c4ae4b3 100644 --- a/source/book/makebook2015.cpp +++ b/source/book/makebook2015.cpp @@ -403,7 +403,7 @@ namespace Book Move move = USI::to_move(pos, token); // illigal moveであるとMOVE_NONEが返る。 - if (move == MOVE_NONE) + if (move == Move::none()) { cout << "illegal move : line = " << (k + 1) << " , " << sfen << " , move = " << token << endl; break; diff --git a/source/eval/deep/nn_types.cpp b/source/eval/deep/nn_types.cpp index 3fa17b11a..03bcc07cc 100644 --- a/source/eval/deep/nn_types.cpp +++ b/source/eval/deep/nn_types.cpp @@ -552,7 +552,7 @@ namespace Eval::dlshogi // 指し手に対して、Policy Networkの返してくる配列のindexを返す。 int make_move_label(Move move, Color color) { - return MoveLabel[move & 0xffff][color]; + return MoveLabel[move.to_u16()][color]; } // Boltzmann distribution