VB.NET中有关简单猜谜游戏的帮助 [英] Help on simple guess game in VB.NET

查看:75
本文介绍了VB.NET中有关简单猜谜游戏的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,问这个问题的唯一方法就是举个例子.

会弹出一个数字,该数字是56,它每秒以1计数.您按了一个按钮,您再也看不到计时器了,但是,它仍在每1秒钟计数一次.您在文本框中输入您认为数字所在的位置,如果数字为67,并且猜测为66或68 ,则会弹出消息框,表示您赢了.除了那句老话,我还有所有这些.

OK, the only way to ask ths question is by giving an example.

A number pops up, that number is 56, every second it counts up by 1. You hit a button, and you can''t see the timer anymore, BUT, it is still counting up every 1 second. You type in, in a text box, what you think the number is at, if the number is at 67, and you guess 66, or 68, then your message box pops up saying you won. I have all of that besides the old sentence. Help?

推荐答案



这听起来是一个很棒的项目.首先,寻找一个与您要实现的目标相似的示例.该网站上有很多文章可以为您提供帮助.

如果或遇到困难,请张贴一小段问题代码和问题描述,也许有人可以提供建议.

祝你好运. :)
Hi,

This sounds like a great project. To get started, look for an example that is similar to what you want to achieve and have a go. There are lots of articles on this site that can help you.

If or when you get stuck, post a small snippet of your problem code and a description of the problem and perhaps someone will be able to offer advice.

Best of luck. :)


要使游戏更有趣,您应该提供somethig来阻止他们尝试计算秒数,然后要求他们猜测多少秒:

-解决一个字谜
-执行简单的数学计算
-按正确的顺序排列扑克牌
-为机器人提供零件,并使其制造一个零件(使用所有零件.
-某种简单的逻辑难题

无论如何,您的实际问题是什么?您是否尝试过创建此程序?
To make the game more interesting, you should provide somethig to keep them from trying to count the seconds, and THEN ask them to guess how many seconds:

- Solve an anagram
- Perform a simple math calculation
- Arrange playing cards in the correct order
- Provide parts for a robot and make them build one (using all of the parts.
- A simple logic puzzle of some kind

Anyway, what''s your actual question? Have you tried to create this program yet?


除了古老的表情,我还有其他所有内容"
粗体的句子说:如果数字是67,而您猜是66或68 ..."
那么有什么困难呢?您可以将输入的数字与您的计数器的数字进行比较,并在满足特定条件时将其进行比较,例如输入的数字= counter-1或其他值,您的新消息框中将显示您获得的消息.
很基本.还是我误会了您的问题?
"I have all of that besides the olded sentance"
the bold sentence says: "if the number is at 67, and you guess 66, or 68..."
So what is so difficult? You compare the entered number with the number of your counter and when a certain condition is true, e.g. entered number = counter-1 or whatever, your new messagebox shows the you-have-won-message.
Very basic. Or did I misunderstand your question?


这篇关于VB.NET中有关简单猜谜游戏的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆