Fork自 GitCode / 1024程序员开源挑战赛(10.23-11.14)
体验新版 GitCode,发现更多精彩内容 >>
/** * 五子棋人工智能棋手抽象类 * (在控制器中使用继承该类的子类) */ abstract class GomokuAI { /** * 规定 AI 执白子 */ protected readonly player = GomokuPlayer.White /** * 分析对手的动作 */ abstract analysAction(action: GomokuAction) /** * 给出下一次动作 */ abstract getNextAction(): GomokuAction }