COMPUTER SCIENCE PROJECT
On
“THE GAME OF
CRICKET”
Name:
Class: 11
Section: R
Roll No.:
INDEX
ertification
C
CERTIFICATION
his is to certify that the project entitled “The Game of
T
Cricket” is the bonafide work of:
1 . Arindol Sarkar (11R)
2.Khushi Rajpal (11R)
3.Krish Mehta (11R)
I n partial fulfillment of the requirements in COMPUTER
SCIENCE provided by CBSE for class 11 for the academic
year 2022-23 in the school:
DELHI PUBLIC SCHOOL, RUBY PARK, KOLKATA
DATE:
___________
_ ______________
INTERNAL EXAMINER EXTERNAL EXAMINER
ACKNOWLEDGEMENT
“I would like to acknowledge our computer science
teacher, Mr. Siddhartha Sinha
f or his valuable guidance, suggestions and
constructive criticism for this project. I am equally
indebted to my team members for their
encouragement, help, suggestions and improvements
to make sure that the project is completed within the
stipulated period of time and also in a decent manner.
Last but not the least, my deep gratitude and sincere
thanks goes to the Principal,Mrs. Joyoti Chaudhuri,
ofDELHI PUBLIC SCHOOL, RUBY PARK,
KOLKATAand for the facilities provided by my
institution”
SYNOPSIS
OBJECTIVE OF THE PROPOSED SYSTEM
Game of Cricketis an offline software designed asa stress reliever. The software
rst takes the name of the user as one of the inputs. Then after a toss, the
fi
software starts the game. If the user wins then they can choose between batting
or bowling . If the user loses the toss the computer randomly chooses between
batting or bowling. Users can input numbers between 0 to 6. The numbers
entered by the user represent the respective shots for batting . After the user
chooses the shot, the computer randomly generates a number. If the number
generated by the computer is equal to the number chosen by the user, then the
user loses a wicket. Otherwise, the number chosen by the user is added to the
runs of the user.In the case of bowing, the numbersentered by the user are
compared to a randomly generated number by the computer. If the numbers are
equal then the computer loses a wicket. Otherwise the numbers generated by the
computer gets added to the score of the computer and the innings continues till
the over ends. The game continues in this way. After the innings ends or when
all the wickets run out, the system displays the score of the innings. Then the
computer and the user switch places. The system runs in a similar way. At the
end, the system displays the score of the user as well as the computer which is
compared to declare the winner of the game. and the winner of the game.
Thus, this game has been developed with the following initiatives in mind.
● To act as a stress reliever.
● To promote the concept of simplicity.
● To give the user the best possible experience.
● To help demonstrate the capabilities of python.
INPUT AND OUTPUT OF THE PROPOSED
SYSTEM
INPUT:
he user shall enter “h” or “t” for heads or tails respectively for toss. If the
T
user wins they would get a choice between batting or bowling by entering 1 or 2
respectively. In case the user loses then the computer will randomly generate a
result. Then the user has to enter a number between 0 to 6 which would be
counted as runs in case of batting or incrementation of balls in case of bowling.
The user can pause the game or continue it by entering "p" or “c” respectively.
OUTPUT:
he total runs scored in an over by wickets will be displayed. When the game
T
ends the system will display the runs scored by the user, the runs scored by the
computer and the winner of the game.
hen it is the user’s turn to bat, the proposed system displays : the name of
W
the user, the previous shot of the user, the previous bowling move of the
computer, the number of wickets left, the current runs of the user and the shot
chosen by the user when the user clicks on a button displaying the respective
shot.
hen it is the computer’s turn to bat, the proposed system displays the
W
previous shot of it, the previous bowling move of the user, the current runs of
the computer and the current bowling move of the user when she/he chooses it
by clicking on the respective keys.
hen the game ends, the system displays the runs scored by the user, the runs
W
scored by the computer and the winner of the game.
FUNCTION AND FEATURES OF THE
PROPOSED SYSTEM
1. Starting Page:
- he input field will take the name of the user as the input.
T
- The user will be given a choice between head or tails where they have to
choose by clicking “h” or “t”.
- The user can pause the game or continue it by entering “p” or “c”
respectively.
2. User’s Turn to Bat:
The system will display the following labels:
- The name of the user.
- The score of the user.
- The previous shot of the user.
- The number of wickets fallen.
- The previous bowling move of the computer.
There will be the following inputs:
- The numerical labelled 0 to 6 represents their respective shot. The
numerical will update the current shot label and will store the value of
the shot chosen by the user.
- The user can pause the game or continue it by entering "p" or “c”
respectively.
3. Results of User:
The proposed system will show the following results:
- The name of the user.
- The total score of the user.
- The number of wickets fallen.
- The score after each over.
- The run rate.
- The user can pause the game or continue it by entering "p" or “c”
respectively.
4. Computer’s Turn to Bat:
he proposed system will show the following labels:
T
- The score of the computer
- The previous bowling move of the user.
- The number of wickets left.
- The previous bowling shot of the computer.
- The current bowling move of the user.
he following is user’s role while bowling:
T
- The user can input numbers between 0 to 6 representing their respective
bowling moves.
- Clicking any of these buttons shall update the current bowling move and
over will continue in the same manner and the value of the bowling move
chosen by the user shall be stored.
- The user can pause the game or continue it by entering "p" or “c”
respectively.
5. The Results of Computer:
he proposed system will show the following results:
T
- The total score of the computer.
- The number of wickets left.
- The previous bowling move of the user.
- The previous shot of the computer.
- The user can pause the game or continue it by entering "p" or “c”
respectively.
6. Final Results:
he proposed system will display the following:
T
- The total runs of the computer.
- The winner of the game.
- Run Rate.
HARDWARE AND SOFTWARE TO BE
USED
HARDWARE REQUIREMENTS:
P
● ROCESSOR: i3 Processor based computer
● RAM: 4GB
● ROM: 256GB
SOFTWARE REQUIREMENTS:
W
● indows 10
● Python IDLE (3.9 64-BIT)
ode
C
Output
SCOPE AND LIMITATIONS
SCOPE:
he main aim of the Game of Cricket is to provide a leisure time activity to the
T
user.
● It deals with only alphanumeric inputs from the user and the randomly
generated numbers by the computer.
● The total number of runs and wickets will be displayed after each over.
● There will be 3 overs and 3 wickets
● The final result depends upon the total of all the inputs during each
innings-. Scores of the user and the computer will be compared after the
two innings and the winner will be declared.
LIMITATIONS:
The limitations of the projects are: -
● The project could not be developed into an app due to syllabus
constraints.
● The games will be played only between the computer and the user, not
between any two real time gamers.
● It could not be developed into a video game, due to lack of knowledge in
graphics development.
● Button could not be implemented due to lack of knowledge in tkinter.
CONTRIBUTIONS
● Arindol Sarkar (11R):
Development.
● Khushi Rajpal (11R) :
Algorithms and Planning.
● Krish Mehta (11R) :
Testing and Development.
BIBLIOGRAPHY
● “COMPUTER SCIENCE WITH PYTHON CLASS-XI” by
Sumita Arora
● https://www.geeksforgeeks.org/
● https://stackoverflow.com/
● https://www.youtube.com/c/Freecodecamp/videos