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.
doesn't work on internet explorer? :(
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
seemed to work fine
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 >:(
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
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.
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
cool program dude
god people who us ie have no lif
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
thanks iri
I think