Game Design, Game Development, Math, Games, Mathematics.
game has the following sword upgrade mechanic: 1) The player initially has a level 1 sword, currentLevel = 1. 2) Maximum level = 4. 3) The player can try to level up the sword. However, in the process, the sword may break and lower its level: the cost of leveling up depends on the current level: 10