New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

easy-blackjack

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-blackjack

Play blackjack the easy way.

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

easy-blackjack

Developed with ❤️ by Swôth

npm npm

Installation

npm i --save easy-blackjack

Docs

import { Blackjack } from 'easy-blackjack';
const game = new Blackjack();

// hit function
game.hit();

// stay function
game.stay();

game.dealerDeck; //IDeckCard[] { type: string, value: string }
game.playerDeck; //IDeckCard[]

game.dealerAceCount; // number
game.playerAceCount; // number

game.dealerSum; // number
game.playerSum; // number

game.deck; // IDeckCard[]
game.hidden; // IDeckCard --> hidden card

game.result; // undefined | IResultType
// 'BOTH_BUST' | 'PLAYER_WINS' | 'DEALER_WINS' | 'TIE'

easy-blackjack is licensed under the MIT License.

Keywords

FAQs

Package last updated on 04 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc