memoscan
← all memos

Memo 0x76970c03…5b0538 on Ethereum

async function burnoutSymphony() { const stages = [ "Enthusiasm", "Stagnation", "Frustration", "Apathy", "Burnout", ]; let energy = 100, passion = 100, time = 0; const name = (await prompt("Enter your name: ")) || "Anonymous"; console.log(name + "'s Burnout Symphony begins..."); while (energy > 0 && passion > 0) { await new Promise((resolve) => setTimeout(resolve, 500)); time++; energy = Math.max(0, energy - Math.random() * 5); passion = Math.max(0, passion - Math.random() * 3); const stage = stages[Math.min(4, Math.floor((100 - energy) / 20))]; const bar = "█".repeat(Math.ceil(energy / 10)) + "░".repeat(10 - Math.ceil(energy / 10)); console.clear(); console.log(name + "'s Burnout Symphony - Movement " + time); console.log("Stage: " + stage); console.log("Energy: [" + bar + "] " + Math.ceil(energy) + "%"); console.log("Passion: " + passion.toFixed(2) + "%"); console.log("♫".repeat(Math.ceil(passion / 10))); if ( time % 10 === 0 && (await prompt("Type 'rest' to take a break: ")) === "rest" ) { energy = Math.min(100, energy + 20); passion = Math.min(100, passion + 10); console.log("You took a refreshing break!"); } } console.log(name + "'s Burnout Symphony has ended. The audience is silent."); } burnoutSymphony();