-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (103 loc) · 3.84 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="icon" type="image/png" href="favicon.png">
<link rel="shortcut icon" type="image/png" href="favicon.png">
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script>
</head>
<body>
<div class="top-right-controls">
<div id="keyboardIcon" class="icon">
<i class="fas fa-keyboard"></i>
</div>
<select id="languageSelect">
<option value="en">English</option>
<option value="fr">Français</option>
<option value="es">Español</option>
<option value="de">Deutsch</option>
<option value="pt">Português</option>
<option value="it">Italiano</option>
</select>
<label class="switch">
<input type="checkbox" id="themeToggle">
<span class="slider round">
<i class="fas fa-moon moon-icon"></i>
<i class="fas fa-sun sun-icon"></i>
</span>
</label>
</div>
<h1>Tic Tac Toe</h1>
<div id="gameOptions">
<button id="onePlayerBtn" class="selected">1 Joueur</button>
<button id="twoPlayersBtn">2 Joueurs</button>
</div>
<div id="playerOptions">
<h3>Choisissez votre symbole :</h3>
<div class="symbol-choice">
<div id="chooseO" class="symbol-button selected">
<svg viewBox="0 0 100 100" class="o-symbol">
<circle cx="50" cy="50" r="40" />
</svg>
</div>
<div id="chooseX" class="symbol-button">
<svg viewBox="0 0 100 100" class="x-symbol">
<line x1="20" y1="20" x2="80" y2="80" />
<line x1="80" y1="20" x2="20" y2="80" />
</svg>
</div>
</div>
<h3>Choisissez la difficulté :</h3>
<button id="easyAIBtn">Facile</button>
<button id="mediumAIBtn">Moyen</button>
<button id="hardAIBtn">Difficile</button>
</div>
<div class="board-size-buttons">
<button id="size3Btn" class="selected">3x3</button>
<button id="size4Btn">4x4</button>
<button id="size5Btn">5x5</button>
<button id="size6Btn">6x6</button>
</div>
<div class="win-condition-buttons">
<span id="toWin">To Win :</span>
<button id="win3Btn" class="selected">3</button>
<button id="win4Btn">4</button>
<button id="win5Btn">5</button>
<button id="win6Btn">6</button>
</div>
<div id="game-container">
<div id="board"></div>
</div>
<div #id="status-bar">
<p id="message"></p>
<div id="keyboardPlayIndicator">Clavier: Désactivé</div>
<button id="undoBtn" class="icon-button">
<i class="fas fa-undo"></i>
</button>
<button id="resetBtn">Recommencer</button>
</div>
<div id="shortcutPopup" class="popup">
<div class="popup-content">
<h2>Raccourcis clavier</h2>
<ul>
</ul>
<button id="closePopup">Fermer</button>
</div>
</div>
<script src="js/constants.js"></script>
<script src="js/translations.js"></script>
<script src="js/translate.js"></script>
<script src="js/animations.js"></script>
<script src="js/svg-creator.js"></script>
<script src="js/game-logic.js"></script>
<script src="js/ui-handlers.js"></script>
<script src="js/ai.js"></script>
<script src="js/hotkeys.js"></script>
<script src="js/theme.js"></script>
<script src="js/init.js"></script>
</body>
</html>