-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportBlackjack.html
153 lines (115 loc) · 6.53 KB
/
portBlackjack.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Portfolio Details</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="assets/img/favicon.png" rel="icon">
<link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
<link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
<!-- =======================================================
* Template Name: Personal
* Template URL: https://bootstrapmade.com/personal-free-resume-bootstrap-template/
* Updated: Mar 17 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== -->
</head>
<body>
<main id="main">
<!-- ======= Portfolio Details ======= -->
<div id="portfolio-details" class="portfolio-details">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2 class="portfolio-title">BlackJack Game</h2>
<div class="portfolio-details-slider swiper">
<div class="swiper-wrapper align-items-center">
<div class="swiper-slide">
<img src="assets/img/blackjack.png" style="width: 100%; height: auto; object-fit: contain;">
</div>
</div>
<div class="swiper-pagination"></div>
</div>
</div>
<div class="col-lg-12 portfolio-info">
<h3>Project information</h3>
<ul>
<li><strong>Category</strong>: App Development</li>
<!-- <li><strong>Client</strong>: ASU Company</li>
<li><strong>Project date</strong>: 01 March, 2020</li> -->
<li><strong>Github URL</strong>: <a href="https://github.com/Blessy-B-Sherin/Blackjack-game">GitHub Repository</a></li>
<li><strong>Netlify URL</strong>: <a href="https://blackjack-royale-game.netlify.app/">Browser Preview</a></li>
</ul>
<p>
Welcome to the Blackjack Game! This simple web-based game allows you to play a round of Blackjack, also known as 21, directly in your browser. The goal is to get as close to 21 as possible without going over. You can draw new cards and see if you can beat the house!
</p>
<h6 style="text-decoration: underline;">Features</h6>
<ul>
<li><b>Player Input:</b> Enter your name to start the game and see your current chips balance.</li>
<li><b>Interactive Gameplay: </b>Draw new cards to get closer to 21.</li>
<li><b>Game Status: </b>The game will let you know if you've won (Blackjack!), lost (over 21), or if you should draw another card.</li>
<!-- <li><b>Tie Detection: </b>Show trophy icons for both teams when scores are tied.</li> -->
<li><b>Help Section: </b>A help modal is available to guide you on how to play the game.</li>
</ul>
<h6 style="text-decoration: underline;">How to Play</h6>
<ul>
<li><b>Enter Your Name:</b> Type your name in the input field.</li>
<li><b>Start the Game:</b> Click the "Start Game" button to begin. You'll receive two cards, and their sum will be displayed.</li>
<li><b>Draw New Cards:</b> If your sum is below 21, you can choose to draw a new card by clicking the "NEW CARD" button.</li>
<li><b>Win or Lose:</b> If your sum is exactly 21, you win the round! If it exceeds 21, you lose the game.</li>
<li><b>Help:</b> Click the "Help" button for a quick guide on how to play.</li>
</ul>
<h6 style="text-decoration: underline;">Technologies Used</h6>
<ul>
<li><b>HTML:</b> Structure of the application</li>
<li><b>CSS:</b> Styling and layout</li>
<li><b>JavaScript: </b>Interactive functionality</li>
</ul>
<h6 style="text-decoration: underline;">Game Logic</h6>
<ul>
<li>The game follows the standard rules of Blackjack:</li>
<li>The player starts with two random cards.</li>
<li>Cards 2-10 are worth their face value.</li>
<li>Face cards (Jack, Queen, King) are worth 10.</li>
<li>An Ace is worth 11 (but can be adjusted if it causes the sum to exceed 21).</li>
<li>The player can draw additional cards to try and get as close to 21 as possible without going over.</li>
<li>If the player's sum is exactly 21, they win. If it's over 21, they lose.</li>
</ul>
</p>
</div>
</div>
</div>
</div><!-- End Portfolio Details -->
</main><!-- End #main -->
<div class="credits">
<!-- All the links in the footer should remain intact. -->
<!-- You can delete the links only if you purchased the pro version. -->
<!-- Licensing information: https://bootstrapmade.com/license/ -->
<!-- Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/personal-free-resume-bootstrap-template/ -->
</div>
<!-- Vendor JS Files -->
<script src="assets/vendor/purecounter/purecounter_vanilla.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/swiper/swiper-bundle.min.js"></script>
<script src="assets/vendor/waypoints/noframework.waypoints.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
</body>
</html>