80's Kids #5: You Can't Do That on Television
Description:
There are just some things you can't do on television. In this case, you've just come back from having a "delicious" Barth burger and you're set to give an interview. The Barth burger has made you queezy, and you've forgotten some of the import rules of the "You Can't Do That on Television" set.
If you say any of the following words a large bucket of "water" will be dumped on you: "water", "wet", "wash" This is true for any form of those words, like "washing", "watered", etc.
If you say any of the following phrases you will be doused in "slime": "I don't know", "slime"
If you say both in one sentence, a combination of water and slime, "sludge", will be dumped on you.
Write a function, bucketOf(str), that takes a string and determines what will be dumped on your head. If you haven't said anything you shouldn't have, the bucket should be filled with "air". The words should be tested regardless of case.
Examples:
bucketOf("What is that, WATER?!?") -> "water"
bucketOf("I don't know if I'm doing this right.") -> "slime"
bucketOf("You won't get me!") -> "air"
80's Kids #2: Help Alf Find His Spaceship
80's Kids #3: Punky Brewster's Socks
80's Kids #4: Legends of the Hidden Temple
80's Kids #5: You Can't Do That on Television
80's Kids #6: Rock 'Em, Sock 'Em Robots
80's Kids #7: She's a Small Wonder
80's Kids #8: The Secret World of Alex Mack
Similar Kata:
Stats:
Created | Dec 8, 2015 |
Published | Dec 8, 2015 |
Warriors Trained | 2790 |
Total Skips | 117 |
Total Code Submissions | 9338 |
Total Times Completed | 1489 |
JavaScript Completions | 461 |
Ruby Completions | 123 |
Python Completions | 521 |
CoffeeScript Completions | 14 |
Java Completions | 341 |
C++ Completions | 96 |
Total Stars | 43 |
% of votes with a positive feedback rating | 86% of 327 |
Total "Very Satisfied" Votes | 255 |
Total "Somewhat Satisfied" Votes | 55 |
Total "Not Satisfied" Votes | 17 |