更新了1.1版的,具体内容如下:
1.修改了说明的错别字;
2.更新了步数功能;
本次更新就这么点内容,希望大家多提一点建议.
代码如下:
#include<bits/stdc++.h>
using namespace std;
int dt[5][5],f[16],bs;
void yxsm();
void welcome(){
for(int i=1;i<=10;i++)cout<<"\n";
system("color 4");
cout<<setw(65)<<"华容道\n";
cout<<setw(70)<<"1.0\n";
cout<<"\n"<<setw(71)<<"输入1开始.2游戏说明:";
int n;cin>>n;
if(n==2)yxsm();
return;
}
void yxsm(){
system("cls");
system("color E");
cout<<"把数字按顺序排;\n先输入要移动的数字,\n再输入移动方向.\n";
cout<<"输入8向上走,\n输入4向左走,\n输入2向下走,\n输入6向右走,\n";
system("pause");
system("cls");
welcome();
return;
}
void sc(){
for(int i=1;i<=10;i++)cout<<"\n";
for(int i=1;i<=4;i++){
cout<<setw(50)<<" ";
for(i