From c14cf59a1c14c322d6bdd9013216316a4ab32890 Mon Sep 17 00:00:00 2001 From: smdewi Date: Mon, 20 Dec 2021 13:02:34 +0800 Subject: [PATCH 01/19] Add pseudo codes --- script.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index bbe8a29..3650456 100644 --- a/script.js +++ b/script.js @@ -1,4 +1,13 @@ +//Blackjack game +//Start game +//Create a deck of card +//Shuffle the deck +//Deal cards to player and dealer +//Give player option to hit or stand +//Calculate score +//Determine who wins + var main = function (input) { - var myOutputValue = 'hello world'; + var myOutputValue = "hello world"; return myOutputValue; }; From 968a3f41d365c6d06dce1663c24d115dec259bdb Mon Sep 17 00:00:00 2001 From: smdewi Date: Mon, 20 Dec 2021 13:04:15 +0800 Subject: [PATCH 02/19] Change background colors and add buttons --- index.html | 47 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 5d0de9e..8f996db 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,7 @@ font-family: sans-serif; margin-left: 30px; margin-right: 30px; + background-color: rgb(32, 97, 81); } #header { @@ -26,7 +27,7 @@ } #container { - background-color: pink; + background-color: rgb(127, 192, 181); margin: 40px auto; max-width: 800px; padding: 38px 31px; @@ -48,7 +49,7 @@ } #output-div { - background-color: lightgrey; + background-color: rgb(32, 97, 81); margin: 20px auto; padding: 20px; width: 100%; @@ -59,24 +60,32 @@ -

Basics! 🚀

+

Basics! Blackjack Game 2️⃣1️⃣🚀

+

Let's play Blackjack!

+
+

Rules of the game:

+

Dealer has to hit if their hand is less than 17

+

Input:


- + + +

Output:

- + From 2b97551100351b2d71b0deebd8e74dd55b7e295f Mon Sep 17 00:00:00 2001 From: smdewi Date: Mon, 20 Dec 2021 13:13:36 +0800 Subject: [PATCH 03/19] Test if added buttons are working --- index.html | 2 +- script.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 8f996db..069b52f 100644 --- a/index.html +++ b/index.html @@ -85,7 +85,7 @@

Basics! Blackjack Game 2️⃣1️⃣🚀

- + + +