Assignment: Class Deck ($$$)

Download and add the following file to your topic3 folder:

deck.php

Now, after viewing the video, Write a program that uses the Deck and Card classes that does the following:

1. Create a Deck

2. Draw a card from the deck for the user and display the card

3. Draw a card from the deck for the house, and display the card

4. based on the pokerRank, tell the user if he has lost to the computer, or if he has won against the computer.

Here might be an example output:


You drew: 9 of spades

The computer drew: 10 of spades

YOU LOSE to the computer.


If things are working, you should see two random cards drawn each time you refresh.