Giter Club home page Giter Club logo

cs50p-intro-python-final-project's Introduction

LoL Draft SIM

Introduction:

  • Project title: LoL Draft SIM
  • Name: Oswaldo Guirra Pereira de Castro
  • Github | edX: tufcoder | tufcastro
  • City | County: Sรฃo Paulo | Brazil ๐Ÿ‡ง๐Ÿ‡ท
  • Date: 2024-02-19

Description:

This is my final project for the CS50 Introduction to Programming with Python course.

It's a League of Legends draft simulator.

    __          __       ____             ______     _____ ______  ___
   / /   ____  / /      / __ \_________ _/ __/ /_   / ___//  _/  |/  /
  / /   / __ \/ /      / / / / ___/ __ `/ /_/ __/   \__ \ / // /|_/ /
 / /___/ /_/ / /___   / /_/ / /  / /_/ / __/ /_    ___/ // // /  / /
/_____/\____/_____/  /_____/_/   \__,_/_/  \__/   /____/___/_/  /_/

The program gets the "champions.json" via Riot API with the list of all the champions in the game and write a file with the data.

If the file not exists, it's created. If the file exists, the program checks if the content is updated, if not, rewrite the file.

The draft occours in the console, so feel free to practice typing ๐Ÿ™‚โŒจ๏ธ

When typing a champion name in the picks or bans, the program should output some champions names based in what you input after press ENTER. For example, typing "ve" or "VE" or "vE" or "Ve" and press ENTER outputs something like bellow:

Are you are trying to choose: Belveth ? Are you are trying to choose: Draven ? Are you are trying to choose: Evelynn ? Are you are trying to choose: Graves ? Are you are trying to choose: Ivern ? Are you are trying to choose: Riven ? Are you are trying to choose: Veigar ? Are you are trying to choose: Velkoz ? Are you are trying to choose: Vex ?

The draft is divided into two rounds of bans and picks.

1st bans round: Blue, Red, Blue, Red, Blue, Red = 6 bans

1st picks round: Blue, Red, Red, Blue, Blue, Red = 6 picks

2nd bans round: Red, Blue, Red, Blue = 4 bans

2nd picks round: Red, Blue, Blue, Red = 4 picks

Total champions banned: 10 bans Total champions picked: 10 picks

In the end of the draft, a "csv" file is created in a temp folder with the draft resume.

How to run this program

โš ๏ธ You need to have Python ๐Ÿ installed in your computer.

git clone [email protected]:tufcoder/cs50p-intro-python-final-project.git project
cd project
# If wanted, check tests
pytest test
# Run the program with
python3 project.py

Enjoy ๐Ÿ˜Š

cs50p-intro-python-final-project's People

Contributors

tufcoder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.