You are on page 1of 21

Project Report

On

Project Title

Submitted for the requirement of

Project course

BACHELOR OF ENGINEERING

COMPUTER SCIENCE & ENGINEERING

Submitted to : Submitted by:


KRITIKA MAM Abhishek Nautiyal

UID-19BCS2103
CLASS/SECTION-CSE 7C
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
CHANDIGARH UNIVERSITY, GHARUAN
CERTIFICATE

This is to certify that the work embodied in this Project Report entitled
“Cricket Game in python ” being submitted by “Abhishek Nautiyal ” -
UID “19BCS2103 ” , 5th Semester for partial fulfillment of the requirement for
the degree of “ Bachelor of Engineering in Computer Science &
Engineering ” discipline in “ Chandigarh University ” during the academic
session July-Dec 2021 is a record of bonafide piece of work, carried out by
student under my supervision and guidance in the “ Department of Computer
Science & Engineering ”, Chandigarh University.

APPROVED & GUIDED BY: KRITIKA MAM


DECLARATION

I Am Abhishek Nautiyal, student of Bachelor of Engineering in Computer


Science & Engineering, 5th Semester , session: July – Dec 2021, Chandigarh
University, hereby declare that the work presented in this Project Report
entitled “CRICKET GAME” is the outcome of my own work, is bona fide and
correct to the best of my knowledge and this work has been carried out taking
care of Engineering Ethics. The work presented does not infringe any patented
work and has not been submitted to any other university or anywhere else for
the award of any degree or any professional diploma.

Student details and Signature:

NAME-ABHISHEK NAUTIYAL

UID-19BCS2103

SECTION-CSE 7C

APPROVED & GUIDED BY:

KRITIKA SHARMA MAM


To our parents, teachers and all the well wishers out there . . .
ABSTRACT

This is a Fantasy cricket Desktop application build in python that allows user to build
their own dream
cricket team.
Fantasy cricket is built in python using Pyqt5 library specifically QtCore,
QtGui, QtWidgets for GUI development and Sqlite Studio for Back end database
connectivity.
In the project the following are the features one can use:

Create your own dream team in Auction

Save your team and evaluate it later as per Match

Initially a Owner will be provided with 1000 Points to purchase there players

Team selection follows basic cricketing rules

Not more than 5 batsman/bowler

Only a Single Wicket Keeper

TABLE OF CONTENT

Contributions i

Acknowledgements ii

List of Figures iv

List of Tables v
Table of Content

1) Project Description
a. Introduction.
b. Feasibility Study.
c. Advantages of “this Project”.
d. Methodology / Planning of Work.
e. Modules and Team Members wise Distribution.
f. Motivation.
g. Innovation in Project.
h. Software and Hardware Requirements.
i. Summary.
j. The Programming Stage. 10

2) Front-End Code Sample


3) Back-End Code Sample
4) Conclusions
5) Bibliography
Project
Description

1. Introduction
Fantasy Cricket Game is a game where we can create a virtual
cricket team of real cricket players. Each player has their own
Points. There will be a limited no. of points to select 11 players, if
we don't have enough points we can't select a player if his
points are more and the team is evaluated using points of each
player based on their performance internally. To win a
tournament, we must try and get the maximum points and the
No. 1 rank amongst other participant.This project use python
language.Create a Fantasy Cricket game in Python. The game
should have all the features displayed in the mock-up screens in
the scenario. To calculate the points for each player, we can use
rules similar to the sample rules displayed below.

The team is evaluated using these rules foreach Player:


Batting:
. 1 point for 2 runs scored
.Additional 5 Points for half Century
.Additional 10 points for a century
.2 points for strike rate (runs/balls faced) of 80 - 100
.Additional 4 points for strike rate>100
.1 point for hitting a boundary (four) and
.2 points for over boundary(six).
Bowling:
10 points for each wicket
Additional 5 points for 3 wickets/innings
additional 10 points for 5 or more wickets in innings,
4 points for econiomy rate (runs given per over) between 3.5 and 4.5,
7 points for economy rate between 2 nd 3.5
10 points for economy rate less than 2.
Fielding:
10 points each for catch/stumping/run out.

INTRODUCTION TO PYTHON
Python is a widely used general-purpose, high level programming language. It was
initially
designed by Guido van Rossum in 1991 and developed by Python Software
Foundation. It was
mainly developed for emphasis on code readability, and its syntax allows
programmers to express
concepts in fewer lines of code. Python is a programming language that lets you work
quickly and integrate
systems more efficiently. Python is a high-level, interpreted, interactive and object-
oriented scripting
language. Python is designed to be highly readable. It uses English keywords
frequently where as other
languages use punctuation, and it has fewer syntactical constructions than other
languag

FEASIBILTY STUDY

In this project, we can create a team based on our Points,


We can save the team, We can view our team, we can
modify our team, we can delete our existing team and we
can evaluate the team
1.Schedule Feasibility:
18-20 weeks will be needed to complete this project.
2. Economic Feasibility:
A programming system with good RAM and ROM and
graphics
3. Technical Feasibility:
To build this project we require a good knowledge in
Python and CNN besides that other working softwares like
tensorflow.
. 4. Organizational Feasibility:
A group of 3 people is enough to complete this project.

METHODOLOGY
Fantasy Cricket Game is a game where we can create a virtual cricket team of real
cricket players. Each player has their own Points. There will be a limited no. of
points to select 11 players, if we don't have enough points we can't select a player
if his points are more and the team is evaluated using points of each player based
on their performance internally. To win a tournament, we must try and get the
maximum points and the No. 1 rank amongst other participants.
The team is evaluated using these rules for each Player:
Batting:
. 1 point for 2 runs scored
.Additional 5 Points for half Century
.Additional 10 points for a century
.2 points for strike rate (runs/balls faced) of 80 - 100
.Additional 4 points for strike rate>100
.1 point for hitting a boundary (four) and
.2 points for over boundary(six).
Bowling:
10 points for each wicket
Additional 5 points for 3 wickets/innings
additional 10 points for 5 or more wickets in innings,
4 points for econiomy rate (runs given per over) between 3.5 and 4.5
7 points for economy rate between 2 nd 3.5
10 points for economy rate less than 2.
Fielding:
10 points each for catch/stumping/run out.

Advantages of a CRICKET Fantasy Game

There are many advantages of Cricket Game using python.


1: Easy technology used in this project
2:Enjoyable for sports lovers.
3: Virtual cricket game with real cricket players.
4: helps in improving the knowledge of person in cricket game.

2.2 Motivation
When i had individually registered for this course i was not quite sure what I have planned to
design going into this. But we all knew we wanted something interesting, and importantly
something fun. We had seen previous projects, the home security systems the rovers lots of
interesting ideas but none of them really clicked. SUDDENLY as a sports lover something
clicked in my mind and planned to design this project called Cricket Fantasy game using python
.python is very popular and easy so made this project through python,

Modules and Team Member wise distribution:

I am working on this project alone. All the things like Front-End, Back
End, Testing, Bug Fixing, deployment, etc. are handled by me. So, I am responsible
for taking care of all the fields or modules.

SUMMARY
It is an game where you create a team of real cricket players and score points
depending on how your chosen players perform in real life matches. To win a
tournament, you
must try and get the maximum points and the No. 1 rank amongst other
participan I am
building an software for gaming purposes using an specific technology named
python. It is a game software where you can create virtual team according to your
choice and
score points to win an tournament.This software is created for motivating street
cricket and
adding more fun and entertainment to cricket. The components that are used in
this demo can
be integrated to a high extent to provide statics to different
components of cricket. This project helps in providing real time on field actions
there by
helping its user of the current actions happening on field.

INNOVATION AND TECHNOLOGY USED

DEVELOPING A GUI WITH PYQT


Understanding PyQt:
PyQt is a Python binding for Qt, which is a set of C++ libraries and development tools that include
platform-independent abstractions for Graphical User Interfaces (GUI), as well as networking,
threads, regular expressions, SQL databases, SVG, OpenGL, XML, and many other powerful
features.
Developed by RiverBank Computing Ltd, PyQt is available in two editions:
1.
PyQt4: an edition that’s built against Qt 4.x and 5.x
2.
PyQt5: an edition that’s only built against Qt 5.x
Even though PyQt4 can be built against Qt 5.x, only a small subset that is also compatible with Qt
4.x will
be supported. This means that if you decide to use PyQt4, then you’ll probably miss out on some of
the new
features and improvements in PyQt5.
PyQt5 is based on Qt v5 and includes classes that cover Graphical User Interfaces as well as XML
handling,
network communication, regular expressions, threads, SQL databases, multimedia, web browsing,
and other
technologies available in Qt. PyQt5 implements over one thousands of these Qt classes in a set of
Python
modules, all of which are contained within a top-level Python package called PyQt5.
PyQt5 is compatible with Windows, Unix, Linux, macOS, iOS, and Android. This can be an
attractive
feature if you’re looking for a library or framework to develop multi-platform applications with a
native
look and feel on each platform.
PyQt5 is available under two licenses:
1. The Riverbank Commercial License
2. The General Public License (GPL), version 3
Your PyQt5 license must be compatible with your Qt license. If you use the GPL version, then your
code
must also use a GPL-compatible license. If you want to use PyQt5 to create commercial applications,
then
you’ll need a commercial license for your installation.
Designing GUI applications Using PyQt in Python:
Last Updated: 13-10-2020
Building GUI applications using PYQT designer tool is comparatively less time consuming than
code the
widgets. It is one of the fastest and easiest ways to create GUIs.

APPLICATION OF PYTHON IN VARIOUS DISCIPLINES


Python supports cross-platform operating systems which makes building applications with it all the
more
convenient. Some of the globally known applications such as YouTube, BitTorrent, DropBox, etc.
use
Python to achieve their functionality.
1. Web Development
Python can be used to make web-applications at a rapid rate. Why is that? It is because of the
frameworks
Python uses to create these applications. There is common-backend logic that goes into making these
frameworks and a number of libraries that can help integrate protocols such as HTTPS, FTP, SSL
etc. and
even help in the processing of JSON, XML, E-Mail and so much more.
Fig. 1.1
Some of the most well-known frameworks are Django, Flask, Pyramid. Why use a framework?
The security, scalability, convenience that they provide is commendable if we compare it to starting
the
development of a website from scratch.
2. Game Development
Python is also used in the development of interactive games. There are libraries such as PySoy which
is a 3D
game engine supporting Python 3, PyGame which provides functionality and a library for game
development. Games such as Civilization-IV, Disney’s Toontown Online, Vega Strike etc. have been
built
using Python

Desktop GUI
We use Python to program d esktop applications. It provides the Tkinter library that can be used to
develop
user interfaces. There are some other useful toolkits such as the wxWidgets, Kivy, PYQT that can be
used to
create applications on several platforms.
CRICKET FANTASY GAME

2.2.1: Main window


Allows user to navigate to other pages•
Shows the basic template•

2. Save Team

Allows user to save the new team that he had made.


.2.2: New Team

2.2.3: Evaluate Team

Allows user to evaluate the team that he had made..


2.4 Databases

Following are the Databases in this project


Coding
First page
Conclusion
I believe the trial has shown conclusively that it is both possible and desirable to
use Python as the principal
teaching language:
• It is Free (as in both cost and source code).
• It is trivial to install on a Windows PC allowing students to take their interest
further. For many the hurdle
of installing a Pascal or C compiler on a Windows machine is either too expensive
or too complicated;
• It is a flexible tool that allows both the teaching of traditional procedural
programming and modern OOP;
It can be used to teach a large number of transferable skills;
• It appears to be quicker to learn and, in combination with its many libraries, this
offers the possibility of
more rapid student development allowing the course to be made more
challenging and varied;
• Most importantly, its clean syntax offers increased understanding and
enjoyment for students.

BIBLIOGRAPHY

https://trainings.internshala.com/python-training

https://www.w3schools.com/python/

https://wiki.python.org/moin/PyQt/Tutorials

https://www.tutorialspoint.com/pyqt/

https://www.tutorialspoint.com/sqlite/sqlite_quick_guide.htm

https://www.quora.com/

You might also like