⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wzq.cpp

📁 自己写的5子棋
💻 CPP
字号:
// wzq.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "Board.h"
#include "Chess.h"
int main(int argc, char* argv[])
{
	CChess five;
	
	int	model = five.board.modelchoice();
	while(model!=48)
	{
		if(model == 49)//选择了双人游戏
		{
		five.board.initate();
		five.twoplayers();
		break;
		}
		else //选择了人机对战
		{
			int first = five.board.firsthandchoice();
			if(first == 49)//选择了人下先手
			{	five.board.initate();
				five.iniwintable();
				five.playercomputer(1);
			}
			else//选择了计算机下先手
			{	five.board.initate();
				five.iniwintable();
				five.playercomputer(2);
					
			}

		
		break;
		}
		
	}

	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -