91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 603KB
    文件類型: .gz
    金幣: 1
    下載: 2 次
    發布日期: 2021-06-09
  • 語言: Html/CSS
  • 標簽: gnugo??圍棋??

資源簡介

GNU Go是免費的帶源代碼的人機對弈軟件,棋力在九級左右。和其它GNU 軟件一樣, 它遵從 GNU 公用許可證GPL。你可免費獲得它的源代碼,并可自由使用和修改。 但GNU GO只提供字符界面,更多相關內容請參見其主頁: http://www.gnu.org/software/gnugo/gnugo.html

資源截圖

代碼片段和文件信息

/*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*\
?*?This?is?GNU?GO?a?Go?program.?Contact?gnugo@gnu.org?or?see???*
?*?http://www.gnu.org/software/gnugo/?for?more?information.??????*
?*???????????????????????????????????????????????????????????????*
?*?Copyright?1999?and?2000?by?the?Free?Software?Foundation.??????*
?*???????????????????????????????????????????????????????????????*
?*?This?program?is?free?software;?you?can?redistribute?it?and/or?*
?*?modify?it?under?the?terms?of?the?GNU?General?Public?License???*
?*?as?published?by?the?Free?Software?Foundation?-?version?2.?????*
?*???????????????????????????????????????????????????????????????*
?*?This?program?is?distributed?in?the?hope?that?it?will?be???????*
?*?useful?but?WITHOUT?ANY?WARRANTY;?without?even?the?implied????*
?*?warranty?of?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR???????*
?*?PURPOSE.??See?the?GNU?General?Public?License?in?file?COPYING??*
?*?for?more?details.?????????????????????????????????????????????*
?*???????????????????????????????????????????????????????????????*
?*?You?should?have?received?a?copy?of?the?GNU?General?Public?????*
?*?License?along?with?this?program;?if?not?write?to?the?Free????*
?*?Software?Foundation?Inc.?59?Temple?Place?-?Suite?330???????*
?*?Boston?MA?02111?USA?????????????????????????????????????????*
\*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*/


/*?---------------------------------------------------
?*???attdef.c?--?Find?attacking?and?defending?moves.
?*?----------------------------------------------------
?*/

/*
?*?This?file?contains?move?generators?directly?called?by?genmove().
?*/


#include?
#include?
#include?
#include?“liberty.h“


static?int?active_defense(int?m?int?n?int?color);


/*?defender()?looks?for?strings?of?my?color?which?you?can?kill?and
?*?recommends?defending?them.
?*/

int?
defender?(int?*i?int?*j?int?*val?int?*equal_moves?int?color
??int?shapei?int?shapej)
{
??int?m?n?tval;
??int?found_one=0;
??int?ti?tj;
??
??TRACE(“Defender?is?THINKING?for?%s!\n“?color==WHITE???“white“?:?“black“);
??
??for?(m=0;m????for?(n=0;n
??????if?(p[m][n]?!=?color?????????????????/*?our?piece?*/
??||?worm[m][n].origini?!=?m???????/*?origin?of?...?*/
??||?worm[m][n].originj?!=?n???????/*?...?a?worm?*/
??||?worm[m][n].attacki?==?-1??????/*?en?prise???*/
??||?worm[m][n].defendi?==?-1??????/*?defensible?*/
??||?worm[m][n].ko????????????????/*?ko?left?to?ko_important_helper?*/
??||?worm[m][n].inessential
??||?!legal(worm[m][n].defendi?worm[m][n].defendj?color))?/*?legal?*/
continue;

??????/*?Considered?move?*/
??????ti?=?worm[m][n].defendi;
??????tj?=?worm[m][n].defendj;
??
??????/*?bonus?if?the?string?has?fewer?liberties?since?capturing
???????*?leaves?less?aji
???????*/
??????tval?=?worm[m][n].value?+?3?-?2*worm[m][n].liberties;

??????/*?penalty?if?the?string?is?nearly?surrounded.?*/
??????if?(dragon[m][n].escape_route?

評論

共有 條評論

相關資源