修复了上一版本的已知错误——平局无法结束游戏。后期续更!!!
#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.&#