Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When White's second move is 10, when Black falls to the star point, White reacts differently. #25

Open
calcitem opened this issue Oct 19, 2019 · 8 comments

Comments

@calcitem
Copy link
Owner

当设置

   const depth_t placingDepthTable[] = {
        6, 14, 15, 16,      /* 0 ~ 3 */
        17, 16, 16, 14,     /* 4 ~ 7 */
        12, 12, 10, 7, 1     /* 8 ~ 12 */ /* 9 改为 10 */
    };

关闭随机, 仅当按 (2,2) (2,4) (2,8) 的顺序,白方才下到 (3,4), 其他时候无论怎么旋转都会封堵.

为什么会下到 (3,4)?

@calcitem
Copy link
Owner Author

是在 IDS 完成后正式搜索时改变 value 的:

Depth: 10
IDS:
==============================
==============================
==============================
50(50) : --------------- depth = 2/10 ---------------
[00] 16 (2,1)   50      10 *
[01] 21 (2,6)   150     0
[02] 25 (3,2)   150     0
[03] 27 (3,4)   150     0
[04] 29 (3,6)   150     0
[05] 31 (3,8)   150     0
[06] 9  (1,2)   150     0
[07] 11 (1,4)   150     0
[08] 13 (1,6)   150     0
[09] 15 (1,8)   150     0
[10] 18 (2,3)   150     0
[11] 20 (2,5)   150     0
[12] 22 (2,7)   150     0
[13] 24 (3,1)   150     0
[14] 26 (3,3)   150     0
[15] 28 (3,5)   150     0
[16] 30 (3,7)   150     0
[17] 8  (1,1)   150     0
[18] 10 (1,3)   150     0
[19] 12 (1,5)   150     0
[20] 14 (1,7)   150     0

0(-50) : --------------- depth = 3/10 ---------------
[00] 16 (2,1)   0       10 *
[01] 21 (2,6)   150     0
[02] 25 (3,2)   150     0
[03] 27 (3,4)   150     0
[04] 29 (3,6)   150     0
[05] 31 (3,8)   150     0
[06] 9  (1,2)   150     0
[07] 11 (1,4)   150     0
[08] 13 (1,6)   150     0
[09] 15 (1,8)   150     0
[10] 18 (2,3)   150     0
[11] 20 (2,5)   150     0
[12] 22 (2,7)   150     0
[13] 24 (3,1)   150     0
[14] 26 (3,3)   150     0
[15] 28 (3,5)   150     0
[16] 30 (3,7)   150     0
[17] 8  (1,1)   150     0
[18] 10 (1,3)   150     0
[19] 12 (1,5)   150     0
[20] 14 (1,7)   150     0

50(50) : --------------- depth = 4/10 ---------------
[00] 16 (2,1)   50      10 *
[01] 21 (2,6)   100     0
[02] 25 (3,2)   100     0
[03] 27 (3,4)   100     0
[04] 29 (3,6)   100     0
[05] 31 (3,8)   100     0
[06] 9  (1,2)   100     0
[07] 11 (1,4)   100     0
[08] 13 (1,6)   100     0
[09] 15 (1,8)   100     0
[10] 18 (2,3)   100     0
[11] 20 (2,5)   100     0
[12] 22 (2,7)   100     0
[13] 24 (3,1)   100     0
[14] 26 (3,3)   100     0
[15] 28 (3,5)   100     0
[16] 30 (3,7)   100     0
[17] 8  (1,1)   100     0
[18] 10 (1,3)   100     0
[19] 12 (1,5)   100     0
[20] 14 (1,7)   100     0

0(-50) : --------------- depth = 5/10 ---------------
[00] 16 (2,1)   0       10 *
[01] 21 (2,6)   150     0
[02] 25 (3,2)   150     0
[03] 27 (3,4)   150     0
[04] 29 (3,6)   150     0
[05] 31 (3,8)   150     0
[06] 9  (1,2)   150     0
[07] 11 (1,4)   150     0
[08] 13 (1,6)   150     0
[09] 15 (1,8)   150     0
[10] 18 (2,3)   150     0
[11] 20 (2,5)   150     0
[12] 22 (2,7)   150     0
[13] 24 (3,1)   150     0
[14] 26 (3,3)   150     0
[15] 28 (3,5)   150     0
[16] 30 (3,7)   150     0
[17] 8  (1,1)   150     0
[18] 10 (1,3)   150     0
[19] 12 (1,5)   150     0
[20] 14 (1,7)   150     0

100(100) : --------------- depth = 6/10 ---------------
[00] 16 (2,1)   100     10 *
[01] 21 (2,6)   100     0
[02] 25 (3,2)   100     0
[03] 27 (3,4)   100     0
[04] 29 (3,6)   100     0
[05] 31 (3,8)   100     0
[06] 9  (1,2)   100     0
[07] 11 (1,4)   100     0
[08] 13 (1,6)   100     0
[09] 15 (1,8)   100     0
[10] 18 (2,3)   100     0
[11] 20 (2,5)   100     0
[12] 22 (2,7)   100     0
[13] 24 (3,1)   100     0
[14] 26 (3,3)   100     0
[15] 28 (3,5)   100     0
[16] 30 (3,7)   100     0
[17] 8  (1,1)   100     0
[18] 10 (1,3)   100     0
[19] 12 (1,5)   100     0
[20] 14 (1,7)   100     0

150(50) : --------------- depth = 7/10 ---------------
[00] 16 (2,1)   150     10 *
[01] 21 (2,6)   150     0
[02] 25 (3,2)   150     0
[03] 27 (3,4)   150     0
[04] 29 (3,6)   150     0
[05] 31 (3,8)   150     0
[06] 9  (1,2)   150     0
[07] 11 (1,4)   150     0
[08] 13 (1,6)   150     0
[09] 15 (1,8)   150     0
[10] 18 (2,3)   150     0
[11] 20 (2,5)   150     0
[12] 22 (2,7)   150     0
[13] 24 (3,1)   150     0
[14] 26 (3,3)   150     0
[15] 28 (3,5)   150     0
[16] 30 (3,7)   150     0
[17] 8  (1,1)   150     0
[18] 10 (1,3)   150     0
[19] 12 (1,5)   150     0
[20] 14 (1,7)   150     0

100(-50) : --------------- depth = 8/10 ---------------
[00] 16 (2,1)   100     10 *
[01] 21 (2,6)   100     0
[02] 25 (3,2)   100     0
[03] 27 (3,4)   100     0
[04] 29 (3,6)   100     0
[05] 31 (3,8)   100     0
[06] 9  (1,2)   100     0
[07] 11 (1,4)   100     0
[08] 13 (1,6)   100     0
[09] 15 (1,8)   100     0
[10] 18 (2,3)   100     0
[11] 20 (2,5)   100     0
[12] 22 (2,7)   100     0
[13] 24 (3,1)   100     0
[14] 26 (3,3)   100     0
[15] 28 (3,5)   100     0
[16] 30 (3,7)   100     0
[17] 8  (1,1)   100     0
[18] 10 (1,3)   100     0
[19] 12 (1,5)   100     0
[20] 14 (1,7)   100     0

150(50) : --------------- depth = 9/10 ---------------
[00] 16 (2,1)   150     10 *
[01] 21 (2,6)   150     0
[02] 25 (3,2)   150     0
[03] 27 (3,4)   150     0
[04] 29 (3,6)   150     0
[05] 31 (3,8)   150     0
[06] 9  (1,2)   150     0
[07] 11 (1,4)   150     0
[08] 13 (1,6)   150     0
[09] 15 (1,8)   150     0
[10] 18 (2,3)   150     0
[11] 20 (2,5)   150     0
[12] 22 (2,7)   150     0
[13] 24 (3,1)   150     0
[14] 26 (3,3)   150     0
[15] 28 (3,5)   150     0
[16] 30 (3,7)   150     0
[17] 8  (1,1)   150     0
[18] 10 (1,3)   150     0
[19] 12 (1,5)   150     0
[20] 14 (1,7)   150     0


31 ----- 24 ----- 25
| \       |      / |
|  23 -- 16 -- 17  |
|  | \    |   / |  |
|  |  15-08-09  |  |
30-22-14    10-18-26
|  |  13-12-11  |  |
|  | /    |   \ |  |
|  21 -- 20 -- 19  |
| /       |      \ |
29 ----- 28 ----- 27

[00] 16 (2,1)   100     10
[01] 21 (2,6)   100     0
[02] 25 (3,2)   100     0
[03] 27 (3,4)   50      0
[04] 29 (3,6)   50      0
[05] 31 (3,8)   50      0
[06] 9  (1,2)   50      0
[07] 11 (1,4)   50      0
[08] 13 (1,6)   50      0
[09] 15 (1,8)   50      0
[10] 18 (2,3)   50      0
[11] 20 (2,5)   50      0
[12] 22 (2,7)   50      0
[13] 24 (3,1)   50      0
[14] 26 (3,3)   50      0
[15] 28 (3,5)   50      0
[16] 30 (3,7)   50      0
[17] 8  (1,1)   50      0
[18] 10 (1,3)   50      0
[19] 12 (1,5)   50      0
[20] 14 (1,7)   50      0
Evaluated: 60318 / 686795 = 8%
Pool 000001BADFD01070 - Used: 589824 (29%), Free: 1507328 (71%)

@calcitem
Copy link
Owner Author

到深度11时正常

31 ----- 24 ----- 25
| \       |      / |
|  23 -- 16 -- 17  |
|  | \    |   / |  |
|  |  15-08-09  |  |
30-22-14    10-18-26
|  |  13-12-11  |  |
|  | /    |   \ |  |
|  21 -- 20 -- 19  |
| /       |      \ |
29 ----- 28 ----- 27

[00] 16 (2,1)   150     10 *
[01] 27 (3,4)   150     0
[02] 29 (3,6)   150     0
[03] 31 (3,8)   150     0
[04] 9  (1,2)   150     0
[05] 11 (1,4)   150     0
[06] 13 (1,6)   150     0
[07] 15 (1,8)   150     0
[08] 18 (2,3)   150     0
[09] 20 (2,5)   150     0
[10] 22 (2,7)   150     0
[11] 24 (3,1)   150     0
[12] 26 (3,3)   150     0
[13] 28 (3,5)   150     0
[14] 30 (3,7)   150     0
[15] 8  (1,1)   150     0
[16] 10 (1,3)   150     0
[17] 12 (1,5)   150     0
[18] 14 (1,7)   150     0
[19] 21 (2,6)   150     0
[20] 25 (3,2)   150     0
Evaluated: 94936 / 1152350 = 8%
Pool 000001F4F09EE070 - Used: 573440 (28%), Free: 1523712 (72%)

Computer: (2,1)

@calcitem
Copy link
Owner Author

关闭 TT 后正常

@calcitem
Copy link
Owner Author

    if ((hashValue.type == hashfALPHA) && // 最多是 hashValue.value
        (hashValue.value <= alpha)) {
        return alpha;
    }

造成的

@calcitem
Copy link
Owner Author

@calcitem
Copy link
Owner Author

和 IDS Windows 有关

@calcitem
Copy link
Owner Author

(2,2) (2,4) (2,8) 的顺序,白方现在没有下到 (3,4)

@calcitem
Copy link
Owner Author

    type = tte.bound();

    switch (tte.bound()) {
    case BOUND_EXACT:
        return tte.value();
        break;
    case BOUND_UPPER:
        if (tte.value8 <= alpha) {
            return alpha;   // TODO: https://github.com/calcitem/Sanmill/issues/25
        }
        break;
    case BOUND_LOWER:
        if (tte.value() >= beta) {
            return beta;
        }
        break;
    default:
        break;
    }

与此有关?

@calcitem calcitem reopened this Apr 26, 2021
@calcitem calcitem changed the title 白方第2着深度为10时黑方落到星点时白方应对不一样 When White's second move is 10, when Black falls to the star point, White reacts differently. Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant