"RPG games are fun to play, as a CS student, it must be easy for you to build a RPG game, right?"
Your younger sister asked.
To impress your younger sister and makes her happy, you decide to build a RPG game.
As a starter, you want to build the combat system first.
The combat system is used for stimulate the battle between the player and the enemy.
Both the player and the enemy have 3 properties, HP (Health point), ATK (Attack damage), and DEF (Defence).
When the player attack the enemy, the enemy also attack the player at the same time.
The enemy HP will reduce (Player ATK - Enemy DEF) points, and the the player HP will reduce (Enemy ATK - Player DEF) points.
When one's HP is non-positive, the battle end.
Output the process of the battle system!
ouo.
Input contains 2 lines.
The first line contains 3 integers, P_HP, P_ATK, P_DEF,
represent the player's HP, ATK and DEF respectively.
The second line contains 3 integers, E_HP, E_ATK, E_DEF,
represent the enemy's HP, ATK and DEF respectively.
It's a guarantee that:
1 <= P_HP, E_HP <= 1000,
20 <= P_ATK, E_ATK <= 2000,
0 <= P_DEF, E_DEF < 20.
Output contains several lines.
The first line represent the battle start, output "Battle Start \^_^/". (without quotes)
Start from the second line,
output "The player dealt {} damage to the enemy and the enemy dealt {} damage to the player", (without quotes)
then output "The player has {} HP left and the enemy has {} HP left".
You should replace the {} to the correct number.
Until one's HP is non-positive, output the battle end message "Battle End \^_^/". (without quotes)