-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (28 loc) · 1023 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<head>
<title>Number Game by Fahmid</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Number Game</h1>
<div id="rules">
<p>1. You have to start by choosing a number between 1, 2 and 3</p>
<p>2. I will also choose a number between 1, 2 and 3, and then add that to your chosen number.</p>
<p>3. You will choose another number like <b>Step 1</b> and add that to the sum calculated in the previous step.</p>
<p>4. The person reaching the sum <b>23</b> will win!</p>
</div>
<button id="startgame" onclick="startGame()">START GAME!</button>
<div>
<p id="yourturn"></p>
<p id="myturn"></p>
<p id="sum"></p>
</div>
<p id="result"></p>
<button id="one" onclick=one()>1</button>
<button id="two" onclick=two()>2</button>
<button id="three" onclick=three()>3</button>
<button id="reset" onclick=resetfunc()>PLAY ANOTHER GAME!</button>
<script src="index.js"></script>
</body>