This document defines a class called PlayGame that initializes a cricket match. It contains an inner class called Match that defines variables to track the overall match score and wickets, as well as the current score and wickets. The Match class contains a method called initializeMatch() that resets the current score and wickets to 0, sets the overall match score and wickets, and initializes other variables like the number of balls bowled and the file path containing match statistics.
This document defines a class called PlayGame that initializes a cricket match. It contains an inner class called Match that defines variables to track the overall match score and wickets, as well as the current score and wickets. The Match class contains a method called initializeMatch() that resets the current score and wickets to 0, sets the overall match score and wickets, and initializes other variables like the number of balls bowled and the file path containing match statistics.
This document defines a class called PlayGame that initializes a cricket match. It contains an inner class called Match that defines variables to track the overall match score and wickets, as well as the current score and wickets. The Match class contains a method called initializeMatch() that resets the current score and wickets to 0, sets the overall match score and wickets, and initializes other variables like the number of balls bowled and the file path containing match statistics.
static int Currentwickets; static String Matchstatistics; //static int matchesplayed; static int oversbowledbyeverybowlerinthematch[]={0,0,0,0}; static int Currentmatchbowlerordersequence[]= {1,2,3,4}; static int WinnerFlag; int i;
public void intitializeMatch() {
Currentscore=0; Currentwickets=0; Matchscore=40; // read from properties file Matchwickets=3; ballsbowled=0; Matchstatistics="C:\\Kirkaet\\MatchStatsandmatchstatistics.xml"; WinnerFlag=5;//match in progress System.out.println("Match sequence numbers data for bowlers generated for 2 matches only"); //System.out.println("Matchstatistics Match Matchesplayed- "+matchesplayed); //matchesplayed=0; // read from property file i=0; /******* for(i=1;i<=4;i++) {