about | help | code help+videos | done | prefs |
littleGame
Write a method that plays a very small and simple game. Basically the game works like this. You pass a String into the method. If the String says "heal me" the method returns "you just healed yourself to death.". If the String says "fight the dragon" the method returns "Watch it Trebek!". Any other input String returns "K.W. is a super awesome wonderful person, and NO I am NOT being ironic!". Note that the method is NOT case sensitive. littleGame("heal me") → "you just healed yourself to death." littleGame("fight the dragon") → "Watch it Trebek!" littleGame("Heal Me") → "you just healed yourself to death." ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 201
Copyright Nick Parlante 2017 - privacy