Skip to content

cxaosdev/GBalancer

Repository files navigation

Game Balancer

Go to GameBalancer page >

🕹️ A fair match generator for League of Legends and Valorant that divides 10 players into two balanced teams based on their tiers and points.

GB Logo Valorant Logo League of Legends Logo
Select Game Screen

🔧 Features

✨ Key Features

  • 🏅 Player Tier Input: Easily select each player's rank and lane preferences.
  • ⚖️ Fair Team Generation: Automatically create two balanced teams based on player points.
  • 📊 Results Display: View the balanced teams and their total points in an intuitive modal.

📂 Project Structure

src
├── assets
├── components
│   ├── Footer.jsx
│   ├── Header.jsx
│   ├── OnBoarding.jsx
│   ├── PlayerLol.jsx
│   ├── PlayerVlrt.jsx
│   ├── ResultModal.jsx
│   ├── Spinner.jsx
│   ├── WarningModal.jsx
├── pages
│   ├── Home.jsx
│   ├── Lol.jsx
│   ├── Vlrt.jsx
├── styles
│   ├── constants.json
│   ├── index.css
│   ├── players.scss
│   ├── reset.scss
├── util
│   ├── teamGenerator.js
│   ├── tierPoints.js
├── App.jsx
├── index.js

🧮 Team Generation Algorithm

🎮 Tier-to-Points Mapping:

Valorant

Tier Points
Iron 7
Bronze 13
Silver 17
Gold 25
Platinum 29
Diamond 37
Ascendant 43
Immortal 45
Radiant 48

League of Legends

Tier Top Jungle Mid ADC Support
Challenger 56 63 61 58 55
GrandMaster 46 51 49 44 41
Master 39 43 41 36 37
Diamond 32 35 32 30 31
Emerald 25 27 25 24 23
Platinum 21 20 19 18 16
Gold 15 14 13 12 11
Silver 13 12 10 9 8
Bronze 11 7 8 8 7
Iron 7 4 4 4 6

❓ How to Use

🚀 Quick Steps

  1. Select Your Game
    Choose either League of Legends or Valorant to create a balanced match.
    Game Selection

  2. Input Player Data

    • Ranks and Positions: Input player tiers and select their lanes (for League of Legends).
    • Defaults: Players without a tier selection are assigned the lowest tier by default.
      Player Input Screen
  3. Generate Fair Match
    Click the Generate Fair Match! button to view the results in a modal.
    Generate Fair Match!


📧 Contact

If you have questions or suggestions, feel free to reach out:
📧 Email: [email protected]
📱 GitHub: cxaosdev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published