d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Need Help With Java Blackjack Project
Prev12
Add Reply New Topic New Poll
Member
Posts: 9,664
Joined: Dec 22 2007
Gold: 845.30
Dec 6 2015 10:42pm
Quote (carteblanche @ Dec 7 2015 12:33am)
you have multiple functions. my recommendation is to test each method separate from the rest. you should verify that each piece works correctly.

i'd also suggest some sort of log feature so you know exactly what's in the deck at any point. something like so:
Code
void logDeck(){
log("numberOfCards: " + numCardsInDeck);
for (var i = 0; i < numCardsInDeck; i++){
log(i + ": " + cards[i]);
}
}


to remove the card from your deck, simply set it to null.



Thank you.
Go Back To Programming & Development Topic List
Prev12
Add Reply New Topic New Poll