文件名称:wuziqi
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.09kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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
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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
wuziqi.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.