Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sassa7777 committed Aug 18, 2024
1 parent f79fb60 commit 17099a8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Binary file not shown.
1 change: 0 additions & 1 deletion Reversi/book/cow.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const ankerl::unordered_dense::map<std::pair<uint64_t, uint64_t>, uint64_t> book

const ankerl::unordered_dense::map<std::pair<uint64_t, uint64_t>, uint64_t> book_ura_yotto = {
{std::make_pair(0x800080800, 0x101E140000), 0x20000},
{std::make_pair(0x101A100000, 0x8040E0800), 0x8}
};


Expand Down
3 changes: 1 addition & 2 deletions Reversi/reversi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1449,8 +1449,7 @@ inline int score_fixedstone(const uint64_t &playerboard, const uint64_t &opponen
}

inline int countscore(const uint64_t &playerboard, const uint64_t &opponentboard, const char &afterIndex) {
return (afterIndex >= 60) ? __builtin_popcountll(playerboard) - __builtin_popcountll(opponentboard) :
(!playerboard) ? MIN_INF :
return (!playerboard) ? MIN_INF :
(!opponentboard) ? MAX_INF :
(afterIndex >= 41) ? score_stone(playerboard, opponentboard)*3 + score_fixedstone(playerboard, opponentboard) * 20:
score_stone(playerboard, opponentboard)*3 + score_fixedstone(playerboard, opponentboard)*20 + score_putable(playerboard, opponentboard);
Expand Down

0 comments on commit 17099a8

Please sign in to comment.