University of South Florida Javascript Deal Cards and Allow Drag and Drop Project
Question Description
Hi I need HTML 5 and Javascript code to do the following (see attached word document for full instructions):
For this assignment you will need a deck of cards. You can finda public domain set of cards at http://code.google.com/p/vector-playing-cards/ (thereare others available if you want to use a different one).
I wouldrecommend putting the cards in a folder and name them with a sequential namesuch as S1.jpg S13.jpg (Ace through K of Spades), C1-C13, H1-H13, D1-D13.This will make it really easy to access the images.
For thenext step you deal cards to the screen I recommend a button titled Dealthat deals all the cards at once but the way you choose to do this is up toyou. Bottom line is you need to have an interface to deal cards to the screen,and you must deal the cards when the user uses the interface. If you choose todeal cards from a standard deck of cards you will need to ensure the samecard is not dealt twice.
Here is thedrag/drop part the player should be able to discard (get rid of cards). Theywill do this BY DRAGGING THE CARDS to either the deck, or dealer, or some otherlocation on the screen that visually indicatesit is the discard pile (no mystery discards) when the player drags a card todiscard it. When a card is discarded you may choose to deal a new card or not.
Note, the webpage/code must pass the following compliance checkers (no errors): https://achecker.ca/checker/index.php and https://validator.w3.org/
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."