Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
JavaScript HTML Game from Scratch Blackjack
Rating: 4.4 out of 5(130 ratings)
2,178 students

JavaScript HTML Game from Scratch Blackjack

Learn how to create a web application from scratch. Apply JavaScript to HTML and CSS to build a Blackjack application
Created byLaurence Svekis
Last updated 11/2024
English

What you'll learn

  • Use JavaScript with HTML and CSS together
  • Create a Blackjack game from scratch
  • Apply logic and build a web based game using HTML, CSS and JavaScript

Course content

5 sections54 lectures4h 54m total length
  • JavaScript game introduction4:29
  • Course Resources2:35

    Discover tools for building the JavaScript blackjack game from scratch: a code editor, Chrome and its dev tools, and a local index.html workflow to test and render in the browser.

  • JavaScript Creating Random Numbers4:25

    Learn to generate random numbers in JavaScript with Math.random and Math.floor, converting decimals to integers to yield 1–100 and 1–52 card deck indices.

  • Creating a deck of Cards JavaScript5:00

    Create a full 52-card deck by defining suits and ranks, looping through them, building cards, and preparing to pick a random card for display.

  • Source Code loops and random0:06
  • Output special Characters JavaScript HTML CSS3:07

    Output content into a web page by selecting an element with getElementById, updating innerHTML to display a deck of cards with special characters, and apply font styling.

  • Adding Color to Characters ternary operator JavaScript4:56
  • Source Code0:21
  • How to generate a random card value using JavaScript8:41

    Create a card object with suit, icon, background color, and card number, compute card values (ace as 1, face cards as 10), generate random cards for a blackjack game.

  • Source Code for random card values0:28

Requirements

  • Basic HTML
  • Basic CSS
  • Basic JavaScript

Description

Learn how to build a playable Blackjack web based application from scratch!

Using HTML, CSS and JavaScript this course will show you how to create a game from scratch.  One of the best ways to learn how to use JavaScript is to apply it to projects.  This course show you the steps and process from a blank file to building out the entire game.

This course is designed for beginners with some basic JavaScript, HTML and CSS experience required.  We will be reviewing only the JavaScript functionality required to build the game and demonstrating how to apply the code. This course does not cover HTML, CSS and JavaScript in their entirety but covers the use of them in relation to building a game.

Start with the basics of what is needed, apply logic and build out a working web application.  Test your application, tweak fine tune and get it working as designed.   

  • Start off building a deck of cards in JavaScript
  • Learn how to generate values of cards to use within your application.
  • Prepare to build the game.  Define the game rules and what you need in order to get that functionality.
  • Learn how to build a playing card visually with CSS
  • Create the game play using JavaScript applying logic
  • Add player actions and decision points
  • create the logic for the dealer
  • Put it all together to play Blackjack

Source Code is included, step by step instruction to demonstration how to build an application.  

Taught by an instructor with over 18 years of web development experience.

I'm here to help you learn how to write JavaScript and ready to answer any questions you may have.  

This course showcases how to build a fun interactive application.  When you are ready 



Who this course is for:

  • Web developers
  • Web application developers
  • Anyone who wants to learn how to apply JavaScript
  • Anyone who wants to Build a web based game from scratch