低配置高自由度游戏_高/低游戏
低配置高自由度游戏
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<process.h>
#include<dos.h>
void main()
{
textbackground(WHITE);
textcolor(RED);
C: clrscr();
char ch,a[20],ch2;
int num=100,rnum,guess,count,ch1,c=0;
cout<<“nttt******************************”<<“nttt******************************”;
cout<<“nttt** **”<<“nttt** Welcome To High/Low Game **”<<“nttt** ________________________ **”;
cout<<“nttt** **”<<“nttt******************************”<<“nttt******************************”;
cout<<“nnnn————“<<“n Main Menu”<<“n————“<<“nnn 1.Rulesnn 2.Playnn 3.Exit”<<“nn Enter your choice(1-3):”;
cin>>ch1;
switch(ch1)
{
case 1:
{
clrscr();
cout<<“nn———————“<<“n General Description”<<“n———————“;
cout<<“nn1.The Computer picks a random number from 0 to 99.n You must try to guess the number.”;
cout<<“nn2.The Computer ask you to enter your guess.You have 8n chances to guess the number.”;
cout<<“nn3.The computer checks the number,if your guess isn less than computer’s numer than it will show a messagen that your guess is low and ask for higher number.”;
cout<<“nn4.If your guess is higher than the computer’s numbern than computer will show a message that your guess is high andn ask for lower number.”;
cout<<“nn5.If your guess is equal to the computer’s number,thann computer will print a message congratulating youn and will ask you to play the game again or exit.”;
cout<<“nn6.If you are unable to guess the number than the computern will a sorry message and ask you to play the game again or exit.”;
D: cout<<“nnn Press * to goto Main Menu:”;
cin>>ch2;
if(ch2==’*’)
{
ch2=’#’;
goto C;
}
else
goto D;
}
break;
case 2:
{
clrscr();
cout<<“nnnEnter Your Name:”;
cin>>a;
cout<<“nn”;
for(int i=0;i<=100;i+=20)
{
cout<<“Loading…….”<<i<<“%r”;
sleep(1);
}
cout<<“nnHi “<<a<<“………!!!!”;
A: if(c>0)
clrscr();
randomize();
rnum=random(num);
cout<<“nnEnter Your Guess:”;
cin>>guess;
count=8;
B: while(guess!=rnum)
{
count–;
if(guess>rnum)
{
cout<<“nn”<<guess<<” is High….!!!!aa”<<“nnNow You Have “<<count<<” chance left”;
if(count==0)
break;
cout<<“nnEnter Your Guess Again:”;
cin>>guess;
goto B;
}
if(guess<rnum)
{
cout<<“nn”<<guess<<” is Low…!!!aa”<<“nnNow You Have “<<count<<” chance left”;
if(count==0)
break;
cout<<“nnEnter Your Guess Again:”;
cin>>guess;
goto B;
}
}
if(guess==rnum)
{
cout<<“nnttCongratulation “<<a<<” You Have Done IT…….!!!!!aa”;
switch(count)
{
case 7: cout<<“nnYour Score is 100 out of 100”;
break;
case 6: cout<<“nnYour Score is 85 out of 100”;
break;
case 5: cout<<“nnYour Score is 70 out of 100”;
break;
case 4: cout<<“nnYour Score is 55 out of 100”;
break;
case 3: cout<<“nnYour Score is 40 out of 100”;
break;
case 2: cout<<“nnYour Score is 25 out of 100”;
break;
case 1: cout<<“nnYour Score is 10 out of 100”;
break;
}
}
else
cout<<“nnttSorry “<<a<<” Bad Luck……!!! Try Next Timeaaa”;
cout<<“nnWant to Play More(y/n):”;
cin>>ch;
if(ch==’y’||ch==’Y’)
{
c++;
goto A;
}
else
{
cout<<“nnnnttt @@@@@@@@ THANK YOU @@@@@@@@ nn”;
cout<<“================================================================================”;
cout<<“aanntttt Special Thanks Tontttt___________________nntttt Mrs.Rakhi Jain”;
cout<<“nnnntttt Game Developed Byntttt___________________nntttt Neeraj Mishra”;
cout<<“nn================================================================================”;
delay(10000);
exit(0);
}
}
break;
case 3:
{
cout<<“nnn================================================================================”;
cout<<“nntttt Special Thanks Tontttt___________________nntttt Mrs.Rakhi Jain”;
cout<<“nnnntttt Game Developed Byntttt___________________nntttt Neeraj Mishra”;
cout<<“nnn================================================================================”;
delay(10000);
exit(0);
}
}
getch();
}
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<process.h>
#include<dos.h>
void main()
{
textbackground(WHITE);
textcolor(RED);
C: clrscr();
char ch,a[20],ch2;
int num=100,rnum,guess,count,ch1,c=0;
cout<<“nttt******************************”<<“nttt******************************”;
cout<<“nttt** **”<<“nttt** Welcome To High/Low Game **”<<“nttt** ________________________ **”;
cout<<“nttt** **”<<“nttt******************************”<<“nttt******************************”;
cout<<“nnnn————“<<“n Main Menu”<<“n————“<<“nnn 1.Rulesnn 2.Playnn 3.Exit”<<“nn Enter your choice(1-3):”;
cin>>ch1;
switch(ch1)
{
case 1:
{
clrscr();
cout<<“nn———————“<<“n General Description”<<“n———————“;
cout<<“nn1.The Computer picks a random number from 0 to 99.n You must try to guess the number.”;
cout<<“nn2.The Computer ask you to enter your guess.You have 8n chances to guess the number.”;
cout<<“nn3.The computer checks the number,if your guess isn less than computer’s numer than it will show a messagen that your guess is low and ask for higher number.”;
cout<<“nn4.If your guess is higher than the computer’s numbern than computer will show a message that your guess is high andn ask for lower number.”;
cout<<“nn5.If your guess is equal to the computer’s number,thann computer will print a message congratulating youn and will ask you to play the game again or exit.”;
cout<<“nn6.If you are unable to guess the number than the computern will a sorry message and ask you to play the game again or exit.”;
D: cout<<“nnn Press * to goto Main Menu:”;
cin>>ch2;
if(ch2==’*’)
{
ch2=’#’;
goto C;
}
else
goto D;
}
break;
case 2:
{
clrscr();
cout<<“nnnEnter Your Name:”;
cin>>a;
cout<<“nn”;
for(int i=0;i<=100;i+=20)
{
cout<<“Loading…….”<<i<<“%r”;
sleep(1);
}
cout<<“nnHi “<<a<<“………!!!!”;
A: if(c>0)
clrscr();
randomize();
rnum=random(num);
cout<<“nnEnter Your Guess:”;
cin>>guess;
count=8;
B: while(guess!=rnum)
{
count–;
if(guess>rnum)
{
cout<<“nn”<<guess<<” is High….!!!!aa”<<“nnNow You Have “<<count<<” chance left”;
if(count==0)
break;
cout<<“nnEnter Your Guess Again:”;
cin>>guess;
goto B;
}
if(guess<rnum)
{
cout<<“nn”<<guess<<” is Low…!!!aa”<<“nnNow You Have “<<count<<” chance left”;
if(count==0)
break;
cout<<“nnEnter Your Guess Again:”;
cin>>guess;
goto B;
}
}
if(guess==rnum)
{
cout<<“nnttCongratulation “<<a<<” You Have Done IT…….!!!!!aa”;
switch(count)
{
case 7: cout<<“nnYour Score is 100 out of 100”;
break;
case 6: cout<<“nnYour Score is 85 out of 100”;
break;
case 5: cout<<“nnYour Score is 70 out of 100”;
break;
case 4: cout<<“nnYour Score is 55 out of 100”;
break;
case 3: cout<<“nnYour Score is 40 out of 100”;
break;
case 2: cout<<“nnYour Score is 25 out of 100”;
break;
case 1: cout<<“nnYour Score is 10 out of 100”;
break;
}
}
else
cout<<“nnttSorry “<<a<<” Bad Luck……!!! Try Next Timeaaa”;
cout<<“nnWant to Play More(y/n):”;
cin>>ch;
if(ch==’y’||ch==’Y’)
{
c++;
goto A;
}
else
{
cout<<“nnnnttt @@@@@@@@ THANK YOU @@@@@@@@ nn”;
cout<<“================================================================================”;
cout<<“aanntttt Special Thanks Tontttt___________________nntttt Mrs.Rakhi Jain”;
cout<<“nnnntttt Game Developed Byntttt___________________nntttt Neeraj Mishra”;
cout<<“nn================================================================================”;
delay(10000);
exit(0);
}
}
break;
case 3:
{
cout<<“nnn================================================================================”;
cout<<“nntttt Special Thanks Tontttt___________________nntttt Mrs.Rakhi Jain”;
cout<<“nnnntttt Game Developed Byntttt___________________nntttt Neeraj Mishra”;
cout<<“nnn================================================================================”;
delay(10000);
exit(0);
}
}
getch();
}
翻译自: https://www.thecrazyprogrammer.com/2011/03/highlow-game.html
低配置高自由度游戏
低配置高自由度游戏_高/低游戏相关推荐
- mysql 高并发 响应时间_高并发,你真的了解吗?
摘要:本文介绍高并发系统的度量指标,讲述高并发系统的设计思路,再梳理高并发的关键技术,最后结合作者的经验做一些延伸探讨. 当前,数字化在给企业带来业务创新,推动企业高速发展的同时,也给企业的IT软件系 ...
- 怎么开发联机小游戏_微信小游戏创意大赛火热进行中,小游戏联机对战引擎免费用...
腾讯云为小游戏开发者升级工具箱 小游戏联机对战引擎免费用 由微信小游戏举办的"微信小游戏创意大赛"正在火热进行中.12月23日,腾讯云宣布,除了给创意大赛的参赛者提供基础云资源,还 ...
- 如何下载在线玩的游戏_在线下载游戏和玩游戏的最佳网站
如何下载在线玩的游戏 This week we have a list of fun websites for you. Playing games can help relieve stress a ...
- 龙之翼java游戏_龙之翼游戏下载
龙之翼是一款中国古典题材类型的仙侠游戏,这款游戏中的画面极其的优美,超多的关卡副本可供玩家体验多种强力的武器装备可供玩家获取使用,每一种装备都有独特效果,配合你选择的职业快速提升战斗力,成为仙界第一斗 ...
- 为什么游戏开发者不玩游戏_什么是游戏开发?
为什么游戏开发者不玩游戏 Game Development is the art of creating games and describes the design, development and ...
- 荣耀v10玩flash游戏_“王者荣耀”游戏竟然还能这样玩?(送皮肤)
在王者荣耀的世界里:有人玩游戏喜欢打野位,有人玩游戏喜欢中单,有人喜欢抢人头和Buff,而她喜欢给英雄做画像... 她是谁?她是3小时留学的学生,喜欢搞一些爬虫和统计相关的内容,准备申请应用数学相关方 ...
- 暗黑系游戏_有哪些类似暗黑破坏神的游戏_暗黑类游戏盘点
暗黑风格的单机游戏,是指以暴雪<暗黑破坏神>系列为代表的2.5D视角的装备驱动类游戏.这类游戏以自身独特而完善的装备系统,吸引着那些爱好刷的玩家们.接下来就给大家推荐几款好玩的暗黑风格的游 ...
- 龙之翼java游戏_龙之翼游戏下载-龙之翼最新版下载v1.0.3-一听下载站
龙之翼是一款经典的角色扮演类魔幻游戏,游戏中的画面特别的清晰,精彩纷呈的打斗场面,带给你更好的体验,游戏中登录后,还会获得很多惊喜,让你能够拥有更强的实力,炫酷的造型,独特的兵器,热血沸腾的打斗场景都 ...
- gpu云服务器运行游戏_追求高性能游戏,高帧高画质运行,你的手机需要多强的GPU才够?...
关于骁龙865今年增加了很多新特性,特别是游戏方面,支持最高144Hz的屏幕刷新率,新一代的Adreno 650 GPU,性能相比上代提升25%,不过今年高通给手机GPU引入了一个新概念就是用户可以自 ...
最新文章
- Django博客系统(首页分类数据展示)
- Yann LeCun:掌舵Facebook人工智能 | 完美人物志
- xgboost模型在centos系统下的可视化
- qt tcp通信_Qt之网络编程TCP通信
- 我是如何学习写一个操作系统(完结):总结和系列索引
- SAP MM/FI 自动过账实现 OBYC 接口执行
- html怎么加断点快捷键,HTML添加断点 - osc_vyztkm1b的个人空间 - OSCHINA - 中文开源技术交流社区...
- 用history api偷换浏览器历史记录
- Hi3519V101_SDK_Vx.x.x.x 目录结构
- 基于JAVA+SpringMVC+MYSQL的实验室预约管理系统
- oracle查询数据库的函数,Oracle:树查询及有关函数
- [USACO12NOV]同时平衡线Concurrently Balanced Strings DP map 思维
- 使用PostSharp在.NET平台上实现AOP(转)
- Leap手心发射线,碰撞点用小球表示,并用Line Renderer画出来
- 河北化工医药职院美和易思软件技术专业“指舞飞扬”比赛圆满成功
- Pool:对象池源码解读
- 【Android】 Firebase登录、FCM、Google Play支付、adbrix、ONEStore、Galaxy Store、Google Install Referrer
- 如何在文本中添加多条线
- 利用VPS服务器搭建一个FRP内网穿透服务和Web服务穿透
- python手机编译器怎么编写程序_怎么用手机编写Python程序?
热门文章
- php关联数组求平均值,用PHP关联数组求笛卡儿积
- 【D^3CTF】D^3CTF部分题复现
- 360随身WIFI作USB无线网卡使用教程
- 在线测试屏幕软件康佳,硬件配置强大 不是说说而已
- allegropcb建元件库_Cadence_PCB封装库的制作及使用
- 【工具】MobaXterm全能终端神器 shell
- 使用Dreamweaver制作网页的20个技巧。
- STM32——安装keil环境
- 百度智能云 x 联通在线丨智能助理,“智”理你的通话
- Object-C iOS纯代码布局 一堆代码可以放这里!