Published May 25th, 2018, 5/25/18 5:47 pm
- 2,044 views, 1 today
- 38 downloads, 0 today
0
Thanks for the support :)
This is a fully playable version of the popular card game 'blackjack' in Minecraft. It uses complex redstone circuitry including an AI system which allows the dealer to hit and stand at the appropriate times.
A description of some of the components:
The cards are ‘dealt’ using a binary random number generator. The binary input is decoded into a decimal number between 1 and 64. If the number is greater than 52 (number of cards in a deck) or if it generates a duplicate, another random number must instantly be generated. The cards are saved in 12 RS NOR latch arrays.
Pressing the ‘hit’ button activates a redstone counter which allows each display to be viewed in turn. The displays use simple decoders to display each card (13 different options and 4 suits). The data stored in the arrays is then sent to binary adders which count the total score.
Pressing the stand button activates the AI system for the dealer. The confirm button is necessary as aces can be 1 or 11 in blackjack, and without this the system may detect that you are bust and cause you to lose.
The AI system detects if the dealer’s score is above 16. If it is, the dealer will stand, if not, they will hit (as I believe this is what happens in real blackjack). The dealer is also able to convert aces between 1 and 11 depending on their total.
After the dealer has finished, there is a system which compares the 2 scores and decides the result.
This is a fully playable version of the popular card game 'blackjack' in Minecraft. It uses complex redstone circuitry including an AI system which allows the dealer to hit and stand at the appropriate times.
A description of some of the components:
The cards are ‘dealt’ using a binary random number generator. The binary input is decoded into a decimal number between 1 and 64. If the number is greater than 52 (number of cards in a deck) or if it generates a duplicate, another random number must instantly be generated. The cards are saved in 12 RS NOR latch arrays.
Pressing the ‘hit’ button activates a redstone counter which allows each display to be viewed in turn. The displays use simple decoders to display each card (13 different options and 4 suits). The data stored in the arrays is then sent to binary adders which count the total score.
Pressing the stand button activates the AI system for the dealer. The confirm button is necessary as aces can be 1 or 11 in blackjack, and without this the system may detect that you are bust and cause you to lose.
The AI system detects if the dealer’s score is above 16. If it is, the dealer will stand, if not, they will hit (as I believe this is what happens in real blackjack). The dealer is also able to convert aces between 1 and 11 depending on their total.
After the dealer has finished, there is a system which compares the 2 scores and decides the result.
Progress | 100% complete |
Tags |
4133701
2
Create an account or sign in to comment.