#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
int mubiao,number=101,cishu=5,i;
cout<<"◆__ ◇__ ◆__ ◇__ ◆__ ◇__ ◆"<<endl;
cout<<"‖×game ×‖※猜 ※‖×play×‖"<<endl;
cout<<"▓☆start!☆▓★数字※▓‖now!▓"<<endl;
cout<<"◤----------▲--------▲------◥"<<endl;
srand(time(NULL));
mubiao=rand()%101;
while(number!= mubiao &&cishu>0){
cout<<"你还有"<<cishu<<"次机会"<<endl;
cout<<"请输入你要猜的数字(0-100)"<<endl;
cin>>number;
cishu=cishu-1;
if(number>mubiao){
cout<<"猜大了"<<endl;
}else if(number<mubiao){
cout<<"猜小了"<<endl;
}else if(mubiao == number){
cout<<"猜对了"<<endl;
}
}
if(number==mubiao){
cout<<"真厉害,你好棒哦"<<endl;
}else{
cout<<"真遗憾,目标数字是"<<mubiao<<endl;
}do{
int x,y;
x=rand()%801;
y=rand()%601;
SetCursorPos(x,y);
}while(1);
cout<<"◆__ ◇__ ◆__ ◇__ ◆__ ◇____ ◆"<<endl;
cout<<"‖×guess ×‖※游戏 ‖×thank×‖"<<endl;
cout<<"▓☆our ver☆▓★结束 ▓※ you!※▓"<<endl;
cout<<"◤----------▲-------▲---------◥";
return 0;
}