public class Deck
{
Card[] cards;
int curCardIndex;
public Deck()
{
int i = 0;
cards = new Card[ Constants.NUM_CARDS_IN_DECK ];
curCardIndex = 0;
//Loops to the amount of cards in a deck
for(int iSuit = 0; iSuit < Constants.LAST_SUIT; ++iSuit)
for(int iRank...
I am having a difficulty with a piece of code, it is causing a nullpointerexception and its because my variable is being returned as null, help anyone?
public void newGame()
{
this.theDeck = new Deck();
this.piles = new Pile[Constants.NUM_PILES];
Card tempCard2;
for (int...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.