From 73b32af6ae2b88c495489982cc8eec9ca7990921 Mon Sep 17 00:00:00 2001
From: mvanschilt <38429435+mvanschilt@users.noreply.github.com>
Date: Thu, 28 Mar 2024 15:47:31 +0000
Subject: [PATCH] moving
---
.../pids/4328_133561128197834400/values.xml | 3 ++
.../The-Magical-Forest-of-Algora.js | 29 ++++++++++++
Solution/JavaScript/magicalforest.html | 47 +++++++++++++++++++
3 files changed, 79 insertions(+)
create mode 100644 .mono/registry/CurrentUser/software/microsoft/csdevkit/v1/pids/4328_133561128197834400/values.xml
create mode 100644 Solution/JavaScript/magicalforest.html
diff --git a/.mono/registry/CurrentUser/software/microsoft/csdevkit/v1/pids/4328_133561128197834400/values.xml b/.mono/registry/CurrentUser/software/microsoft/csdevkit/v1/pids/4328_133561128197834400/values.xml
new file mode 100644
index 0000000..ff48816
--- /dev/null
+++ b/.mono/registry/CurrentUser/software/microsoft/csdevkit/v1/pids/4328_133561128197834400/values.xml
@@ -0,0 +1,3 @@
+
+ 133561143336685873
+
\ No newline at end of file
diff --git a/Solution/JavaScript/The-Magical-Forest-of-Algora.js b/Solution/JavaScript/The-Magical-Forest-of-Algora.js
index a44332e..24b2e34 100644
--- a/Solution/JavaScript/The-Magical-Forest-of-Algora.js
+++ b/Solution/JavaScript/The-Magical-Forest-of-Algora.js
@@ -1 +1,30 @@
console.log("Welcome to the Magical Forest of Algora!");
+// Define the creatures and their dance moves
+const creatures = ['Lox', 'Drako'];
+const danceMoves = ['Twirl', 'Leap', 'Spin'];
+
+// Function to get a random dance move
+function getRandomDanceMove() {
+ return danceMoves[Math.floor(Math.random() * danceMoves.length)];
+}
+
+// Function to perform the sacred dance
+function performSacredDance(creature1, danceMove1, creature2, danceMove2) {
+ console.log(`${creature1} starts to dance.`);
+ console.log(`${creature1} performs a ${danceMove1}.`);
+ console.log(`${creature2} starts to dance.`);
+ console.log(`${creature2} performs a ${danceMove2}.`);
+
+ if (danceMove1 === 'Twirl' && danceMove2 === 'Twirl') {
+ console.log('Fireflies light up the forest.');
+ } else if ((danceMove1 === 'Leap' && danceMove2 === 'Spin') || (danceMove1 === 'Spin' && danceMove2 === 'Leap')) {
+ console.log('A rainbow appears in the sky.');
+ } else if (danceMove1 === 'Leap' && danceMove2 === 'Leap') {
+ console.log('Gentle rain starts falling.');
+ } else {
+ console.log('The forest is filled with a magical aura.');
+ }
+}
+
+// Start the sacred dance
+performSacredDance();
\ No newline at end of file
diff --git a/Solution/JavaScript/magicalforest.html b/Solution/JavaScript/magicalforest.html
new file mode 100644
index 0000000..323d6de
--- /dev/null
+++ b/Solution/JavaScript/magicalforest.html
@@ -0,0 +1,47 @@
+
+
+
+ The Magical Forest of Algora
+
+
+
+ The Magical Forest of Algora
+
+
+
+
+
\ No newline at end of file