-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (58 loc) · 3.39 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blackjack Casino</title>
<link rel="icon" href="image/favicon.png" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<!-- Game section -->
<div class="game-area">
<h1>Blackjack Casino</h1>
<div id="best-balance">Meilleur solde: $<span id="best-balance-amount">300</span></div>
<div id="max-bet">Plus grosse mise: $<span id="max-bet-amount">0</span></div>
<div id="balance">Solde: $<span id="balance-amount">300</span></div>
<div id="bet">Mise: $<span id="bet-amount">0</span></div>
<input type="number" id="bet-input" min="1" max="300" placeholder="Entrez votre mise">
<button id="place-bet-button">Placer la mise</button>
<div id="dealer-hand">
<h2>Main du croupier <span id="dealer-total"></span></h2>
<div class="cards-container" id="dealer-cards"></div>
</div>
<div id="player-hand">
<h2>Votre main <span id="player-total"></span></h2>
<div class="cards-container" id="player-cards"></div>
</div>
<div id="messages"></div>
<div class="action">
<button id="hit-button">Tirer</button>
<button id="stand-button">Rester</button>
<button id="double-down-button">Double Down</button>
<button id="surrender-button">Abandonner</button>
</div>
</div>
<!-- Rule section -->
<div class="rules">
<h1>Règles principales:</h1>
<ul>
<li>Le but est d'avoir une main plus proche de 21 que le croupier sans dépasser 21. Dépasser 21 points entraîne une défaite immédiate.</li>
<li>Les cartes ont differentes valeurs : <br>
- Les cartes numérotées valent leur valeur faciale, <br>
- Les buches (J, Q, K) valent 10, <br>
- L'As vaut 1 ou 11, selon ce qui est le plus avantageux et peut changer de valeur au cours de la partie.</li>
<li>Le croupier ne peut plus tirer une fois arrivé à un score de 17 ou plus</li>
<li>Une des deux premieres cartes du croupier est cachée puis est révélée suite à la premiere action du joueur</li>
<li>le jeu ne se joue pas tour par tour. vous jouez d'abord et le croupier joue après vous</li>
<li>L'action "Abandonner" permet de mettre fin à la partie tout en récupérant la moitié de sa mise. Cette action est possible uniquement en premier coup.</li>
<li>L'action "Double Down" double votre mise et vous fait tirer une derniere carte. Cette action est possible uniquement en premier coup.</li>
<li>Un blackjack est la situation où une main reçoit, dès le début du jeu, un as et une bûche (le total vaut donc 21 et ne peut pas être dépassé).</li>
<li>Pour une meilleure compréhension des règles, <a href="https://fr.wikipedia.org/wiki/Blackjack_(jeu)#Règles" target="_blank">cliquez ici</a></li>
</ul>
</div>
</div>
<script src="script.js"></script>
</body>
</html>