Skip to content

Commit 6cece24

Browse files
authored
Merge pull request #120 from kobanium/ver-9.0
Refactoring
2 parents 354ea3b + 52e0579 commit 6cece24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Nakade.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ static const int NAKADE_PATTERNS[4] = {
2626
static const int NAKADE_MAX_SIZE = NAKADE_5;
2727

2828
// 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];
3030
// 3目, 4目, 5目, 6目のナカデの急所
31-
int nakade_pos[4][NAKADE_MAX_SIZE];
31+
static int nakade_pos[4][NAKADE_MAX_SIZE];
3232

3333
static int start = BOARD_MAX / 2;
3434

3535
// ナカデの存在可否を判定するためのビットマスク
36-
unsigned int nakade_pat3_mask[PAT3_MAX];
36+
static unsigned int nakade_pat3_mask[PAT3_MAX];
3737

3838
// ナカデが現れないパターン
39-
const unsigned int nakade_none[134] = {
39+
static const unsigned int nakade_none[134] = {
4040
0x0000, 0x0001, 0x0004, 0x0005, 0x0006, 0x0012, 0x0015, 0x0016, 0x003f, 0x0044,
4141
0x0045, 0x0046, 0x0048, 0x0049, 0x0054, 0x0055, 0x0056, 0x0060, 0x0061, 0x0064,
4242
0x0065, 0x0068, 0x0069, 0x006a, 0x007f, 0x0180, 0x0182, 0x0184, 0x0185, 0x0186,
@@ -54,7 +54,7 @@ const unsigned int nakade_none[134] = {
5454
};
5555

5656
// ナカデが出現するパターンとその方向
57-
const unsigned int nakade_mask[446][2] = {
57+
static const unsigned int nakade_mask[446][2] = {
5858
{0x0011, 0x0004}, {0x0019, 0x0004}, {0x0050, 0x0004}, {0x0051, 0x0004}, {0x0052, 0x0004},
5959
{0x0058, 0x0004}, {0x0059, 0x0004}, {0x005a, 0x0004}, {0x0062, 0x0008}, {0x0066, 0x0008},
6060
{0x0140, 0x1004}, {0x0141, 0x1004}, {0x0142, 0x1004}, {0x0144, 0x1000}, {0x0145, 0x1000},

0 commit comments

Comments
 (0)