Advertisement
Guest User

Untitled

a guest
Jul 25th, 2020
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. float score = 0.0;
  2.  for (int i = 0; i < 8; i++) {
  3.     int c0 = __builtin_popcount(won_boards[0] & WINS[i]);
  4.     int c1 = __builtin_popcount(won_boards[1] & WINS[i]);
  5.     score += W_SCORE * (c0 - c1);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement