Skip to content

nx23/SomeMON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SomeMON - Pokémon Battle Simulator

SomeMON is a battle simulator inspired by Pokémon, allowing you to create and interact with attacks based on types, resistance, weakness, and immunity, with realistic combat logic.

Features

  • Types and Interactions: Each type of attack and Pokémon has its resistances, weaknesses, and immunities, which affect the damage during battles.
  • Custom Attacks: Create attacks with different types, powers, and accuracies.
  • Realistic Damage Calculation: Damage varies depending on the resistances and weaknesses of the target type.
  • Battle Simulation: The combat mechanics are simulated based on type interactions, attack effects, and much more.

Project Structure

This project is structured as follows:

SomeMON - Pokémon Battle Simulator/
├── src/
│   ├── core/
│   │   └── entities/
│   │       ├── attack.py # Definition of the Attack class, with combat mechanics
│   │       ├── mon.py # Definition of the MON class that will have the interaction mechanics
│   │       └── type.py # Definition of the Type class, containing the types of attacks and Pokémon 
│   ├── data/
│   │   └── type_chart.json # JSON file containing the chart of resistances, weaknesses, and immunities
│   ├── main.py # Edit and run this file to start the battles
├── tests/
│   ├── test_attack.py # Unit tests for the Attack class
│   ├── test_mon.py # Unit tests for the Mon class
│   └── test_type.py # Unit tests for the Type class
└── requirements.txt # This file lists the dependencies required for the Python project.

How to Run

Prerequisites

This project requires Python 3.7+.

  1. Clone this repository:

    git clone https://github.com/nx23/SomeMON.git
    cd SomeMON
    
  2. To run the code, execute the following command:

    python src/main.py

Running Tests

This project uses pytest for unit testing. Install the dependencies and run the tests with the following commands:

  1. Install the dependencies:

    pip install -r requirements.txt
  2. Run the tests:

    pytest tests

Contributing

Contributions are welcome! Please fork this repository and submit a pull request for any enhancements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any inquiries or feedback, please contact [email protected].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages