๐ Genshin Impact Team Optimizer โ Luna IV Version 0.2 Beta
A Python-based team rotation optimizer for Genshin Impact that helps players build the best 4-character team based on elements, roles, weapons, and elemental reactions โ all powered by a structured Excel database. Built for players who want logic-backed team building, not just vibes.
๐ฎ What Is This? This tool analyzes your available characters and finds the optimal team rotation by maximizing elemental reaction multipliers, while respecting team composition rules such as:
- Main DPS
- Sub DPS
- Healer / Shield
- Weapon & Element constraints It is designed to be:
- Beginner-friendly ๐ถ
- Flexible for late-game players โ๏ธ
- Understandable for developers ๐จโ๐ป๐ฉโ๐ป
โจ Features (v0.2 Beta)
โ Inventory input using nicknames
โ Weapon filtering (Sword, Claymore, Bow, Catalyst, Polearm)
โ Element exclusion filter
โ Role-based team validation
โ Build choice selection
โ Best team rotation order (1 โ 4)
๐ง How the Optimizer Thinks
- Load & clean database
- Ask user for owned characters
- Apply weapon filters
- Apply element exclusion
- (Optional) Enforce role rules
- Resolve dual-role characters (build choice)
- Generate all valid 4-character teams
- Test all possible rotations
- Pick the team with the highest reaction multiplier score ๐ A detailed flowchart is included in this repository for reference.
๐ genshin-team-optimizer/
โ
โโโ calc.py # Main optimizer script
โโโ Genshin_DB-ver_Luna_IV # Database (latest game version)
โโโ Inventory_Optimizer-v0.2-beta # Logic flowchart
โโโ README.md # This file
- Python 3.10+
- pandas
Steps:
- Download the files and put it on 1 folder
- Open the calc.py file
- On the terminal, type "pip install pandas"
- On the terminal, type "python calc.py"
- Follow the prompts on the terminal
๐ Future Plan: Streamlit Web App This optimizer is planned to be deployed as a Streamlit web app. Stay tuned ๐
๐ค Contribution & Feedback Feedback is very welcome! If youโre a programmer or theorycrafter and see something off โ please open an issue or PR ๐
- Fan-made
- Non-commercial
- Not affiliated with HoYoverse
- All character data belongs to Genshin Impact.
And good luck on your Genshin journey, Traveler!