VBS猜数游戏
VBS 猜数游戏
2018-11-09 21:19:11
by xutao
msgbox "The Swami" ,,"Game"
msgbox "The system will give a integer in the range of 1 to 100 randomly, and you are allowed to guess a integer one time! Less tries, more luck" , ,"Rule"
while = '无限循环 dim tryTime '尝试次数
tryTime = dim n
randomize '初始化随机种子,不然每次都会一样
n = int(rnd*) int input
input = int(inputbox("Guess it")) '注意:while语句的语法是: while condition ... wend (不加then) while n <> input
tryTime = tryTime+
if input>n then
input = int(inputbox("Too big! Try again!"))
else
input = int(inputbox("Too small! Try again!"))
end if
wend if tryTime= then
msgbox "Genius! Buy a lottery ticket quickly!"
elseif tryTime= then
msgbox ""
elseif tryTime= then
msgbox "NB"
elseif tryTime= then
msgbox "Cool!"
elseif tryTime= then
msgbox "Good!"
elseif tryTime= then
msgbox "Not Bad!"
elseif tryTime= then
msgbox "Unfortuntate!"
elseif tryTime= then
msgbox "Idiot!"
else
msgbox "SB!"
end if if msgbox("ReTry?",vbOK)<> then
msgbox "Bye!"
wscript.quit
end if wend
VBS猜数游戏的更多相关文章
- 【BZOJ 1594】 [Usaco2008 Jan]猜数游戏 (二分+并查集)
		
1594: [Usaco2008 Jan]猜数游戏 Description 为了提高自己低得可怜的智商,奶牛们设计了一个新的猜数游戏,来锻炼她们的逻辑推理能力. 游戏开始前,一头指定的奶牛会在牛棚后面 ...
 - usaco 猜数游戏
		
Description 为了提高智商,锻炼思维能力,奶牛设计了一个猜数游戏.游戏开始前,贝西会在牛棚后面摆上N个数字.所有数字排成一条直线,按次序从1到N编号.每个数字在1到10^9之间,没有两个数字 ...
 - (一)Python之猜数游戏
		
猜数游戏由简如深的编码学习过程: 3次机会: print('------------------我爱鱼C工作室------------------')count=0while count < 3 ...
 - 猜数游戏-flag的运用
		
package my;import java.util.Scanner;public class MyJava { public static void main(String[] ar ...
 - Java课程设计——猜数游戏(201521123111 陈伟泽)
		
Java课程设计--猜数游戏(201521123111 陈伟泽) 1.团队课程设计博客链接 博客作业--猜数游戏 2.个人负责模块或任务说明 Answer:一些基础界面的构造,排行榜的构造,用文件录入 ...
 - JAVA课程设计 猜数游戏 团队
		
团队名称,成员介绍 名称: 猜数游戏 成员: 网络1514 201521123086 周颖强 网络1514 201521123087蒋勃超 项目git地址 git.oschina.net/jbc113 ...
 - BZOJ 2222: [Cqoi2006]猜数游戏【神奇的做法,傻逼题,猜结论】
		
2222: [Cqoi2006]猜数游戏 Time Limit: 20 Sec Memory Limit: 259 MBSubmit: 604 Solved: 260[Submit][Status ...
 - 从scratch到python——猜数游戏
		
` 之前讲解了从scratch到python,基于python turtle库的实现,讲解了用scratch和python turtle绘图的实现,以及让小猫动起来和当角色被单击的例子. 本节课讲继续 ...
 - 【BZOJ1594】[Usaco2008 Jan]猜数游戏 二分答案+并查集
		
[BZOJ1594][Usaco2008 Jan]猜数游戏 Description 为了提高自己低得可怜的智商,奶牛们设计了一个新的猜数游戏,来锻炼她们的逻辑推理能力. 游戏开始前,一头指定的奶牛会在 ...
 
随机推荐
- Java8新特性_日期时间新类 LocalDate、LocalTime、LocalDateTime
			
import java.text.SimpleDateFormat; import java.time.LocalDate; import java.time.format.DateTimeForma ...
 - luogu 1314 聪明的质检员
			
二分答案的边界问题还是要注意 double挨着,int+1-1, 此题用到long long,所以初始化ans要足够大,前缀和优化 依然根据check答案大小左右mid,虽然有s,但是有了+1-1加持 ...
 - 面向对象 ( OO ) 的程序设计——创建对象
			
本文地址:http://www.cnblogs.com/veinyin/p/7608000.html 为了避免大量重复代码产生,可采用以下方法创建对象 1 工厂模式 function createP ...
 - deque
			
转自:https://www.cnblogs.com/LearningTheLoad/p/7450948.html deque双向开口可进可出的容器 我们知道连续内存的容器不能随意扩充,因为这样容易扩 ...
 - 拦截对该服务器所有的http请求
			
一:拦截对该服务器所有的http请求. 在config 中加, <system.webServer> <modules> <add name="HttpAuth ...
 - ue4 socket
			
Socket 地址: TSharedRef<FInternetAddr> internetAddr = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSY ...
 - linux如何查看端口号被哪个进程占用
			
1.lsof -i:端口号 lsof(list open files) 2.netstat -tunlp |grep 端口号 t:tcp u:udp n:拒绝显示别名 l:仅显示listen的服务状态 ...
 - 5-4日 socket套接字
			
1,socket定义 Socket是应用层与TCP/IP协议族通信的中间软件抽象层,它是一组接口.在设计模式中,Socket其实就是一个门面模式,它把复杂的TCP/IP协议族隐藏在Socket接口后面 ...
 - undefined symbol
			
参考链接: https://blog.csdn.net/shatterheart/article/details/52440149
 - 【blog】使用highlight.js高亮你的代码
			
我的代码 <!--代码高亮插件--> <link rel="stylesheet" type="text/css" href="/w ...