PDA

View Full Version : Blackjack (and bad slots)


Snowfir3
05-20-2010, 03:36 PM
This is just a game i made for a final in my game design class. My teacher thought it was advanced for the class and I was just about the only one in my class who understood how the code worked. I had also noticed that i could not find a pre-made world with a deck of cards in it and thought this would be good to share. Feel free to use the deck of cards i have put in the world.

Tip: I dont know why, and if you could find a way to fix this, but every time you open the game there are 6 lines of code in the method "Blackjack" that must be re written. I have these lines marked and can send you a short video if you have trouble with it. These lines must be re written before you try to play the blackjack game, if all are not reset then the game will crash.

Also for some odd reason if you are delt the five of hearts it will give it to you a second time causing the card instance to slide to the right, it looks as if you only have one card but your total is 10.

Have fun and anny help with the two problems, and anny others, is much appreciated.

DensetsuNoKaboom
05-21-2010, 06:02 AM
Not too bad, but I only found 4 lines of code that were noted as needing to be replaced.

Snowfir3
05-23-2010, 01:31 PM
There are 6 lines, 4 are in the do togethers at the top. Im guessing thoes are the ones you found. Annother one is in an if statement about half way down, the if sais " if world.hit == true ". The last one is nested inside of the if directly below it. You want to look in " if world.hit == false " and then inside " if player card value > dealer card 1 ". I hope that helps.

__________________________________________________ _____________________
Now fixed

Snowfir3
09-27-2010, 12:39 PM
Fixed some bugs
No longer need to rewrite lines
Can play multiple times without restarting world

henrykipson
02-04-2011, 02:04 PM
I've been to this casino five times in the past two years. I have enjoyed playing the slots here every time. My designated "casino cash" seems to last longer at the slots at this casino than at other casinos.


blackjack and slots (http://www.eldoradopalace.com/)

arty-fishL
02-05-2011, 10:58 AM
Henrykipson should be banned, that link leads to a dangerous site. The WOT rating is:

Trustworthiness Poor
Vendor reliability Very poor
Privacy Very poor
Child safety Very poor

:mad::mad::mad::mad: