This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ChiknNuggets's profile picture

Blackjack [Game]

Started by ChiknNuggets, 16 March 2013 - 05:02 AM
ChiknNuggets #1
Posted 16 March 2013 - 06:02 AM
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.




Hope you Enjoy.


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

–Added Choice of chip size
zekesonxx #2
Posted 16 March 2013 - 06:13 AM
Wow, this is great! My Blackjack skills are very rusty, but the logic seems to be correct.
ChiknNuggets #3
Posted 16 March 2013 - 06:20 AM
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
remiX #4
Posted 16 March 2013 - 08:37 AM
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
kornichen #5
Posted 16 March 2013 - 08:42 AM
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/>
ChiknNuggets #6
Posted 16 March 2013 - 12:44 PM
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

Fixed it, i just forgot a # on a table name so it had no value.
remiX #7
Posted 17 March 2013 - 02:40 AM
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

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.
ChiknNuggets #8
Posted 17 March 2013 - 03:02 AM
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
Macksize #9
Posted 17 March 2013 - 11:15 AM
Really great program ! Works fine for me, good job :P/>
Have you thought about a touchscreen compatibility ? Would very cool :D/>
remiX #10
Posted 17 March 2013 - 12:31 PM
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?
ChiknNuggets #11
Posted 17 March 2013 - 01:40 PM
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
remiX #12
Posted 18 March 2013 - 12:18 AM
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/>
ChiknNuggets #13
Posted 18 March 2013 - 09:51 AM
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 on 18 March 2013 - 12:34 PM
ChiknNuggets #14
Posted 18 March 2013 - 02:27 PM
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