-
Frodo gets a gold ring from his uncle.
-
It turns out to be a super dangerous weapon that belongs to a dark lord.
Frodo and his friends have to walk across the whole world to destroy the ring in a giant volcano.
π§ββοΈπ§ββοΈπ§ββοΈπΆββοΈπΆββοΈπΆββοΈπΆββοΈ [The Fellowship] ------> π [Mount Doom]
The team splits up. Frodo gets lost and has to trust a weird, sneaky cave creature named Gollum to show him the way.
π§ "My Precious!"
/ \
πββοΈ πββοΈ [Frodo & Sam]
They finally reach the volcano, but Frodo changes his mind. Luckily, Gollum bites the ring off his finger and accidentally falls into the lava, saving everyone.
HTML
function destroyRing(frodo: any, gollum: CaveCreature, ring: Ring): string {
// Frodo reaches the end but fails
frodo.willpower = 0;
console.log("Frodo: Actually, I think I'll keep it.");
// Gollum saves the day by accident
console.log("Gollum bites Frodo's finger!");
ring.owner = "Gollum";
const volcanoLava = true;
if (volcanoLava) {
console.log("Gollum falls into the lava. Ring destroyed!");
return "World Saved! π";
}
}