radames HF staff commited on
Commit
9a9cc6a
β€’
1 Parent(s): 3c93b97

print clue

Browse files
Files changed (1) hide show
  1. frontend/src/routes/index.svelte +2 -1
frontend/src/routes/index.svelte CHANGED
@@ -67,7 +67,8 @@
67
 
68
  answer = randomPrompt.replace(/_/g, ' ');
69
  imagePaths = promptsData[randomPrompt].slice(0, 6);
70
- console.log(answer);
 
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