Here is what I have so far. I am stuck on getting a play again button to reset the game back to normal and how to get the game to compare the previous guess to the new guess and differenciate between warm or cold. I know i need to use the math.abs() function. Can anyone help.
Public Class Form1
Dim randomobject As Random = New Random()
Dim nrand As Integer = randomobject.Ne xt(1, 1001)
...
User Profile
Collapse
-
Here is what I got so far... I am lost though. First off I do not know if I declared everything correctly? Also how do I get the guess to input after it is typed in the box? And how do you configure the warm/cold colors? Please help!
[CODE=vbnet]Public Class Form1
Dim randomobject As Random = New Random()
Dim nrand As Integer = randomobject.Ne xt(1, 1001)
Dim guess As Integer
...Leave a comment:
-
The main problem I am having is setting up the number generator. I know it goes something like this.
Dim randomobject As Random = New Random()
Dim nrand As Integer = 0
nrand = randomobject.ne xt(1,1000)
but what else do I need to start?Leave a comment:
-
VB Program Help
Hi I was wondering if anyone could help me with this homework problem of mine? I need to create a program that does this:
Write a program that plays “guess the number” as follows: Your program chooses the number to be guessed by selecting an Integer at random in the range 1–1000. The program then displays the following text in a label:
I have a number between 1 and 1000--can you guess my number?
Please...
No activity results to display
Show More
Leave a comment: