在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ChrisZieba/blackjack开源软件地址:https://github.com/ChrisZieba/blackjack开源编程语言:JavaScript 100.0%开源软件介绍:#blackjack
The game engine is still very basic and needs a lot of functionality added. Its use is to create the needed scenarios for calculating hand probabilities. To see an example of hand probabilities being calculated please see here. There is also an example source file that can be found in the ##Usage You can use the game engine and probability library separately or together. var game = new Blackjack.Game('player1', 'house', {
numberOfDecks: 1
});
// Start a new game
game.deal();
var shoe = game.getShoe();
var dealerCards = game.getDealer().getCards();
var playerCards = game.getPlayer().getCards();
// Calculate probabilities for standing, hitting, and doubling down
var stand = Blackjack.Probability.stand(shoe, dealerCards, playerCards, 3);
var hit = Blackjack.Probability.hit(shoe, dealerCards, playerCards, 3);
var double = Blackjack.Probability.double(shoe, dealerCards, playerCards, 3); ##Options
##Methods The following are all the public methods exposed through the ####Game
####Player
####Probabilities The
##Development There are many features for the game engine that need to be added and/or worked on:
There are many options that need to be supported in the game constructor:
####Local To build
The combined minified file will appear in the ##License MIT license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论