SlideShare a Scribd company logo
Department of Computer Science
Indraprastha University
21 September 2020
Presented by
CREATE A FANTASY CRICKET GAME IN PYTHON
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
TABLEOFCONTENTS
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.
Technologies
➢SQLite
➢SQL studio
➢Python
➢ Pip
➢ Pyuic
➢ 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.
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.
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.
Here's how a Fantasy Cricket game may look like.
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.
4 - On double-clicking each player name,
the right box gets populated. Points
available and used are displayed
accordingly.
5 - Message if the game logic is not followed
.
6 - Pop-up on clicking Evaluate Score. You can select
your team here and the match for which the players'
performance is compared
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

More Related Content

What's hot

PYTHON - TKINTER - GUI - PART 1.ppt
PYTHON - TKINTER - GUI - PART 1.pptPYTHON - TKINTER - GUI - PART 1.ppt
PYTHON - TKINTER - GUI - PART 1.pptPriyaSoundararajan1
 
Design phase of game development of unity 2d game
Design phase of game development of unity 2d game Design phase of game development of unity 2d game
Design phase of game development of unity 2d game Muhammad Maaz Irfan
 
Game Development Step by Step
Game Development Step by StepGame Development Step by Step
Game Development Step by StepBayu Sembada
 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on pythonShubham Yadav
 
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...Edureka!
 
Python Virtual Environment.pptx
Python Virtual Environment.pptxPython Virtual Environment.pptx
Python Virtual Environment.pptxAbdullah al Mamun
 
database application using SQL DML statements: all types of Join, Sub-Query ...
 database application using SQL DML statements: all types of Join, Sub-Query ... database application using SQL DML statements: all types of Join, Sub-Query ...
database application using SQL DML statements: all types of Join, Sub-Query ...bhavesh lande
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c languageAshutosh Kumar
 
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...yazad dumasia
 
Game optimization techniques - Most Commons
Game optimization techniques - Most CommonsGame optimization techniques - Most Commons
Game optimization techniques - Most Commonsniraj vishwakarma
 
Project proposal presentation(Quiz game)
Project proposal presentation(Quiz game)Project proposal presentation(Quiz game)
Project proposal presentation(Quiz game)Ikhtiar Khan Sohan
 
Tic tac toe on c++ project
Tic tac toe on c++ projectTic tac toe on c++ project
Tic tac toe on c++ projectUtkarsh Aggarwal
 
Simple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxSimple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxYashSharma357857
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On PythonShivam Gupta
 

What's hot (20)

Python 2 vs. Python 3
Python 2 vs. Python 3Python 2 vs. Python 3
Python 2 vs. Python 3
 
PYTHON - TKINTER - GUI - PART 1.ppt
PYTHON - TKINTER - GUI - PART 1.pptPYTHON - TKINTER - GUI - PART 1.ppt
PYTHON - TKINTER - GUI - PART 1.ppt
 
python course ppt pdf
python course ppt pdfpython course ppt pdf
python course ppt pdf
 
Design phase of game development of unity 2d game
Design phase of game development of unity 2d game Design phase of game development of unity 2d game
Design phase of game development of unity 2d game
 
Game Development Step by Step
Game Development Step by StepGame Development Step by Step
Game Development Step by Step
 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on python
 
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
 
Python Virtual Environment.pptx
Python Virtual Environment.pptxPython Virtual Environment.pptx
Python Virtual Environment.pptx
 
database application using SQL DML statements: all types of Join, Sub-Query ...
 database application using SQL DML statements: all types of Join, Sub-Query ... database application using SQL DML statements: all types of Join, Sub-Query ...
database application using SQL DML statements: all types of Join, Sub-Query ...
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c language
 
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
 
Game optimization techniques - Most Commons
Game optimization techniques - Most CommonsGame optimization techniques - Most Commons
Game optimization techniques - Most Commons
 
Project proposal presentation(Quiz game)
Project proposal presentation(Quiz game)Project proposal presentation(Quiz game)
Project proposal presentation(Quiz game)
 
Tic tac toe on c++ project
Tic tac toe on c++ projectTic tac toe on c++ project
Tic tac toe on c++ project
 
Simple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxSimple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptx
 
Tic tac toe game code
Tic tac toe game codeTic tac toe game code
Tic tac toe game code
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
 
NUMPY
NUMPY NUMPY
NUMPY
 
Synopsis tic tac toe
Synopsis tic tac toeSynopsis tic tac toe
Synopsis tic tac toe
 

Similar to Create a fantasy cricket game in python.ppt

[Scorebook final]
[Scorebook final][Scorebook final]
[Scorebook final]Freelancer
 
user interface web GUI based on game predtiction
user interface web GUI based on game predtictionuser interface web GUI based on game predtiction
user interface web GUI based on game predtictionnithinsai2992
 
Introduction to brainCloud - Sept 2014
Introduction to brainCloud - Sept 2014Introduction to brainCloud - Sept 2014
Introduction to brainCloud - Sept 2014Paul Winterhalder
 
Fantasy cricket tips
Fantasy cricket tipsFantasy cricket tips
Fantasy cricket tipswebhos
 

Similar to Create a fantasy cricket game in python.ppt (20)

[Scorebook final]
[Scorebook final][Scorebook final]
[Scorebook final]
 
user interface web GUI based on game predtiction
user interface web GUI based on game predtictionuser interface web GUI based on game predtiction
user interface web GUI based on game predtiction
 
Introduction to brainCloud - Sept 2014
Introduction to brainCloud - Sept 2014Introduction to brainCloud - Sept 2014
Introduction to brainCloud - Sept 2014
 
Fantasy cricket tips
Fantasy cricket tipsFantasy cricket tips
Fantasy cricket tips
 
Fansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development companyFansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development company
 
Fantasy sports app development platform
Fantasy sports app development platformFantasy sports app development platform
Fantasy sports app development platform
 
Fansportiz - Fantasy Sports app development company
 Fansportiz - Fantasy Sports app development company Fansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development company
 
Fansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development companyFansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development company
 
Fansportiz
 Fansportiz  Fansportiz
Fansportiz
 
Fantasy sports app development company / platform
Fantasy sports app development company / platform Fantasy sports app development company / platform
Fantasy sports app development company / platform
 
Fansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development companyFansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development company
 
Fansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development companyFansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development company
 
26909_Fansportiz_PPT_(1)_(1)_(1) (1).pdf
26909_Fansportiz_PPT_(1)_(1)_(1) (1).pdf26909_Fansportiz_PPT_(1)_(1)_(1) (1).pdf
26909_Fansportiz_PPT_(1)_(1)_(1) (1).pdf
 
Fansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development companyFansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development company
 
The Rise Of The Fantasy Sports Industry
The Rise Of The Fantasy Sports IndustryThe Rise Of The Fantasy Sports Industry
The Rise Of The Fantasy Sports Industry
 
Fantasy sports app development company
Fantasy sports app development companyFantasy sports app development company
Fantasy sports app development company
 
Fansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development companyFansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development company
 
Fansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development company Fansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development company
 
Fansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development companyFansportiz - Fantasy Sports app development company
Fansportiz - Fantasy Sports app development company
 
IRJET-V8I11270.pdf
IRJET-V8I11270.pdfIRJET-V8I11270.pdf
IRJET-V8I11270.pdf
 

Recently uploaded

2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edgePaco Orozco
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwoodseandesed
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.PrashantGoswami42
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringC Sai Kiran
 
Scaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageScaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageRCC Institute of Information Technology
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdfKamal Acharya
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopEmre Günaydın
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfKamal Acharya
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfKamal Acharya
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdfKamal Acharya
 
fluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answerfluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answerapareshmondalnita
 
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and VisualizationKIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and VisualizationDr. Radhey Shyam
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfAbrahamGadissa
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdfKamal Acharya
 
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...Amil baba
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdfKamal Acharya
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-IVigneshvaranMech
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationRobbie Edward Sayers
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringC Sai Kiran
 

Recently uploaded (20)

2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
Scaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageScaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltage
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdf
 
fluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answerfluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answer
 
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and VisualizationKIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdf
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 

Create a fantasy cricket game in python.ppt

  • 1. Department of Computer Science Indraprastha University 21 September 2020 Presented by CREATE A FANTASY CRICKET GAME IN PYTHON
  • 2. 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
  • 3. TABLEOFCONTENTS Introduction Technologies used Game intro Fantasy game GUI Sample of Rules Dataset scope Conclusions Reference website Thank u window
  • 4. 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.
  • 6. Developer: D.Richard Hipp Written: c language Size: 699 kiB Type: RDBMS(embedded) Filename extension: .sqlite3, .sqlite, .db
  • 7. 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.
  • 8. 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
  • 9. 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.
  • 10.
  • 11. 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. 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. Here's how a Fantasy Cricket game may look like.
  • 12. 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. 4 - On double-clicking each player name, the right box gets populated. Points available and used are displayed accordingly.
  • 13. 5 - Message if the game logic is not followed . 6 - Pop-up on clicking Evaluate Score. You can select your team here and the match for which the players' performance is compared
  • 14. 7 - The final score for your fantasy team based on the match selected.
  • 15. 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
  • 16. 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.
  • 17. 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
  • 18. Thank You For Your Attention