←  Programs

ComputerCraft | Programmable Computers for Minecraft

»

Blackjack [Game]

ChiknNuggets's Photo ChiknNuggets 16 Mar 2013

Blackjack



Hey Guys,



Once again had some spare time so i decided to whip this up today took me a few hours but i think

that i got all the kinks out, if you do by chance find a problem post it below and ill fix it in a jiff.



So without further adieu here is my Blackjack game.


Download Links: Direct : adf.ly(Because you love me)

Hope you Enjoy.


-- Changed table limit to 40,000 to stop graphical glitch

--Added Choice of chip size

Quote

zekesonxx's Photo zekesonxx 16 Mar 2013

Wow, this is great! My Blackjack skills are very rusty, but the logic seems to be correct.
Quote

ChiknNuggets's Photo ChiknNuggets 16 Mar 2013

well there is a few things that i think i will have to add to make it fully like blackjack eg. insurance,doubling,spliting(too hard cbf) otherwise i think ive done an alright job
Quote

remiX's Photo remiX 16 Mar 2013

Nice! I was actually thinking of making Blackjack sometime -.-

Busy playing now and ... First game I got 21 in the first 2 cards, ha!

Bug:
When I hit stay it gave me this error:
[attachment=1071:err.PNG]

Not sure how to re-create it because it was the very first time opening the game and very first time hitting stay.

EDIT: Just got it again, with cards Queen of Clubs and Ace of Spades, $900 in the pot and the dealer had 8 of Hearts and 3 of Spades
Quote

kornichen's Photo kornichen 16 Mar 2013

Nice :D
I love to see that more and more games are coming to this forum. I think I will add a games category to the OrbitStore in next version :D
Quote

ChiknNuggets's Photo ChiknNuggets 16 Mar 2013

 remiX, on 16 March 2013 - 08:37 AM, said:

Nice! I was actually thinking of making Blackjack sometime -.-

Busy playing now and ... First game I got 21 in the first 2 cards, ha!

Bug:
When I hit stay it gave me this error:
err.PNG

Not sure how to re-create it because it was the very first time opening the game and very first time hitting stay.

EDIT: Just got it again, with cards Queen of Clubs and Ace of Spades, $900 in the pot and the dealer had 8 of Hearts and 3 of Spades

Fixed it, i just forgot a # on a table name so it had no value.
Quote

remiX's Photo remiX 17 Mar 2013

 ChiknNuggets, on 16 March 2013 - 12:44 PM, said:

 remiX, on 16 March 2013 - 08:37 AM, said:

Nice! I was actually thinking of making Blackjack sometime -.-

Busy playing now and ... First game I got 21 in the first 2 cards, ha!

Bug:
When I hit stay it gave me this error:
err.PNG

Not sure how to re-create it because it was the very first time opening the game and very first time hitting stay.

EDIT: Just got it again, with cards Queen of Clubs and Ace of Spades, $900 in the pot and the dealer had 8 of Hearts and 3 of Spades

Fixed it, i just forgot a # on a table name so it had no value.

Heh :P

Hmm, I see you redraw the entire screen after every newcard, where the refreshCards() does it.
You should prevent it so the screen doesn't flash because of the refreshes.
Quote

ChiknNuggets's Photo ChiknNuggets 17 Mar 2013

ive actually found a few little bugs since i uploaded this, ive been like secretly fixing anything i find, but i guess thats what happen when u spend 10 hours creating and testing a code lol
Quote

Macksize's Photo Macksize 17 Mar 2013

Really great program ! Works fine for me, good job :P
Have you thought about a touchscreen compatibility ? Would very cool :D
Quote

remiX's Photo remiX 17 Mar 2013

 ChiknNuggets, on 17 March 2013 - 03:02 AM, said:

ive actually found a few little bugs since i uploaded this, ive been like secretly fixing anything i find, but i guess thats what happen when u spend 10 hours creating and testing a code lol

I know that feel :P

How do you have so many links in your signature?
Quote

ChiknNuggets's Photo ChiknNuggets 17 Mar 2013

if you click the twitter link when making a signiture click topic link type the number of the topic, eg in this case its 11173, it doesnt count them as links because they are internal
Quote

remiX's Photo remiX 18 Mar 2013

 ChiknNuggets, on 17 March 2013 - 01:40 PM, said:

if you click the twitter link when making a signiture click topic link type the number of the topic, eg in this case its 11173, it doesnt count them as links because they are internal

Ah, sneaky :P

Could you make the increase of the pot dependent on how much cash you have? Because when you reach 10k, it takes a while to go all in :P
Quote

ChiknNuggets's Photo ChiknNuggets 18 Mar 2013

hold the up button it will only take a few seconds



Also fixed a few bugs i found( dont know of anymore, so please tell me if you find some)
Edited by ChiknNuggets, 18 March 2013 - 01:34 PM.
Quote

ChiknNuggets's Photo ChiknNuggets 18 Mar 2013

Okke dokke i took your advice anyway and now in the bet placing window there is a new feature that lets you change the type of chip to add there is now, $1,$5,$25,$100,$500,$1000 dollar chips, so far i havent seen any bug that has arised from adding this so yea find any tell me
Quote