Spaces:
Runtime error
Runtime error
print clue
Browse files
frontend/src/routes/index.svelte
CHANGED
@@ -67,7 +67,8 @@
|
|
67 |
|
68 |
answer = randomPrompt.replace(/_/g, ' ');
|
69 |
imagePaths = promptsData[randomPrompt].slice(0, 6);
|
70 |
-
|
|
|
71 |
cols = randomPrompt.length;
|
72 |
timePerTile = totalTime / cols;
|
73 |
|
|
|
67 |
|
68 |
answer = randomPrompt.replace(/_/g, ' ');
|
69 |
imagePaths = promptsData[randomPrompt].slice(0, 6);
|
70 |
+
const clue = [...answer].map((a) => (Math.random() > 0.5 ? '*' : a)).join('');
|
71 |
+
console.log("%cCLUE: ","color: red;font-weight:bold", clue);
|
72 |
cols = randomPrompt.length;
|
73 |
timePerTile = totalTime / cols;
|
74 |
|