Skip to content

dopeantelope/blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlackJack

A web application game of BlackJack.

Work in progress - converting to OOP

Alt Text

How It's Made:

A JavaScript web application that utilizes the deck of cards API to randomize a dealer and players hand. Players have the ability to hit which uses a 'draw card' end point, or players can stand. When a player stands, the dealers card is revealed and the dealer draws cards until the total is greater than or equal to 17. Scores are then compared and a winner is declared. Upon player or dealer bust the game ends.

Tech used: HTML, CSS, JavaScript, Deck of Cards API

Optimizations

Further optimizations would include a betting feature where the player can bet chips against the dealer. An optimization beyond this would be to introduce side betting typcially seen in BlackJack such as Perfect Pairs and 21+3.

Lessons Learned:

  • How the Twitter API works
  • Learnt how to use CronJob to automate processes
  • That using a logger such as Winston is super helpful when using Node
  • Grew more confident using Postman as I used it a lot when working with the Genius API
  • Learnt how to scrape from a webpage using Cheerio and to use regex to replace break tags with \n to handle text easier

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published