Ticket #201: gunnar_7_12.11.diff
| File gunnar_7_12.11.diff, 2.6 kB (added by gunnar, 7 months ago) |
|---|
-
engine/owl.c
1442 1442 owl_update_goal(move, same_dragon, lunch, owlb, 1, pattern_data); 1443 1443 owl_update_boundary_marks(move, owla); 1444 1444 } 1445 mark_goal_ in_sgf(owla->goal);1446 mark_goal_ in_sgf(owlb->goal);1445 mark_goal_and_boundary_in_sgf(owla->goal, owla->boundary); 1446 mark_goal_and_boundary_in_sgf(owlb->goal, owlb->boundary); 1447 1447 1448 1448 /* Do a recursive call to read the semeai after the move we just 1449 1449 * tried. If dragon b was captured by the move, call … … 2358 2358 if (!owl->goal[origin]) 2359 2359 origin = select_new_goal_origin(origin, owl); 2360 2360 } 2361 mark_goal_ in_sgf(owl->goal);2361 mark_goal_and_boundary_in_sgf(owl->goal, owl->boundary); 2362 2362 2363 2363 if (origin == NO_MOVE) 2364 2364 dcode = 0; … … 2931 2931 */ 2932 2932 owl_update_goal(mpos, moves[k].same_dragon, moves[k].lunch, owl, 0, 2933 2933 moves[k].pattern_data); 2934 mark_goal_ in_sgf(owl->goal);2934 mark_goal_and_boundary_in_sgf(owl->goal, owl->boundary); 2935 2935 2936 2936 if (!ko_move) { 2937 2937 int acode = do_owl_attack(str, NULL, &wid, owl, new_escape); -
engine/printutils.c
515 515 * This function cannot be in sgf/ as it has to understand the 1-D board. 516 516 */ 517 517 void 518 mark_goal_in_sgf(signed char goal[BOARDMAX]) 518 mark_goal_and_boundary_in_sgf(signed char goal[BOARDMAX], 519 signed char boundary[BOARDMAX]) 519 520 { 520 521 int pos; 521 522 SGFNode *node; … … 524 525 return; 525 526 node = sgftreeNodeCheck(sgf_dumptree); 526 527 527 for (pos = BOARDMIN; pos < BOARDMAX; pos++) 528 for (pos = BOARDMIN; pos < BOARDMAX; pos++) { 529 if (ON_BOARD(pos) && boundary[pos] == 1) 530 sgfCircle(node, I(pos), J(pos)); 531 if (ON_BOARD(pos) && boundary[pos] == 2) 532 sgfTriangle(node, I(pos), J(pos)); 528 533 if (ON_BOARD(pos) && goal[pos]) 529 534 sgfSquare(node, I(pos), J(pos)); 535 } 530 536 } 531 537 532 538 -
engine/board.h
431 431 void draw_letter_coordinates(FILE *outfile); 432 432 void simple_showboard(FILE *outfile); 433 433 434 void mark_goal_in_sgf(signed char goal[BOARDMAX]); 434 void mark_goal_and_boundary_in_sgf(signed char goal[BOARDMAX], 435 signed char boundary[BOARDMAX]); 435 436 436 437 /* ================================================================ */ 437 438 /* assertions */
