some late comments :)
[gostyle.git] / PATCH_pachi.diff
blob042b6cba3b8b2fbabbc247d6b35d99fba3c51ae0
1 diff --git a/pattern.c b/pattern.c
2 index 6843be0..c4e8aed 100644
3 --- a/pattern.c
4 +++ b/pattern.c
5 @@ -16,7 +16,7 @@
8 struct pattern_config DEFAULT_PATTERN_CONFIG = {
9 - .bdist_max = 4,
10 + .bdist_max = 10,
12 .spat_min = 3, .spat_max = MAX_PATTERN_DIST,
13 .spat_largest = true,
14 @@ -30,7 +30,7 @@ pattern_spec PATTERN_SPEC_MATCH_DEFAULT = {
15 [FEAT_SELFATARI] = ~0,
16 [FEAT_ATARI] = ~0,
17 [FEAT_BORDER] = ~0,
18 - [FEAT_CONTIGUITY] = 0,
19 + [FEAT_CONTIGUITY] = ~0,
20 [FEAT_SPATIAL] = ~0,
23 @@ -530,10 +530,11 @@ pattern_match(struct pattern_config *pc, pattern_spec ps,
27 - if (PS_ANY(CONTIGUITY) && !is_pass(b->last_move.coord)
28 - && coord_is_8adjecent(m->coord, b->last_move.coord, b)) {
29 + if (PS_ANY(CONTIGUITY) && !is_pass(b->last_move.coord) ){
30 + //if (coord_is_8adjecent(m->coord, b->last_move.coord, b)) { }
32 f->id = FEAT_CONTIGUITY;
33 - f->payload = 1;
34 + f->payload = coord_gridcular_distance(m->coord, b->last_move.coord, b);
35 (f++, p->n++);