Can someone help me create this??
Upon outside entry, a random number is chosen between 1 and 10. Use this function to generate the guess number
$guessnum = rand(1,10); // you may change the variable name
The user tries to guess this number by choosing from a selection list of possibilities. The user "loses" if there are three failed attempts.
For reentrant activations the selection list must be sticky and the same guess number must be maintained.
The guess number and the attempt number must both be propagated through hidden inputs.
Here is a screen shot:
Upon outside entry, or using the "Start Over" hyperlink (with the list activated):
Let's suppose the number to be guessed is 6.
I select 4 and guess it.
Response should say "Try #1"
I select 9 and guess it.
Response should say "Try #2"
I select 3 and guess it.
Response should say "You Lose"
At this point assume that we must "Start Over". This time, suppose the generated number is 8.
I select 8 and guess it.
Response should say "You Win"
Again, assume we must "Start Over".