Based on the tutorial for Lua and LÖVE 11 by https://simplegametutorials.github.io/love/blackjack/ with a few modifications aimed at mobile devices.
Rules
The dealer and player are dealt two cards each. The dealer's first card is hidden from the player.
The player can hit (i.e. take another card) or stand (i.e. stop taking cards).
If the total value of the player's hand goes over 21, then they have gone bust.
Face cards (king, queen and jack) have a value of 10, and aces have a value of 11 unless this would make the total value of the hand go above 21, in which case they have a value of 1.
After the player has stood or gone bust, the dealer takes cards until the total of their hand is 17 or over.
The round is then over, and the hand with the highest total (if the total is 21 or under) wins the round. Controls Left click Click on hit or stand button
Attachment | Size | Date |
---|---|---|
blackjack-0.1.2-1.noarch.rpm | 2.87 MB | 01/05/2024 - 13:33 |
(none)
Recent comments