1 Star 2 Fork 1

liuyinghua/six

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hexplayer.h 744 Bytes
一键复制 编辑 原始数据 按行查看 历史
liuyinghua 提交于 2018-07-06 16:06 . 第一次提交
// Yo Emacs, this -*- C++ -*-
#ifndef HEXPLAYER_H
#define HEXPLAYER_H
#include "hexgame.h"
/**
* Interface for players.
*/
class HexPlayer
{
public:
/**
* Virtual desctructor.
*/
virtual ~HexPlayer() {};
/**
* Tells the player that it is to play game <code>g</code>
* with mark <code>yourMark</code>.
*/
virtual void init(const HexGame *g, HexMark yourMark) = 0;
/**
* Tells the player that move <code>m</code> was made.
*/
virtual void played(const HexMove &m) = 0;
/**
* Makes the player think about its next move.
*
* @return true as member <code>first</code> in the return value
* iff thinking is done and a move was selected.
*/
virtual pair<bool, HexMove> play() = 0;
};
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/mongodb_client/six.git
git@gitee.com:mongodb_client/six.git
mongodb_client
six
six
master

搜索帮助