BoutCheetah

Other => Off Topic => Topic started by: Thornz on November 27, 2013, 12:38:29 AM

Title: My Blackjack coding assignment
Post by: Thornz on November 27, 2013, 12:38:29 AM
So I had to code a game of Blackjack, which is due in a few hours, but I had the neat idea to post it here to see if I missed anything, or if any part of it is broken.  PLEASE DON'T USE INTERNET EXPLORER (It doesn't work properly :P).  Dealer wins ties, btw

I added a ranking system just cause I could....

My code:  http://www.codeskulptor.org/#user26_CFYrTffXEQ_4.py (http://www.codeskulptor.org/#user26_CFYrTffXEQ_4.py)

Grading rubric:

1 pt - The program displays the title "Blackjack" on the canvas.
1 pt - The program displays 3 buttons ("Deal", "Hit" and "Stand") in the control area.
2 pts - The program graphically displays the player's hand using card images. (1 pt if text is displayed in the console instead)
2 pts - The program graphically displays the dealer's hand using card images. Displaying both of the dealer's cards face up is allowable when evaluating this bullet. (1 pt if text displayed in the console instead)
1 pt - The dealer's hole card is hidden until the current round is over. After the round is over, it is displayed.
2 pts - Pressing the "Deal" button deals out two cards each to the player and dealer. (1 pt per player)
1 pt - Pressing the "Deal" button in the middle of the round causes the player to lose the current round.
1 pt - Pressing the "Hit" button deals another card to the player.
1 pt - Pressing the "Stand" button deals cards to the dealer as necessary.
1 pt - The program correctly recognizes the player busting.
1 pt - The program correctly recognizes the dealer busting.
1 pt - The program correctly computes hand values and declares a winner. Evaluate based on messages.
2 pts - The program accurately prompts the player for an action with messages similar to "Hit or stand?" and "New deal?". (1 pt per message)
1 pt - The program implements a scoring system that correctly reflects wins and losses. Please be generous in evaluating this item.
Title: Re: My Blackjack coding assignment
Post by: Cooky on November 27, 2013, 12:39:42 AM
doesn't work on internet explorer?  :(
Title: Re: My Blackjack coding assignment
Post by: Thornz on November 27, 2013, 12:42:17 AM
Quote from: Cooky on November 27, 2013, 12:39:42 AM
doesn't work on internet explorer?  :(

Nope, for some reason this coding program doesn't like IE

For god's sake, just download Chrome, Cooky. lolol
Title: Re: My Blackjack coding assignment
Post by: Purple on November 27, 2013, 12:50:17 AM
seemed to work fine

Title: Re: My Blackjack coding assignment
Post by: Cooky on November 27, 2013, 12:51:52 AM
Quote from: Thornz on November 27, 2013, 12:42:17 AM
For god's sake, just download Chrome, Cooky. lolol

no I am loyal to IE >:(
Title: Re: My Blackjack coding assignment
Post by: Allie on November 27, 2013, 01:19:49 AM
Quote from: Cooky on November 27, 2013, 12:51:52 AM
Quote from: Thornz on November 27, 2013, 12:42:17 AM
For god's sake, just download Chrome, Cooky. lolol

no I am loyal to IE >:(

lolwut
are u being sarcastic.
Title: Re: My Blackjack coding assignment
Post by: hur9 on November 27, 2013, 01:21:21 AM
Quote from: Cooky on November 27, 2013, 12:51:52 AM
Quote from: Thornz on November 27, 2013, 12:42:17 AM
For god's sake, just download Chrome, Cooky. lolol

no I am loyal to IE >:(
i was too but then i realized webpages that had problems on explorer didnt on chrome
Title: Re: My Blackjack coding assignment
Post by: Thornz on November 27, 2013, 04:38:16 AM
Quote from: hur90 on November 27, 2013, 01:21:21 AM
Quote from: Cooky on November 27, 2013, 12:51:52 AM
Quote from: Thornz on November 27, 2013, 12:42:17 AM
For god's sake, just download Chrome, Cooky. lolol

no I am loyal to IE >:(
i was too but then i realized webpages that had problems on explorer didnt on chrome

Yeah, quite a few web pages actually dislike IE. It's weird.
Title: Re: My Blackjack coding assignment
Post by: Cooky on November 27, 2013, 01:47:41 PM
Quote from: Allie on November 27, 2013, 01:19:49 AM
Quote from: Cooky on November 27, 2013, 12:51:52 AM
Quote from: Thornz on November 27, 2013, 12:42:17 AM
For god's sake, just download Chrome, Cooky. lolol

no I am loyal to IE >:(

lolwut
are u being sarcastic.

not really

I mean sometimes some pages don't work and I have to use firefox but I am always using internet explorer
Title: Re: My Blackjack coding assignment
Post by: Iridion on November 27, 2013, 01:51:19 PM
cool program dude
Title: Re: My Blackjack coding assignment
Post by: -PeaceLover- on November 27, 2013, 02:07:13 PM
god people who us ie have no lif
Title: Re: My Blackjack coding assignment
Post by: Iridion on November 27, 2013, 02:20:12 PM
Quote from: -PeaceLover- on November 27, 2013, 02:07:13 PM
god people who us ie have no lif
or never tried to create a decent multibrowser webpage xd
Title: Re: My Blackjack coding assignment
Post by: Cooky on November 27, 2013, 02:27:17 PM
thanks iri

I think
Title: Re: My Blackjack coding assignment
Post by: Iridion on November 27, 2013, 02:28:05 PM
Quote from: Cooky on November 27, 2013, 02:27:17 PM
thanks iri

I think

ok i laughed kudos
Title: Re: My Blackjack coding assignment
Post by: qolderman on November 27, 2013, 05:47:07 PM
Quote from: Iridion on November 27, 2013, 01:51:19 PM
cool program dude