文件名称:斗地主ai
介绍说明--下载内容来自于网络,使用问题请自行百度
//使用方法:
//首先创建m_pRobot = new CRobot()对象
//叫分:
//1.初始化手牌到m_pRobot->m_szHandCards数组,手牌按牌面从小到大排序,例:200,300,101,201,102,403,205,311,210,310....,注意数组大小,不要有空值或者0值
//2.调用解析函数m_pRobot->Resolution();
//3.获取叫分m_pRobot->getCallF(),返回0不叫,1一倍 2两倍 3三倍
//出牌:
//1.初始化手牌到m_pRobot->m_szHandCards数组
//2.调用解析函数m_pRobot->Resolution();
//3.设置牌池中的出牌数据:
//a.m_pRobot->m_nLastPutCardIndex最后那个出牌人的座位号[0,1,2]
//b.m_pRobot->m_nLastPutCardNum牌池内牌型有多少张
//c.m_pRobot->m_szLastPutCard牌池内牌型,按牌面从小到大排序(// Method of use:
// First create m_pRobot = new CRobot () object
/ / points:
Initialize the hand to the m_pRobot-> m_szHandCards array. Hands are sorted from small to large, for example: 200, 300, 101, 201, 102, 403, 205, 311, 210, 310.... Pay attention to the size of the array. Do not have empty or zero values.
//2. Call the analytic function m_pRobot - > Resolution ();
//3. Get m_pRobot - > getCallF (), return 0 no call, double 2 times 3 times
/ / playing cards:
//1. Initialize the hand to the m_pRobot-> m_szHandCards array
//2. Call the analytic function m_pRobot - > Resolution ();
//3. Set the license data in the pool:
//a.m_pRobot-> m_nLastPutCardIndex Last Player's Seat Number [0,1,2]
//b.m_pRobot-> m_nLastPutCardNum pool number of cards
//c.m_pRobot-> m_szLastPutCard pool type, sorted from small to large)
//首先创建m_pRobot = new CRobot()对象
//叫分:
//1.初始化手牌到m_pRobot->m_szHandCards数组,手牌按牌面从小到大排序,例:200,300,101,201,102,403,205,311,210,310....,注意数组大小,不要有空值或者0值
//2.调用解析函数m_pRobot->Resolution();
//3.获取叫分m_pRobot->getCallF(),返回0不叫,1一倍 2两倍 3三倍
//出牌:
//1.初始化手牌到m_pRobot->m_szHandCards数组
//2.调用解析函数m_pRobot->Resolution();
//3.设置牌池中的出牌数据:
//a.m_pRobot->m_nLastPutCardIndex最后那个出牌人的座位号[0,1,2]
//b.m_pRobot->m_nLastPutCardNum牌池内牌型有多少张
//c.m_pRobot->m_szLastPutCard牌池内牌型,按牌面从小到大排序(// Method of use:
// First create m_pRobot = new CRobot () object
/ / points:
Initialize the hand to the m_pRobot-> m_szHandCards array. Hands are sorted from small to large, for example: 200, 300, 101, 201, 102, 403, 205, 311, 210, 310.... Pay attention to the size of the array. Do not have empty or zero values.
//2. Call the analytic function m_pRobot - > Resolution ();
//3. Get m_pRobot - > getCallF (), return 0 no call, double 2 times 3 times
/ / playing cards:
//1. Initialize the hand to the m_pRobot-> m_szHandCards array
//2. Call the analytic function m_pRobot - > Resolution ();
//3. Set the license data in the pool:
//a.m_pRobot-> m_nLastPutCardIndex Last Player's Seat Number [0,1,2]
//b.m_pRobot-> m_nLastPutCardNum pool number of cards
//c.m_pRobot-> m_szLastPutCard pool type, sorted from small to large)
相关搜索: 斗地主AI
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
斗地主ai\define.h | 982 | 2016-05-04 |
斗地主ai\Robot.cpp | 67353 | 2019-01-02 |
斗地主ai\Robot.h | 5635 | 2016-05-04 |
斗地主ai | 0 | 2019-01-02 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.