-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
93 lines (91 loc) · 4.95 KB
/
game.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RanTic</title>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Climate+Crisis&family=Ubuntu+Mono:wght@400;700&display=swap" rel="stylesheet">
<!-- CSS -->
<link rel="stylesheet" href="index.css">
</head>
<body class="bg-dark-blue">
<div class="container ">
<h1 class="white">Ran<span class="dark-accent">T</span>ic</h1>
<!-- score -->
<div class="score grid flow">
<h2>Score</h2>
<div class="player-1 flow">
<picture>
<img class="turn-indicator" src="images/turnOn.png" alt="Green Light">
<img class="turn-indicator" src="images/turnOff.png" alt="Red Light" hidden>
</picture>
<h3 id="nameFirstPlayer">Player 1</h2>
<p id="score1">0</p>
</div>
<div class="player-2 flow">
<picture>
<img class="turn-indicator" src="images/turnOn.png" alt="Green Light" hidden>
<img class="turn-indicator" src="images/turnOff.png" alt="Red Light">
</picture>
<h3 id="nameSecondPlayer">Player 2</h2>
<p id="score2">0</p>
</div>
</div>
<!-- game area -->
<div id="winner-image"class=""></div>
<div id="game-area" class="grid bg-white dark-accent">
<div class="box box-1 border-top border-left">
<picture id="player1-image" hidden ><img src="images/player1.png" alt="player1-Image"></picture>
<picture id="player2-image" hidden ><img src="images/player2.png" alt="player2-Image"></picture>
<span class="boxText sr-only"></span>
</div>
<div class="box box-2 border-top">
<picture id="player1-image" hidden ><img src="images/player1.png" alt="player1-Image"></picture>
<picture id="player2-image" hidden ><img src="images/player2.png" alt="player2-Image"></picture>
<span class="boxText sr-only"></span>
</div>
<div class="box box-3 border-top border-right">
<picture id="player1-image" hidden ><img src="images/player1.png" alt="player1-Image"></picture>
<picture id="player2-image" hidden ><img src="images/player2.png" alt="player2-Image"></picture>
<span class="boxText sr-only"></span>
</div>
<div class="box box-4 border-left">
<picture id="player1-image" hidden ><img src="images/player1.png" alt="player1-Image"></picture>
<picture id="player2-image" hidden ><img src="images/player2.png" alt="player2-Image"></picture>
<span class="boxText sr-only"></span>
</div>
<div class="box box-5">
<picture id="player1-image" hidden ><img src="images/player1.png" alt="player1-Image"></picture>
<picture id="player2-image" hidden ><img src="images/player2.png" alt="player2-Image"></picture>
<span class="boxText sr-only"></span>
</div>
<div class="box box-6 border-right">
<picture id="player1-image" hidden ><img src="images/player1.png" alt="player1-Image"></picture>
<picture id="player2-image" hidden ><img src="images/player2.png" alt="player2-Image"></picture>
<span class="boxText sr-only"></span>
</div>
<div class="box box-7 border-bottom border-left">
<picture id="player1-image" hidden ><img src="images/player1.png" alt="player1-Image"></picture>
<picture id="player2-image" hidden ><img src="images/player2.png" alt="player2-Image"></picture>
<span class="boxText sr-only"></span>
</div>
<div class="box box-8 border-bottom">
<picture id="player1-image" hidden ><img src="images/player1.png" alt="player1-Image"></picture>
<picture id="player2-image" hidden ><img src="images/player2.png" alt="player2-Image"></picture>
<span class="boxText sr-only"></span>
</div>
<div class="box box-9 border-bottom border-right">
<picture id="player1-image" hidden ><img src="images/player1.png" alt="player1-Image"></picture>
<picture id="player2-image" hidden ><img src="images/player2.png" alt="player2-Image"></picture>
<span class="boxText sr-only"></span>
</div>
</div>
<button class="bg-dark-accent white" id="reset-btn">Reset</button>
</div>
<script src="game.js"></script>
</body>
</html>