Packages just for learning purposes related to Rocket League
Project description
🚀 Rocket League Player Registry
A simple Python-based system to manage and track Rocket League players, including their rank and preferred car.
🧠 Overview
This project uses Object-Oriented Programming (OOP) to:
- Store player instances
- Track all users in a shared registry
- Provide search and summary functionality
📦 Code Implementation
#!/usr/bin/env python3
class RocketLeague:
players = []
def __init__(self, nickname, rank, car):
self.nickname = nickname
self.rank = rank
self.car = car
RocketLeague.players.append(self)
@property
def info(self):
return f"\nSummary:\n\n\tNickname: {self.nickname}\n\tRank: {self.rank}\n\tCar: {self.car}"
@staticmethod
def ranks_info(rank_value):
if rank_value >= 1500:
return f"\nYou are Super Sonic Legend"
elif rank_value >= 1400:
return f"\nYou are Grand Champion"
elif rank_value >= 1300:
return f"\nYou are Champion"
else:
return f"\nYou are noob"
def all_users():
print(f"\n")
for index, invididual_object in enumerate(RocketLeague.players):
print(f"User # {index + 1} Nickname: {invididual_object.nickname}")
def player_lookup(nickname):
for invididual_object in RocketLeague.players:
if invididual_object.nickname == nickname:
return f"\nUser found\nSummary:\n\n\tNickname: {invididual_object.nickname}\n\tRank: {invididual_object.rank}\n\tCar: {invididual_object.car}"
return f"\nThe user {nickname} does not exist."
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
horusso-0.1.0.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file horusso-0.1.0.tar.gz.
File metadata
- Download URL: horusso-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba5302e5546ebcaf5593d15d00ec887dbb32a90c839c721c41ecc5aded594e80
|
|
| MD5 |
adc38f9b9128359cca52897d629324dc
|
|
| BLAKE2b-256 |
7a4d7538c38d322390d43fed7c1c96ec518df785c53d22078ef9b9f85d10cc60
|
File details
Details for the file horusso-0.1.0-py3-none-any.whl.
File metadata
- Download URL: horusso-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c8af7c395da3700f44c071c82e322beb20254847df60af58d526155b2b07cd0
|
|
| MD5 |
9e7d320aab8f713b4b75af55bdc271d5
|
|
| BLAKE2b-256 |
0ff2b6eddd3cf1ed6f161e567d269a7f75a5a7bfdfcd8a70575e82002cdc8859
|