Alice Community Blackjack (and bad slots)

Snowfir3
Guest

Status:
Posts: n/a
Blackjack (and bad slots) - 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.
Attached Files
 final6.a2w (4.49 MB, 115 views)

Last edited by Snowfir3; 05-20-2010 at 03:52 PM.

 Blackjack
 DensetsuNoKaboom Senior Member     Status: Offline Posts: 1,188 Join Date: May 2010 Location: e4eaf2 Blackjack - 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. Thank you for taking the time to read this signature. This signature loves you.
 Snowfir3 Guest   Status: Posts: n/a 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 Last edited by Snowfir3; 09-27-2010 at 12:40 PM.
Snowfir3
Guest

Status:
Posts: n/a
09-27-2010, 12:39 PM

Fixed some bugs
No longer need to rewrite lines
Can play multiple times without restarting world
Attached Files
 blackjack.a2w (4.51 MB, 84 views)

 henrykipson Guest   Status: Posts: n/a 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. Last edited by x2495iiii; 11-07-2012 at 11:37 AM.
 arty-fishL Senior Member     Status: Offline Posts: 1,878 Join Date: Mar 2008 Location: In the corner of your eye 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 █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█ █░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█ █░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█ █░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█ █░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█ █░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█ █░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█ I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬
 question
 shaundavis24 Junior Member   Status: Offline Posts: 2 Join Date: Oct 2012 Location: Pittsburgh question - 11-07-2012, 11:04 AM How did you get the cards to look like that? Did you find a gallery for them or something?

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge