@@ -26,17 +26,17 @@ static const int NAKADE_PATTERNS[4] = {
26
26
static const int NAKADE_MAX_SIZE = NAKADE_5;
27
27
28
28
// 3目, 4目, 5目, 6目のナカデのパターンのハッシュ値
29
- unsigned long long nakade_hash[4 ][NAKADE_MAX_SIZE];
29
+ static unsigned long long nakade_hash[4 ][NAKADE_MAX_SIZE];
30
30
// 3目, 4目, 5目, 6目のナカデの急所
31
- int nakade_pos[4 ][NAKADE_MAX_SIZE];
31
+ static int nakade_pos[4 ][NAKADE_MAX_SIZE];
32
32
33
33
static int start = BOARD_MAX / 2 ;
34
34
35
35
// ナカデの存在可否を判定するためのビットマスク
36
- unsigned int nakade_pat3_mask[PAT3_MAX];
36
+ static unsigned int nakade_pat3_mask[PAT3_MAX];
37
37
38
38
// ナカデが現れないパターン
39
- const unsigned int nakade_none[134 ] = {
39
+ static const unsigned int nakade_none[134 ] = {
40
40
0x0000 , 0x0001 , 0x0004 , 0x0005 , 0x0006 , 0x0012 , 0x0015 , 0x0016 , 0x003f , 0x0044 ,
41
41
0x0045 , 0x0046 , 0x0048 , 0x0049 , 0x0054 , 0x0055 , 0x0056 , 0x0060 , 0x0061 , 0x0064 ,
42
42
0x0065 , 0x0068 , 0x0069 , 0x006a , 0x007f , 0x0180 , 0x0182 , 0x0184 , 0x0185 , 0x0186 ,
@@ -54,7 +54,7 @@ const unsigned int nakade_none[134] = {
54
54
};
55
55
56
56
// ナカデが出現するパターンとその方向
57
- const unsigned int nakade_mask[446 ][2 ] = {
57
+ static const unsigned int nakade_mask[446 ][2 ] = {
58
58
{0x0011 , 0x0004 }, {0x0019 , 0x0004 }, {0x0050 , 0x0004 }, {0x0051 , 0x0004 }, {0x0052 , 0x0004 },
59
59
{0x0058 , 0x0004 }, {0x0059 , 0x0004 }, {0x005a , 0x0004 }, {0x0062 , 0x0008 }, {0x0066 , 0x0008 },
60
60
{0x0140 , 0x1004 }, {0x0141 , 0x1004 }, {0x0142 , 0x1004 }, {0x0144 , 0x1000 }, {0x0145 , 0x1000 },
0 commit comments