Skip to content

Commit ef193bf

Browse files
committed
Aside:
I have tried to clean up my rebase. Conflict with VSCode resolved.
1 parent 244574a commit ef193bf

1 file changed

Lines changed: 0 additions & 69 deletions

File tree

assignments/prototypes.js

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -75,74 +75,6 @@ Humanoid.prototype.greet = function () {
7575
// Test you work by uncommenting these 3 objects and the list of console logs below:
7676

7777

78-
<<<<<<< HEAD
79-
const mage = new Humanoid({
80-
createdAt: new Date(),
81-
dimensions: {
82-
length: 2,
83-
width: 1,
84-
height: 1,
85-
},
86-
hp: 5,
87-
name: 'Bruce',
88-
faction: 'Mage Guild',
89-
weapons: [
90-
'Staff of Shamalama',
91-
],
92-
language: 'Common Toungue',
93-
});
94-
95-
const swordsman = new Humanoid({
96-
createdAt: new Date(),
97-
dimensions: {
98-
length: 2,
99-
width: 2,
100-
height: 2,
101-
},
102-
hp: 15,
103-
name: 'Sir Mustachio',
104-
faction: 'The Round Table',
105-
weapons: [
106-
'Giant Sword',
107-
'Shield',
108-
],
109-
language: 'Common Toungue',
110-
});
111-
112-
const archer = new Humanoid({
113-
createdAt: new Date(),
114-
dimensions: {
115-
length: 1,
116-
width: 2,
117-
height: 4,
118-
},
119-
hp: 10,
120-
name: 'Lilith',
121-
faction: 'Forest Kingdom',
122-
weapons: [
123-
'Bow',
124-
'Dagger',
125-
],
126-
language: 'Elvish',
127-
});
128-
129-
console.log(mage.createdAt); // Today's date
130-
console.log(archer.dimensions); // { length: 1, width: 2, height: 4 }
131-
console.log(swordsman.hp); // 15
132-
console.log(mage.name); // Bruce
133-
console.log(swordsman.faction); // The Round Table
134-
console.log(mage.weapons); // Staff of Shamalama
135-
console.log(archer.language); // Elvish
136-
console.log(archer.greet()); // Lilith offers a greeting in Elvish.
137-
console.log(mage.takeDamage()); // Bruce took damage.
138-
console.log(swordsman.destroy()); // Sir Mustachio was removed from the game.
139-
140-
141-
// Stretch task:
142-
// * Create Villian and Hero constructor functions that inherit from the Humanoid constructor function.
143-
// * Give the Hero and Villians different methods that could be used to remove health points from objects which could result in destruction if health gets to 0 or drops below 0;
144-
// * Create two new objects, one a villian and one a hero and fight it out with methods!
145-
=======
14678
const mage = new Humanoid({
14779
createdAt: new Date(),
14880
dimensions: {
@@ -304,4 +236,3 @@ function turnSimulator(hero, villain) {
304236
}
305237

306238
console.log(turnSimulator(jace, tezzeret));
307-
>>>>>>> d1e1379... Complete stretch AND turn simulator

0 commit comments

Comments
 (0)