-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (49 loc) · 1.55 KB
/
index.html
File metadata and controls
57 lines (49 loc) · 1.55 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<link rel="stylesheet" href="/styles.css" />
<title>Rock Paper Scissor</title>
</head>
<body>
<section class="game">
<!-- Title -->
<div class="title">Pierre Papier Ciseaux</div>
<!-- Display Score of player and computer -->
<div class="score">
<div class="playerScore">
<h2>Vous</h2>
<p class="p-count count">0</p>
</div>
<div class="computerScore">
<h2>Ordinateur</h2>
<p class="c-count count">0</p>
</div>
</div>
<div class="move">Choisissez</div>
<!-- Number of moves left before game ends -->
<div class="movesleft">Manches restante(s): 10</div>
<!-- Options available to player to play game -->
<div class="options">
<button class="rock" value="pierre" aria-label="Pierre">🪨</button>
<button class="paper" value="feuille" aria-label="Feuille">📄</button>
<button class="scissor" value="ciseau" aria-label="Ciseau">✂️</button>
</div>
<!-- Final result of game -->
<div class="result"></div>
<!-- Reload the game -->
<button class="reload">Rejouer</button>
</section>
<section class="history-container">
<div class="history">
<h3>Historique des manches</h3>
<ul class="history-list"></ul>
</div>
</section>
<script src="script.js"></script>
</body>
</html>