librejack

Blackjack clone written in java
git clone https://github.com/michaelneuper/librejack.git
README | Files | Log | Refs | LICENSE

commit 0dd19a1dd596e5080cfb57fdd04e854cfbbf9483
parent d193b43e02ff2bea2f7630cfa70ab4337e64e78d
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Fri,  7 Oct 2022 19:56:47 +0200

Update Deck.java

Diffstat:
Msrc/model/Deck.java | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/model/Deck.java b/src/model/Deck.java @@ -86,7 +86,7 @@ public class Deck { /** * Method to add a card to the deck * - * @param inCard the card the be added + * @param inCard card the be added */ public void addCard(Card inCard) { this.deck.add(inCard); @@ -97,7 +97,7 @@ public class Deck { * remove the card from the deck * and return the card * - * @return + * @return cardToTake card to take */ public Card takeCard() { Card cardToTake = new Card(deck.get(0)); @@ -105,10 +105,10 @@ public class Deck { return cardToTake; } + @Override public String toString() { String ret = ""; // holds the string to return - for (Card card : deck) { ret += card; ret += "\n"; @@ -116,4 +116,4 @@ public class Deck { return ret; } -} -\ No newline at end of file +}