09-07-2013, 02:45 AM
Hello everyone! Auztin3 here
This is the blackjack game in the process of being made!
http://imgur.com/5c6RhPG
http://imgur.com/h2OMewk
http://imgur.com/Kzs8yvR
http://imgur.com/trzD3lb
Basically what it does (so far) is generate a random number between 1-13 and save it to one of 5 slots... (5 slots meaning that the max amount of cards a player can draw is 5 here). I looked it up and theres a 1.46% chance of going over 5 ... To only get 13 outputs (for the 13 different cards) from 4 bits, i just used a little decoder underneath that said if it was either 14 or 15 is would loop back and generate another number. But testing whether 0 was outputted was a little bit more complicated because its natural off state was 0. So an AND gate with a little delay and the outputs OR'd together did the trick :}
Also face cards have a value of 10 in blackjack, so i needed a way of still being able to distingush the difference between a K, Q, & J... So that just took another place to save the original numbers, and a 4 bit decoder. Two of these "units" were made, 1 for the dealer, and 1 for the player. Its meant to be a single player game, but could easily be made into a two player one.
The type of seven segment display gave me the most trouble... originally i thought lamps would work but... (well lets just say i was really wrong), so piston it was... Occasional block drops unfortunately... gotta work that out. King was fun to do.. its hard to describe (must be seen). Plus a 10 is just 0, and a queen looks like a 9 but without the bottom segment.
Things still in progress:
-Betting system
-Winner detection (halfway done)
- And the double, and split functions
Any suggestions and/or questions are welcome and i'll try to incorporate them!
This is the blackjack game in the process of being made!
http://imgur.com/5c6RhPG
http://imgur.com/h2OMewk
http://imgur.com/Kzs8yvR
http://imgur.com/trzD3lb
Basically what it does (so far) is generate a random number between 1-13 and save it to one of 5 slots... (5 slots meaning that the max amount of cards a player can draw is 5 here). I looked it up and theres a 1.46% chance of going over 5 ... To only get 13 outputs (for the 13 different cards) from 4 bits, i just used a little decoder underneath that said if it was either 14 or 15 is would loop back and generate another number. But testing whether 0 was outputted was a little bit more complicated because its natural off state was 0. So an AND gate with a little delay and the outputs OR'd together did the trick :}
Also face cards have a value of 10 in blackjack, so i needed a way of still being able to distingush the difference between a K, Q, & J... So that just took another place to save the original numbers, and a 4 bit decoder. Two of these "units" were made, 1 for the dealer, and 1 for the player. Its meant to be a single player game, but could easily be made into a two player one.
The type of seven segment display gave me the most trouble... originally i thought lamps would work but... (well lets just say i was really wrong), so piston it was... Occasional block drops unfortunately... gotta work that out. King was fun to do.. its hard to describe (must be seen). Plus a 10 is just 0, and a queen looks like a 9 but without the bottom segment.
Things still in progress:
-Betting system
-Winner detection (halfway done)
- And the double, and split functions
Any suggestions and/or questions are welcome and i'll try to incorporate them!