Today I completed the “Grasshopper – Terminal game Turn Function” kata on Codewars!

Looking at the instructions, I knew I had to call six functions in a specific order. The question was, “Which order?” After some trial and error, I found the order: rollDice, move, combat, getCoins, buyHealth, and printStatus. I ran this code and it worked!

Bug Zero Icon

OUR NEWSLETTER