🔹 How Winner Chance
In MoodengAI, the winner of a random attack battle is determined using a probability-based system that ensures fairness and unpredictability. This system leverages both the cards' battle power and a blockchain-based random number generator to calculate the outcome.
Winner Chance Calculation:
When two cards engage in a battle:
Calculate Winner Chance:
The percentage chance for each card to win is calculated based on their respective battle power: Winner Chance (%) = (Card Battle Power × 100) / (Sum of Both Cards’ Battle Power)
Example:
Card A Battle Power: 600
Card B Battle Power: 400
Sum of Battle Power: 1000
Card A Winner Chance: (600 × 100) / 1000 = 60%
Card B Winner Chance: (400 × 100) / 1000 = 40%
Roll the Dice:
A random number between 0 and 100 is generated using a blockchain-based RNG (Random Number Generator).
Determine the Winner:
If the dice roll falls within the winner chance range of the attacking card, the attacker wins.
If the dice roll exceeds the attacker’s chance, the defender wins.
Example Scenarios:
Card A Chance: 60% (Roll Range: 0–60) Card B Chance: 40% (Roll Range: 61–100)
Dice rolls 45: Card A wins and receives attack rewards.
Dice rolls 78: Card B wins and receives defend rewards.
Card A Chance: 80% (Roll Range: 0–80) Card B Chance: 20% (Roll Range: 81–100)
Dice rolls 23: Card A wins.
Dice rolls 95: Card B wins.
Rewards Based on Battle Outcome:
Attacker Wins:
Reward: +15 $GEM tokens and +1 Winner Cup.
Defender Wins (Attacker Fails):
Reward for Defender: +5 $GEM tokens (no Winner Cup).
Strategic Insights:
Players with high battle power cards have a greater chance to win, but the randomness ensures underdogs still have opportunities to succeed.
The blockchain RNG guarantees transparency and fairness in battle outcomes.
This system combines strategy, probability, and blockchain technology to create a fair and engaging battle experience for all players.
Last updated