Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Java project 11- 5 except use the real game ofwar rules. If two cards match, lay

ID: 3612207 • Letter: J

Question

Java project 11- 5 except use the real game ofwar rules. If two cards match, lay three cards down and turnover the fouth, winner takes all. Play until either playerswins all of the cards or one player quits and then the onewith the most cards wins. Must use an arraylist.  Good looking output and ease of play counts JOptionPane and play again needed
project 11- 5 except use the real game ofwar rules. If two cards match, lay three cards down and turnover the fouth, winner takes all. Play until either playerswins all of the cards or one player quits and then the onewith the most cards wins. Must use an arraylist.  Good looking output and ease of play counts JOptionPane and play again needed

Explanation / Answer

please rate - thanks so far is this ok. you said you'd convert from array toarraylist no war, no quitting import java.util.*; import javax.swing.*; public class war {static Random number = new Random(); static int[][][]hands=new int[2][52][2]; static int cardsinhand[]={26,26}; static int[][][]play=new int[2][26][2]; static String suit[]={"hearts","diamonds","spades","clubs"}; static Stringcard[]={"ace","2","3","4","5","6","7","8","9","10","jack","queen","king"}; public static void main(String []args) { int i,j,winner; int[][]deck=new int[52][2]; int deal=2,cardd; shuffle(deck); /*System.out.println("deck before dealt:"); for(j=0;j
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote