Skip to content

Commit

Permalink
方向利きのUnitTestでall_ok &=の代わりにall_ok =になっていたのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
KazApps committed Aug 25, 2024
1 parent 2266fb6 commit 072819e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/bitboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,11 +1023,11 @@ void Bitboard::UnitTest(Test::UnitTester& tester)
bool all_ok = true;
Bitboard occ(SQ_77);
Bitboard zero(ZERO);
all_ok = rayEffect<Effect8::DIRECT_LD>(SQ_55, occ) == between_bb(SQ_55, SQ_88);
all_ok = rayEffect<Effect8::DIRECT_LD>(SQ_55, zero) == QUGIY_STEP_EFFECT[Effect8::DIRECT_LD - 2][SQ_55];
all_ok &= rayEffect<Effect8::DIRECT_LD>(SQ_55, occ) == between_bb(SQ_55, SQ_88);
all_ok &= rayEffect<Effect8::DIRECT_LD>(SQ_55, zero) == QUGIY_STEP_EFFECT[Effect8::DIRECT_LD - 2][SQ_55];

Bitboard occ2(SQ_33);
all_ok = rayEffect<Effect8::DIRECT_RU>(SQ_55, occ2) == between_bb(SQ_55, SQ_22);
all_ok &= rayEffect<Effect8::DIRECT_RU>(SQ_55, occ2) == between_bb(SQ_55, SQ_22);

tester.test("rayEffect", all_ok);
}
Expand Down

0 comments on commit 072819e

Please sign in to comment.