6 kyu
Cylon Evolution
2,042 of 2,071opheliasdaisies
Description:
There are all types of cylons. The trick is, some look like humans. Using prototypical inheritance, create a prototype for Cylon. Cylons should have a model, and should have an attack function, which will return the string "Destroy all humans!"
Since some cylons appear human, then make a child object called HumanSkin. This should have a model, as Cylons do, and should have the same attack. However, it should also have a function called infiltrate, which will return the string "Infiltrate the colonies".
Object-oriented Programming
Fundamentals
Similar Kata:
Stats:
Created | Jan 27, 2014 |
Published | Jan 27, 2014 |
Warriors Trained | 3841 |
Total Skips | 559 |
Total Code Submissions | 15619 |
Total Times Completed | 2071 |
JavaScript Completions | 2042 |
Total Stars | 63 |
% of votes with a positive feedback rating | 90% of 141 |
Total "Very Satisfied" Votes | 118 |
Total "Somewhat Satisfied" Votes | 18 |
Total "Not Satisfied" Votes | 5 |