Skip to content

Commit

Permalink
- Moveをclass化したときに、ふかうら王でビルドが通っていなかったの修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
yaneurao committed Oct 14, 2024
1 parent 8d88446 commit 01e5040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/book/makebook2015.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion source/eval/deep/nn_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01e5040

Please sign in to comment.