#include<biys/stdc++.h>
#include<stdio.h>
using namespace std;
int suijishu(int n){
	return rand()%n+1;
}
int main(){
	srand(time(0));
	cout<<"七圣之元"<<endl;
	cout<<"科技未来出版"<<endl;
	cout<<"输入任意数继续"<<endl;
	char lin;
	cin>>lin;
	system("cls");//清屏
	cout<<"话不多说"<<endl;
	printf(
    "######################################################################\n"
    "#                                                                    #\n"
    "#                       &                                &           #\n"
    "#                 &&&&&&&&&&&&         &&&&&&&&&        &            #\n"
    "#                 &          &                     &&&&&&&&&&&       #\n"
    "#                 &&&&&&&&&&&&        &&&&&&&&&&&      &     &       #\n"
    "#                &                         &          &      &       #\n"
    "#               & &&&&&&&&&&&&            &          &       &       #\n"
    "#              &  &          &           &   &      &        &       #\n"
    "#             &   &&&&&&&&&&&&          &&&&&&&    &       &&&       #\n"
    "#                                                                    #\n"
    "######################################################################\n"
    ); 
    cout<<"七圣之元"<<endl;
    cout<<"输入一个good"<<endl;
    string sui;
    cin>>sui;
    cout<<"谢谢夸奖"<<endl;
    system("cls");//清屏
    cout<<"请输入一个一百以上的数"<<endl;
    int su;
    cin>>su;
    int yun=suijishu(su);
    cout<<"你的今日幸运数字是"<<yun<<endl;
    cout<<"准备好了吗?"<<endl;
    cin>>su;
    cout<<"第一章"<<endl;
    cout<<"生死之门"<<endl;
    cout<<"规则如下"<<endl;
    cout<<"规则1 你可以选择1或2号门,其中有一个是生门,另一个是死门 规则2 可以使用道具(你只有一个):1 金药(可以免死亡)2 放大镜(可以将剩余门数除以二)规则3 门数未知(最多十个门)"<<endl;
    int men=suijishu(10);
    int daoju=suijishu(3);
	if(daoju==3){
		daoju=1;
	} 
	cout<<"游戏开始"<<endl;
    cout<<"输入1继续"<<endl;
    cin>>su;
    system("cls");//清屏
    int mingyun;
    int jueding;
    int hu=0;
    for(int i=1;i<=men;i++){
    	cout<<"第"<<i<<"道门"<<endl;
    	cout<<"你的道具"<<endl;
    	if(daoju==1){
    		cout<<"金药"<<endl;
		}
		else if(daoju==2){
			cout<<"放大镜"<<endl;
		}
		else{
			cout<<"无"<<endl;
		}
		mingyun=suijishu(2);
		cin>>jueding;
		cout<<"是否使用道具(使用输入道具编号,否则输入3)"<<endl;
		cin>>jueding;
		if(jueding==1 && daoju==1){
			hu=1;
			daoju=0;
		}
		else if(jueding==2 && daoju==2){
			men/=2;
			daoju=0;
		}
		cout<<"请选择门"<<endl;
		cin>>jueding;
		if(jueding==mingyun && hu==0 && (jueding>2 || jueding<1)){
			cout<<"你已死亡"<<endl;
			return 0;
		}
		else{
			cout<<"运气好啊!"<<endl; 
		}
		hu=0;
		system("cls");//清屏
	}
	cout<<"第二章"<<endl;
	cout<<"任务的边缘"<<endl;
	cout<<"规则如下"<<endl;
	cout<<"规则1 你需要完成任务,但随时可能坏掉(你可以换一个新的),需要做到100%即可通关(你的道具只有一个)规则2 关于道具 1 卡牌(可以将进度+10%)2 保护罩 (可以保护任务,保证不会坏掉)"<<endl;
	cout<<"游戏开始"<<endl;
	cout<<"输入1继续"<<endl;
	cin>>su;
	system("cls");//清屏
	daoju=suijishu(2);
	for(int i=1;i<=10;i++){
		cout<<"当前进度"<<i*10-10<<"%"<<endl; 
		cout<<"你的道具"<<endl;
    	if(daoju==1){
    		cout<<"卡牌"<<endl;
		}
		else if(daoju==2){
			cout<<"保护罩"<<endl;
		}
		else{
			cout<<"无"<<endl;
		}
		cin>>su;
		cout<<"是否使用道具(如上一章)"<<endl;
		cin>>jueding;
		if(jueding==1 && daoju==1){
			i=i+1;
			daoju=0;
		}
		else if(jueding==2 && daoju==2){
			hu=1;
			daoju=0;
		}
		cout<<"你的选择(输入1则换一个任务,否则继续)"<<endl;
		cin>>jueding;
		if(jueding==1){
			i=1;
		}
		else{
			mingyun=suijishu(10);
			if(mingyun%5==0 && hu==0){
				cout<<"你已死亡"<<endl;
				return 0;
			}
			else{
				cout<<"运气好啊!"<<endl;
			}
		}
		hu=0;
		system("cls");//清屏
	}
	cout<<"你赢了!"<<endl;
	return 0; 
}

bug修复

v>