-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
120 lines (101 loc) · 3.68 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
116
117
118
119
120
<!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>Document</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="game-name">
<h1>BLACK JACK</h1>
</div>
<div id="anchor">
<a href="#instructions"><h1>INSTRUCTIONS</h1></a>
</div>
<div id="game">
<!-- <div id = 'number'>
2
</div> -->
<div id="game-window">
<div id="player-window">
<div id="player-points">
<p>YOU:</p><p id = 'you'>0</p>
</div>
<div id="player-cards">
</div>
</div>
<div id="dealer-window">
<div id="dealer-points">
<p>DEALER:</p><p id = 'dealer'>0</p> </div>
<div id="dealer-cards">
</div>
</div>
</div>
<div id="game-options">
<div id="game-options-1">
<button type="button" class="btn btn-primary" onclick="player_draw_card()">HIT</button>
<button type="button" class="btn btn-warning" onclick="move_to_dealer()">STAY</button>
<button type="button" class="btn btn-danger" onclick="restart()">NEW</button>
</div>
</div>
<div id="points">
<div id="row-1">
<div id="cell-11">
WINS
</div>
<div id="cell-12">
LOSS
</div>
<div id="cell-13">
DRAW
</div>
</div>
<div id="row-2">
<div id="cell-21">
0
</div>
<div id="cell-22">
0
</div>
<div id="cell-23">
0
</div>
</div>
</div>
</div>
<div id="instructions">
<h3>INSTRUCTIONS</h3>
<H2>HOW POINTS ARE COUNTED</H2>
<ul>
<li>Cards from 2-9 are at face-value (Have the points = to the number on them)</li>
<li>J,Q,K get 10 points each</li>
<li>A can be either 1 or 11 points based upon the situation. <br>
A should be taken as 11. If the sum of numbers exceed 21, you can take A to be 1.
</li>
</ul>
<H2>HOW CARDS ARE DEALT</H2>
<ul>
<li>The dealer and the player both get 2 cards at random</li>
<li>One of the dealer's card is shown, but the other is hidden</li>
<li>The player needs to decide if they will stay with their 2 cards, or draw another one</li>
<li>Same goes for the dealer</li>
</ul>
<H2>OBJECTIVE</H2>
<ul>
<li>The game is won by whichever person has the points closest to 21, but not exceeding it.</li>
<li>In case it is exceeding 21, then the person gets busted (lost the round)</li>
</ul>
</div>
<div id="credits">
<p id="devs">
<p id = "by">By: </p>
<p id = "names">Karthikeyan J <br> Vinu Rakav</p>
</p>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/party-js@latest/bundle/party.min.js"></script>
<script src = "main.js"> </script>
</html>