Question: using html, css, php Guess the Number Game In this exercise you will write a PHP script to implement guessing a number guess the number.


Guess the Number Game In this exercise you will write a PHP script to implement guessing a number guess the number. The user will type a number in a text box and submit using "congratulation" mumber is larger or smaller. If the wage will be displayed start the game again. Task 1: the interface Task2: generating a randon number hiden field and a submit button. In PHP function randinum a random number between num1 rand(num1, num2) generates a random integer number The script is required to generate a random number in the start of every game only. To detect that a game is in the start (first time visited) use If IS SERV To detect that a game is in the start (first time visited) use Tasks: Save the randomly generated number in a variable The aim of this task is to have the randomly generated number persist Tasks: check userinput Welcome To Guess The Number Game Number is small try bigger number. Tries left: 3 number to be guessed: 10 number of tries(counter): 1 5 Guess
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
