Question
Asked by:
Scottyb
Scottyb
Rating : No Rating
Questions Asked: 5
Tutorials Posted: 0
 

$15.00 Java Card Game

Q:
Hello, I'm having a problem with an assignment I've been set... I have to create a playing card system and develop it with some code that has been provided.

Not very informative I know, that's why I have included the outline in a file below along with the necessary code to edit.

If anyone is able to help me, I'd really appreciate it.

Scottyb.
 
Attachments:
Assignment W3.doc (46K)
Assignment W3.doc (46K)
Assignment W3.doc (46K)


   
   
   
   
 
Available Tutorials to this Question
Posted by:
rainman
rainman
Rating (40): A+
Questions Asked: 2
Tutorials Posted: 174, earned $906.64
 

$15.00 Java Card Game. Filled In Code + Driver Class For Testing. Compiles, Commented For Your Learning Benefit, Works.

  • This tutorial was purchased 1 time and rated A+ by students like you.
  • Posted on Feb. 25, 2009 at 11:17:17AM
A:
Preview: ... blic String suit() { return suit; }<br> <br> //return the card's info as a string<br> public String toString() { return rank + " OF " + suit; }<br><br> }<br> <br> //Declare an array of cards named deck and allocate space for an array of 52 Cards<br> private Card [] deck = new Card[52];<br> private int numberOfCards ;<br><br> //Deck constructor, fills the card in formation<br> public Deck()<br> {<br> numberOfCards = 52;<br> <br> //Names of the suits in a String array<br> String [] suits = {"SPADES","DIAMONDS","CLUBS","HEARTS"};<br> ...

The full tutorial is about 986 words long plus attachments.

Attachments:
Driver.java (0K) (Preview)
Deck.java (2K) (Preview)
Posted by:
modulo51
modulo51
Rating (110): A-
Questions Asked: 1
Tutorials Posted: 353, earned $2,117.64
 

$10.00 Java Deck class w/inner Card class, UseNotes

  • This tutorial hasn't been purchased yet.
  • Posted on Feb 25, 2009 at 11:19:49PM
A:
Preview: ... fCards = 52;<br> }<br> // inner class to represnt and individual card:<br> private class Card {<br><br> final String[] suits = {"SPADES", "DIAMONDS", "CLUBS", "HEARTS"};<br> final String[] denominations = {"Ace", "King", "Queen", "Jack", "10",<br> "9", "8", "7", "6", "5", "4", "3", "2"<br> };<br> private String suit;<br> private String denom;<br><br> ...

The full tutorial is about 791 words long plus attachments.

Attachments:
Deck.java (2K) (Preview)
DeckUseNotes.txt (0K) (Preview)
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty