A node.js Blackjack library
vlek / blackjack Goto Github PK
View Code? Open in Web Editor NEWA node.js Blackjack library
A node.js Blackjack library
A Deck is something that can be used for various card games, not just for blackjack.
To this end, it should be a module that we create outside of blackjack, but it can still be contained within the project.
The Deck should be made up of Card objects.
A card should have a Suit and a face value.
Things we should be able to do with a deck:
Nice-to-have's:
All subcommands should happen under the bj command so that we do not have stray hit and stand commands (unless we actually want it that way?)
So, how you'd use it is like this:
bj hit
bj stand
bj
(for help)
bj -h / --help
(for help)
bj stats
This is a new thing!
Going to need to explain what this is, how to use it, and whether we want any feedback/helpers on the project.
Will also be nice to add some badges, too!
In order to start a game of blackjack, we need to be able to say hit
.
This should do different things based on whether we have already initialized a game:
All should display the current state of the game first beforehand:
Player: :
Dealer: ?: ?
In order to do #6, we need to first be able to save that information when playing the game.
Regardless of what the end-stage is for a game, it should go through a stats collection stage.
This stats collection should:
The player should be presented with the stats that have been saved for them:
There are two things that should happen when the stand subcommand is used:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.