Also, check out programming forums like DaniWeb, CodeProject and such.
i am currently learning on making an html game i manage to do the first parts but the next part is difficult my code shown below
<title> Assignment 1</title>
<meta name="description" content="Assignment 1">
<meta name="author" content="Karl Peters">
<meta name="keywords" content="HTML, CSS">
<input id="input" type="text" placeholder="Enter your desired color">
border: 10px outset red;
margin: auto auto;
the next part goes like this
C. When page is loaded in a browser:
a. User is prompted to enter a colour of their choice. The background of the game area
is then changed to the colour provided by user. Note: for the purpose of this
assignment, you can assume the user enters a valid colour name/code.
b. The first image is displayed at the top-left corner of your game area and a “Try”
button (placed below the game area) to allow user play the game.
When the “Try” button is clicked:
1. Your code will randomly select one of the images in your directory and display it in a
random location within your game area.
2. If the same image is repeated 2 consecutive times:
a. Congratulation message appears below the game area:
i. “Congratulations John Doe. You are a winner!” (John Doe to be
replaced by your name).
ii. Followed by the number of attempts. For example: “It took you 2
b. The Try button would disappear and a new button “Start over” appears.
When user clicks on the “Start over” button:
i. The “Start over” button disappears
ii. Try button appears again
iii. The first image is placed at the top-left corner of the game area
3. Allow a maximum of 5 try for the game. If the user does not win after 5 attempts,
display a message: “Sorry you did not win this time!”, and repeat step 2.b (above)
again. (Try button disappears and the “Start over” button appears).