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

Stats:

CreatedJan 27, 2014
PublishedJan 27, 2014
Warriors Trained3841
Total Skips559
Total Code Submissions15619
Total Times Completed2071
JavaScript Completions2042
Total Stars63
% of votes with a positive feedback rating90% of 141
Total "Very Satisfied" Votes118
Total "Somewhat Satisfied" Votes18
Total "Not Satisfied" Votes5
Ad
Contributors
  • opheliasdaisies Avatar
  • hobovsky Avatar
Ad