-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdice-game.html
More file actions
26 lines (26 loc) · 1.1 KB
/
Copy pathdice-game.html
File metadata and controls
26 lines (26 loc) · 1.1 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="robots" content="noindex,nofollow">
<meta charset="utf-8">
<title>Dice Game</title>
</head>
<body>
<h1>Dice Game</h1>
<h2>Rules:</h2>
<ul>
<li>When you click the Roll Dice! button, you will roll up to 10 dice, one at a time.</li>
<li>If you roll a 1, game stops and all further rolls are forfeited.</li>
<li>If you roll 2, 3, or 4, you win nothing but you get to roll again.</li>
<li>If you roll a 5, you win 5 gold coins and you get to roll again.</li>
<li>If you roll a 6, you win 6 gold coins and you get to roll again.</li>
</ul>
<button type="button" onclick="rollDice()">Roll Dice!</button>
<script src="js/dice-game.js"></script>
<h2>The code used to build this game:</h2>
<ul>
<li><a href="https://github.com/chaparin/1-HTML-CSS-JavaScript/blob/master/dice-game.html" target="_blank">dice-game.html</a></li>
<li><a href="https://github.com/chaparin/1-HTML-CSS-JavaScript/blob/master/js/dice-game.js" target="_blank">dice-game.js</a></li>
</ul>
</body>
</html>