联合开发网   搜索   要求与建议
                登陆    注册
排序按匹配   按投票   按下载次数   按上传日期
按分类查找All 图形图像处理(1) 
按平台查找All TEXT(1) 

[图形图像处理] wuziqi

1、首先遍历整个棋盘,找到一个可以落子的点,然后假设自己在该点落子,再然后判断如果棋子落到这个点上后会对自己有什么利益,比如会不会形成冲4活三、双活三等等,(事先将冲四活三、双活三等效果定义上利益值,当然,如果是五个子连起来了的话,利益值要被定义成最高,最好是无穷大的),将各种效果的利益值相加,得到己方的利益值。 2、将角色互换一下,重复第一步,得到对方的利益值(其实是递桂算法)。 3、将己方的利益值减去对方的利益值,得到该点的总利益值。 4、整个棋盘所有能落子的点都计算出利益值之后,找出利益值最大的那个点,将棋子落到该点。
1, first of all through the entire board, find a Lazi point, and then assuming that point Lazi himself, and then determine if the pieces will fall after this point, what benefits they have, for example, will form a red 4 live III three pairs of living, etc., (in advance washed four live three pairs of the interests of the living definition of the value of third-class effects, of course, if it is not even up five children, then the value of the interest to be defined as the highest, the best is infinite), the the interests of all kinds of effects the value added to get the value of one s own interests. 2, look at the role reversal, repeat the first step, get the value of each other s interests (in fact, delivery Guangxi algorithm). 3, will be minus the value of one s own interests the interests of the other values, get the point value of the total benefits. 4, the entire board of all the points can be calculated Lazi the interests of value, find the value of the interests of the l (2010-03-17, TEXT, 2KB, 下载19次)

http://www.pudn.com/Download/item/id/1090230.html
总计:1