Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

Reply
 
Thread Tools Display Modes
Blackjack (and bad slots)
Old
Snowfir3
Guest
 
Status:
Posts: n/a
Default 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
File Type: a2w final6.a2w (4.49 MB, 118 views)

Last edited by Snowfir3; 05-20-2010 at 03:52 PM.
   
Reply With Quote
Blackjack
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 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.
   
Reply With Quote
Old
Snowfir3
Guest
 
Status:
Posts: n/a
Default 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.
   
Reply With Quote
Old
Snowfir3
Guest
 
Status:
Posts: n/a
Default 09-27-2010, 12:39 PM

Fixed some bugs
No longer need to rewrite lines
Can play multiple times without restarting world
Attached Files
File Type: a2w blackjack.a2w (4.51 MB, 85 views)
   
Reply With Quote
Old
henrykipson
Guest
 
Status:
Posts: n/a
Default 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.
   
Reply With Quote
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Angry 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 [¬º-°]¬
   
Reply With Quote
question
Old
shaundavis24
Junior Member
 
Status: Offline
Posts: 2
Join Date: Oct 2012
Location: Pittsburgh
Default 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?
   
Reply With Quote
Reply

Thread Tools
Display Modes

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 Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.