-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (98 loc) · 2.62 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Paper, Scissors, Rock Game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<header>
<h1>Paper, Scissors, Rock Game</h1>
</header>
<section>
<article id="tip">
<h3>Rules of the game</h3>
<div id="rules">
<ul>
<li>Paper beats Rock</li>
<li>Scissors beats Paper</li>
<li>Rock beats Scissors</li>
</ul>
<p>If the player and the computer choose the same option, there will be a tie.</p>
<p>Whoever gets five points first wins.</p>
</div>
</article>
<article id="game">
<h3 id="msg">Try to beat the computer.</h3>
<div id="s">
<ul>
<li class="left">You: <span id="playerChoice"></span></li>
<li class="right">Computer: <span id="computerChoice"></span></li>
</ul>
<div></div>
</div>
<div id="opt">
<p>Choose one of the options:</p>
<button id="paperButton">Paper</button>
<button id="scissorsButton">Scissors</button>
<button id="rockButton">Rock</button>
</div>
</article>
<article id="score">
<table>
<tr id="h">
<th rowspan="2">Player</th>
<th colspan="9">Round</th>
<th rowspan="2">Score</th>
</tr>
<tr id="n">
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
<td>9</td>
</tr>
<tr>
<td>You</td>
<td id="p1"></td>
<td id="p2"></td>
<td id="p3"></td>
<td id="p4"></td>
<td id="p5"></td>
<td id="p6"></td>
<td id="p7"></td>
<td id="p8"></td>
<td id="p9"></td>
<td id="playerScore"></td>
</tr>
<tr>
<td>Computer</td>
<td id="c1"></td>
<td id="c2"></td>
<td id="c3"></td>
<td id="c4"></td>
<td id="c5"></td>
<td id="c6"></td>
<td id="c7"></td>
<td id="c8"></td>
<td id="c9"></td>
<td id="computerScore"></td>
</tr>
</table>
</article>
<p id="reset">Do you want to play again?</p>
</section>
<footer>
<p>You can find more projects on my <a href="https://github.com/coder36459" target="_blank">GitHub</a>. If you want to find out more about me, take a look on <a href="https://www.linkedin.com/in/maciej-browarski" target="_blank">LinkedIn</a>.</p>
</footer>
</main>
<script src="script.js"></script>
<noscript>Your browser does not support JavaScript!</noscript>
</body>
</html>