Your opponent is doing the same. The result are two sets of attacks and defenses.

To understand what UP/MID/DOWN mean:

Attack: UP => punch to head / MID => punch to stomach / DOWN => kick to legs)

Defense: UP => duck / MID => step back / DOWN => jump up)

After both players joined the game and

The system is going to calculate some stats for your block-explorer, e.g. your attack power (based on strength).

After that it is starting the fighting rounds:

We match the attack and defense actions from the player and calculate the damage dealt from P1=>P2 and P2=>P1:

If the attacker actions differs from the defenders actions, we got a hit.

Now we do a random generator to check if it would be a critical hit. If yes, the damage gets doubled.

We divide the damage with the vitality. If the 10% bonus on vitality is choosen, the damage will be divided by 1.1

The life of the block-explorer will now be reduced by the damage taken. Next, we reduce both block-explorer energy by 1.

Now we check, if either one of the player got life or energy to 0 or less.

If one player has 0 life or energy he gets defeated (either by dead or exhaust).

If both players got a 0 we get a draw.

If bot player got numbers greater zero, we start the next round. (including new random chances for crit hits)

In round 2 we select the attacks and defenses from the selected for round 2 (UP, MID, DOWN)

If we go to a round 6, we take the first selections again. Round 11: first again, ...

Player 1 | Player 2 | ||||||
---|---|---|---|---|---|---|---|

round | actions | life | energy | attack | life | energy | attack |

start | 58.00 | 28.00 | 6.10 | 58.00 | 28.00 | 6.00 | |

round1 | P1 Att UP => P2 Def MID and P2 Att MID => P1 Def DOWN | -6.00 52.00 | 27.00 | 6.10 | -5.55 52.45 | 27.00 | 6.00 |

round2 | P1 Att UP => P2 Def MID and P2 Att MID => P1 Def UP | -6.00 46.00 | 26.00 | 6.10 | -5.55 46.90 | 26.00 | 6.00 |

round3 | P1 Att DOWN => P2 Def MID and P2 Att MID => P1 Def UP | -6.00 40.00 | 25.00 | 6.10 | -5.55 41.35 | 25.00 | 6.00 |

round4 | P1 Att MID => P2 Def MID and P2 Att MID => P1 Def UP | -6.00 34.00 | 24.00 | 6.10 | -0.00 41.35 | 24.00 | 6.00 |

round5 | P1 Att DOWN => P2 Def MID and P2 Att MID => P1 Def MID | -0.00 34.00 | 23.00 | 6.10 | -5.55 35.80 | 23.00 | 6.00 |

round6 | P1 Att UP => P2 Def MID and P2 Att MID => P1 Def DOWN | -6.00 28.00 | 22.00 | 6.10 | -5.55 30.25 | 22.00 | 6.00 |

round7 | P1 Att UP => P2 Def MID and P2 Att MID => P1 Def UP | -6.00 22.00 | 21.00 | 6.10 | -5.55 24.70 | 21.00 | 6.00 |

round8 | P1 Att DOWN => P2 Def MID and P2 Att MID => P1 Def UP | -6.00 16.00 | 20.00 | 6.10 | -5.55 19.15 | 20.00 | 6.00 |

round9 | P1 Att MID => P2 Def MID and P2 Att MID => P1 Def UP | -6.00 10.00 | 19.00 | 6.10 | -0.00 19.15 | 19.00 | 6.00 |

round10 | P1 Att DOWN => P2 Def MID and P2 Att MID => P1 Def MID | -0.00 10.00 | 18.00 | 6.10 | -5.55 13.60 | 18.00 | 6.00 |

round11 | P1 Att UP => P2 Def MID and P2 Att MID => P1 Def DOWN | -6.00 4.00 | 17.00 | 6.10 | -5.55 8.05 | 17.00 | 6.00 |

round12 | P1 Att UP => P2 Def MID and P2 Att MID => P1 Def UP | -6.00 -2.00 | 16.00 | 6.10 | -5.55 2.50 | 16.00 | 6.00 |

P1 dead

Now the database gets updated with the life and energy values for the block explorer. (Both regenerate at 1 point every hour)

© 2024 beulemann / Imprint/Impressum