Forums - Open Redstone Engineers
Blackjack! - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: ORE General (https://forum.openredstone.org/forum-39.html)
+--- Forum: Projects & Inventions (https://forum.openredstone.org/forum-19.html)
+---- Forum: In Progress (https://forum.openredstone.org/forum-20.html)
+---- Thread: Blackjack! (/thread-917.html)



Blackjack! - auztin3 - 09-07-2013

Hello everyone! Auztin3 here Big Grin

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 Tongue... 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! Big Grin


RE: Blackjack! - newomaster - 09-07-2013

Nice job Big Grin the user interface is very fancy. Too bad there is an issue with your rngs like that... however it's somewhat difficult to have a certain number of outputs on a good rng without any bias... (might work on something like that).


RE: Blackjack! - redstonewarrior - 09-07-2013

Wow! Excellent display. :3


RE: Blackjack! - EDevil - 09-07-2013

Think we found our in game artist guy. Awesome work Auztin!


RE: Blackjack! - auztin3 - 09-07-2013

Thanks guys! Big Grin And yes, ive noticed that I get waay more lower numbers (3-8) than others.. Also I have yet to deal a Jack :}