三子棋小游戏(C++)

博客内容介绍了如何使用C++编程语言修复了之前的三子棋小游戏中的平局无法结束的问题,并预告会有后续更新。
摘要由CSDN通过智能技术生成

    修复了上一版本的已知错误——平局无法结束游戏。后期续更!!!

#include<iostream>
#include<cstdio>
#include<windows.h>
#include<ctime>
using namespace std;
int checkerboard[4][4];
 
/*============== all class ==============*/
 
class chess {
	public:
		static void Game_game_pvp();
		static void Game_game_pvc();
};
 
/*============== all function ==============*/
 
int Game_init(){
	printf(
	"                  Three character chess game\n"
	"\n" 
	"             1.enter                       2.exit\n"
	);
	int retreat;
	scanf("%d",&retreat);
	return retreat;
}
void slow_o(string a,bool wrap){
	for(int i=0;i<a.size();i++){
		cout<<a[i];
		Sleep(50);
	}
	if(wrap){
		printf("\n");
	}
}
void Game_user(){
	printf(
	"            user interface\n"
	"            \n"
	"            1.Start the game!\n"
	"            \n"
	"            2.version\n"
	"            \n"
	"            3.What the author said"
	);
}
void Game_version(){
	slow_o("Version: 0.0.3",1);
	slow_o("Author:--",0);
}
void Game_author_said(){
	slow_o("  This is a three piece chess game that currently only has",1);
	slow_o("",1);
	slow_o("people vs people and people vs computer, and more versions",1);
	slow_o("",1);
	slow_o("will be published in the future.&#
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值