Simulação de combate entre robôs lutadores
Project description
robot-fight-package
📃 Description
The robot-fight-package is a Python package that simulates combat between robot fighters. It includes logic for attack, healing, and robot reprodution, making it ideal for learning object-oriented programing concepts in a playful and interactive way.
- Simulates robot fights with random attributes.
- Includes medical robots that heal others.
- Enable robot "reproductions" using operator overloading.
⚙️ Installation
Use the package manager pip to install package_name
pip install robot-fight-package
Prerequisites
- Python ≥ 3.8 (recommended: Python 3.12.9)
pipupdated- Operrating System Compatible with virtual environments (Windows, Linux ou macOS)
Check the version of Python and pip
python --version
pip --version
If it is not installed or outdated, use:
python -m ensurepip --upgrade
python -m pip install --upgrade pip
Create a virtual environment, activate, and install dependencies.
python -m venv venv
.\venv\Scripts\Activate.ps1 # For Windows
source venv/bin/activate # For Linux/macOS
pip install setuptools wheel
Package installation locally in development mode.
pip install -e .
If there is a UnicodeDecodeError
$OutputEncoding = [System.Text.UTF8Encoding]::new()
Finish by checking and running the program.
python setup.py --version
python main.py
⛏️ Usage
from robots.robo_base import Robo
from robots.robo_lutador import RoboLutador
from robots.robo_medico import RoboMedico
Author
Cleiton da Silva GuilhermiteLicense
This project has no license. All rights reserved. If you wish to reuse it, please contact me.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
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 robot_fight_package-0.0.1.tar.gz.
File metadata
- Download URL: robot_fight_package-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
486c5c2cb63fadbc0f3c7b0e03fe531fdb66e924522e31d5d9fc04695c3040ee
|
|
| MD5 |
8549c5ed39c566b1925a1cf5ed560969
|
|
| BLAKE2b-256 |
361494d2dac4e036914d7833aab42ca5a69246ed6c1e261f53db2f90bd6f958a
|
File details
Details for the file robot_fight_package-0.0.1-py3-none-any.whl.
File metadata
- Download URL: robot_fight_package-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc609c7381bfcab2d7c01ee6016d7f68efe73ba9793ceb8593be0ee75327bc86
|
|
| MD5 |
b574b731e08b0606a8d47f7e968df227
|
|
| BLAKE2b-256 |
49fa3252f0164f5f04dccd416f46854aa5061822c575c01c21b2b48ba42e49d1
|