This is the first project I do in any new language I learn.

You start the game having 50 hitpoints and 3 potions. Your opponent is a mindless, ancient evil who has 100 hitpoints. You each take turns, with you moving first.

On your move, you can do one of two things:

After your turn, your opponent attacks. (This happens even if the opponent was "killed" in your turn.) Your opponent's attack causes you to lose 10 hitpoints.

The game ends when either your hitpoints or your opponent's reaches 0. If you have hitpoints at the end and your opponent doesn't, you win! If you don't have hitpoints at the end, you lose, even if your opponent also has none.

When implementing this, your result is not "correct" unless the following are true: