Home
last modified time | relevance | path

Searched refs:countlib (Results 1 – 25 of 36) sorted by relevance

12

/dports/games/nextgo/NeXTGo-3.0/
H A Dfindnext.c71 extern countlib(int,int,int);
106 countlib(ti, tj, currentStone); in findnextmove()
134 countlib(ti, tj, currentStone); in findnextmove()
162 countlib(ti, tj, currentStone); in findnextmove()
190 countlib(ti, tj, currentStone); in findnextmove()
H A Dfindwinr.c71 extern void countlib(int,int,int);
106 countlib(ti[u], tj[u], currentStone); in findwinner()
113 countlib(ti[v], tj[v], opposingStone); in findwinner()
H A Deval.c68 extern void countlib(int i, int j, int color);
81 countlib(i, j, color); in eval()
H A Dsuicide.c73 extern void countlib(int, int, int);
83 countlib(i, j, currentStone); in suicide()
H A Dgenmove.c77 extern void countlib(int,int,int);
151 countlib(*i, *j, currentStone); in genmove()
H A Dmatchpat.c74 extern void countlib(int,int,int);
152 countlib(my, nx, currentStone); /* check liberty */ in matchpat()
H A Dcountlib.c70 void countlib(int m,int n,int color) in countlib() function
H A Dgnugo.h69 extern void countlib(int m, int n, int color);
H A DGNUmakefile50 count.c countlib.c eval.c exambord.c findnext.c findopen.c\
H A DPB.project48 countlib.c,
H A DMakefile39 CFILES = count.c countlib.c eval.c exambord.c findnext.c findopen.c\
H A DNeXTGo.project48 countlib.c,
H A DDocumentation.gnugo120 invoke countlib to count liberties, if spot already taken
141 evaluate liberties of pieces of a particular color using countlib.
152 check to see if new move is suicide via countlib(). if it is, check to
157 countlib(m, n, color)
/dports/games/gnugo/gnugo-3.8/engine/
H A Daftermath.c62 && countlib(eyepos) == 1)) { in make_solid_eye()
358 && (libs > countlib(pos + dir) in do_aftermath_genmove()
383 && countlib(pos) == 1 in do_aftermath_genmove()
488 if (countlib(pos2) < 4) in do_aftermath_genmove()
490 if (countlib(pos2) < 3) in do_aftermath_genmove()
495 - countlib(pos2)); in do_aftermath_genmove()
590 && countlib(pos2) <= 2 in do_aftermath_genmove()
615 if (countlib(apos) < 6 in do_aftermath_genmove()
621 if (countlib(apos) <= 2) { in do_aftermath_genmove()
867 while (countlib(pos) == 1) { in do_aftermath_genmove()
[all …]
H A Dpersistent.c237 else if (((p[pos] & HIGH_LIBERTY_BIT) && countlib(pos) <= 4) in verify_stored_board()
238 || (p[pos] & HIGH_LIBERTY_BIT2 && countlib(pos) <= 3)) in verify_stored_board()
751 if (BOARD(i+di, j) == EMPTY || countlib(POS(i+di, j)) <= 2 in mark_string_hotspot_values()
752 || BOARD(i, j+dj) == EMPTY || countlib(POS(i, j+dj)) <= 2) in mark_string_hotspot_values()
921 if (countlib(adjs[r]) <= 3) { in compute_active_connection_area()
1071 if (countlib(adjs[r]) <= 3) { in compute_active_breakin_area()
1203 if (countlib(adjs[r]) <= 3) { in compute_active_owl_type_area()
1325 else if (IS_STONE(board[pos]) && countlib(pos) > 4 in compute_active_semeai_area()
1354 && (countlib(pos2) <= 4 in mark_dragon_hotspot_values()
1371 if (board[pos3] == EMPTY || countlib(pos3) <= 2 in mark_dragon_hotspot_values()
[all …]
H A Dreading.c553 if (countlib(astr) > countlib(bstr)) { in attack_either()
653 if (countlib(astr) > countlib(bstr)) { in defend_both()
728 if (countlib(epos) <= 4 in defend_both()
1165 liberties = countlib(str); in do_find_defense()
2803 liberties = countlib(str); in do_attack()
3962 if (countlib(str) == 2)
3966 if (countlib(dpos) == 1)
3970 if (countlib(str) == 2)
3974 else if (countlib(cpos) == 2 && countlib(dpos) > 1) {
4054 if (countlib(dpos) == 1) { in edge_block_moves()
[all …]
H A Dreadconnect.c1506 if (countlib(str) == 1) { in quiescence_capture()
1524 if (countlib(str) == 1)
2463 if (countlib(pos) <= 2) { in find_connection_moves()
2482 if (countlib(pos) <= 2) { in find_connection_moves()
2528 && countlib(str1) == 3) in find_connection_moves()
3352 && countlib(gpos) <= 3) in case_16_17_18_helper()
3791 && countlib(pos) >= 3 in spread_connection_distances()
3848 && (countlib(apos) + countlib(gpos) <= 6)) { in spread_connection_distances()
3860 && (countlib(apos) + countlib(gpos) <= 5)) { in spread_connection_distances()
3868 && countlib(pos) <= 2 in spread_connection_distances()
[all …]
H A Dcombination.c582 && countlib(pos) == 2 in compute_aa_status()
763 if (countlib(apos) <= 2) { in do_atari_atari()
1058 if (countlib(str) > 2) in atari_atari_attack_callback()
1384 int libs = countlib(pos2); in update_aa_goal()
1565 && countlib(SOUTH(pos)) == 2)
1569 && countlib(WEST(pos)) == 2)
1573 && countlib(NORTH(pos)) == 2)
1577 && countlib(EAST(pos)) == 2)
H A Dunconditional.c409 if (board[pos] != other || countlib(pos) > 1) in unconditional_life()
489 if (board[pos] != other || countlib(pos) != 2) in unconditional_life()
535 else if (board[pos] == other && countlib(pos) == 1) { in unconditional_life()
H A Dendgame.c153 if (countlib(pos) > 1) { in endgame_analyze_worm_liberties()
336 if (countlib(pos) > 1) { in endgame_analyze_worm_liberties()
H A Dfilllib.c434 if (opponent_libs < 5 && countlib(adjs[k]) != opponent_libs) in find_backfilling_move()
463 if (opponent_libs < 5 && countlib(adjs[k]) != opponent_libs) in find_backfilling_move()
H A Dvalue_moves.c78 if (newlibs >= countlib(ss[k])) { in move_connects_strings()
79 if (countlib(ss[k]) <= 4) in move_connects_strings()
81 if (countlib(ss[k]) <= 2) in move_connects_strings()
86 if (countlib(ss[k]) <= 2) in move_connects_strings()
88 if (countlib(ss[k]) <= 1 && to_move) { in move_connects_strings()
2101 if (countlib(adjs[s]) == 1) { in estimate_territorial_value()
3442 if (ON_BOARD(ko_stone) && countlib(ko_stone) == 1) in reevaluate_ko_threats()
H A Dboard.h334 int countlib(int str);
/dports/games/gnugo/gnugo-3.8/patterns/
H A Dhelpers.c268 ASSERT1(countlib(move) == 2, move); in edge_double_sente_helper()
399 ASSERT1(countlib(str) == 2, str); in defend_against_atari_helper()
840 int lib = countlib(str); in distrust_tactics_helper()
/dports/games/gogui/gogui-1.4.10/src/net/sf/gogui/gui/
H A Danalyze-commands26 string/CountLib/countlib %p

12