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 of war rules. Iftwo cards match, lay

ID: 3612247 • Letter: J

Question

Java project 11- 5 except use the real game of war rules. Iftwo cards match, lay three cards down and turn over the fouth,winner takes all. Play until either players wins all of thecards or one player quits and then the one with the most cardswins. Must use an arraylist.   Good looking outputand ease of play counts JOptionPane and play again needed project 11- 5 except use the real game of war rules. Iftwo cards match, lay three cards down and turn over the fouth,winner takes all. Play until either players wins all of thecards or one player quits and then the one with the most cardswins. Must use an arraylist.   Good looking outputand ease of play counts JOptionPane and play again needed

Explanation / Answer

please rate - thanks so far - you said you'd convert from array to arraylist 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