Team Work

Three gems, three people, and a deadline.

https://codecombat.com/play/level/team-work

Solution

// Gems will disappear soon. You'll need help!

// findItems() returns an array of items.
var items = hero.findItems();

// Get the first gem from the array.
// Don't forget that the first index is 0.
var gem0 = items[0];

// Tell Bruno to get gem0
hero.say("Bruno " + gem0);

// You can reference the gem without a variable.
hero.say("Matilda " + items[1]);

// Create a variable for the last gem, items[2]:
// Move to that gem's position using moveXY()
hero.moveXY(items[2].pos.x, items[2].pos.y);
Points for
time
Needed items with
findItems
say
moveXY
This site is in another language version