Im totally lost on what to do and need some assistents. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Im totally lost on what to do and need some assistents.

public void give(StackADT<Card> stack1, StackADT<Card> stack2, QueueADT<Card> winner) { if (winner == hand1) { System.out.println("Player 1 gets the cards"); } else { System.out.println("Player 2 gets the cards"); } try{ while (!(stack1.isEmpty())) { //TODO pop off a card on top of stack1 and insert it to winner's pile in hand } } catch (Exception e){ e.printStackTrace(); } }

4th Mar 2020, 7:12 PM
Cyrus
1 Answer
4th Mar 2020, 7:33 PM
Kevin ★