Skip to content

02Jensenl/Enemies-Defeated

Repository files navigation

Else if loop Challenge: Enemies Defeated

Calculate the total points the payer has obtained

Enemies are from 0-100

string playerName = "Gulram Stonebeard";

int defeatedEnemies = 1 (or whatever you change it to);

int points = 0;

int bonusPoints = 0;

int totalPoints = 0;

If player defeats 100 enemies, they will get the max amount of points, plus bonus points (20%) and the console must turn green to congratulate the player

75-99 defeated enemies outputs yellow, smaller bonus (5%)

50-74 defeated enemies outputs dark yellow, no bonus

Less than 50 enemies defeated, output red, you lose

About

Coding challenge through a C# StackSkills course.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages