0% found this document useful (0 votes)
471 views18 pages

Fantasy Cricket Game Using Python

Fantasy Cricket Game using Python(internshaala)

Uploaded by

Rr
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
471 views18 pages

Fantasy Cricket Game Using Python

Fantasy Cricket Game using Python(internshaala)

Uploaded by

Rr
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 18

Department of Computer Science

Indraprastha University

CREATE A FANTASY CRICKET GAME IN PYTHON

21 September 2020

Presented by
Online Training On Programming With Python From
Internshala
• Introduction to Python
• Using Variables in Python
• Basics of Programming in Python
• Principles of Object-oriented Programming (OOP)
• Connecting to SQLite Database
• Developing a GUI with PyQT
• Application of Python in Various Disciplines modules
TABLE OF CONTENTS
Introduction
Technologies used
Game intro
Fantasy game GUI
Sample of Rules
Dataset
scope
Conclusions
Reference website
Thank u window
Introduction
Fantasy Cricket
It is an online game where you create a virtual 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 participants.
➢SQLite
➢SQL studio
➢Python
➢ Pip
➢ Pyuic
Technologies ➢ Pyqt5
➢ Qt Designer
Developer: D.Richard Hipp
Written: c language
Size: 699 kiB
Type: RDBMS(embedded)
Filename extension: .sqlite3,
.sqlite, .db
Qt Designer

Using its simple drag and drop


interface, a GUI interface can be
quickly built without having to write
the code.
You can then drag and drop
required widgets from the widget
box on the left pane. You can also
assign value to properties of widget
laid on the form
The designed form is saved as
demo.ui. This ui file contains XML
representation of widgets and their
properties in the design.
Hardware Requirements
• Processors: Intel Atom® processor or Intel® Core™ i3 processor
• Disk space: 1 GB
• Min. RAM: 128MB
• Operating systems: Windows 7 or later, macOS, and Linux
• Python versions: 2.7.X, 3.6.X
• Python should installed on system
• Path variable should be set for the python
Fantasy Cricket
It is an online game where you create a virtual 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 participants.
Here's how a Fantasy Cricket game may look like.

2 - The toolbar menu options which allow you to


create a new team, open an existing team, save
your team and finally evaluate the score of a saved
team.

1 - Opening screen of the application. You can see the


players of each category by selecting the category.
To begin with, the selection is disabled until a new team is
created from the Manage Teams menu. A pop up asking
the name of the team appears.
4 - On double-clicking each player name,
the right box gets populated. Points
available and used are displayed
accordingly.

3 - After clicking New Team, the left box is


populated with player names. As you select a
different category, the corresponding list of
players is displayed.
6 - Pop-up on clicking Evaluate Score. You can select
your team here and the match for which the players'
performance is compared
.

5 - Message if the game logic is not followed


7 - The final score for your fantasy team based on the match selected.
Sample of Rules
Batting

● 1 point for 2 runs scored


● Additional 5 points for half century
● Additional 10 points for 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 three wickets per innings
● Additional 10 points for 5 wickets or more in innings
● 4 points for economy rate (runs given per over) between 3.5 and 4.5
● 7 points for economy rate between 2 and 3.5
● 10 points for economy rate less than 2

Fielding
● 10 points each for catch/stumping/run out
Database Design
For the database, you are required to use three tables – match, stats and teams.

Note: The teams table will be populated after score calculation. The data to enter in the remaining two
tables is given above.
Project Evaluation Criteria
The following criteria will be used to evaluate your project
submission.

Elements Categories Criteria

Application

Flow Populate left list widget from database as per category radio button
clicked
Add players from players list to selected players list

Remove players from selected players list to players list


Show error if selection criterion is violated
Calculate team score
UI Widgets should be placed symmetrically
Code
Naming Convention Meaningful variable names
Meaningful function names
Modularity A single function should be used for a single task/No code
repetition (make generalized functions)

Error Handling Implement error handling wherever required


Database Design

Tables Number of tables


Column names
Data types
Data
Thank You
For Your Attention

You might also like