The Prince has an initial energy of E. In each battle, the Prince will loses as much energy as the opponent's. If the energy possessed Prince becomes zero or minus, then it means Prince has been defeated (dead).
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)