name | correct guesses | games together | ratio |
---|---|---|---|
Dolphy | 1 | 4 | 0.250 |
Moja | 0 | 4 | 0.000 |
kimapr | 0 | 4 | 0.000 |
name | correct guesses | games together | ratio |
---|---|---|---|
Dolphy | 3 | 4 | 0.750 |
Moja | 1 | 4 | 0.250 |
kimapr | 1 | 4 | 0.250 |
submitted at
0 likes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | let movesStack = [] let interval = setInterval(() => { if (movesStack.length == 0){ let player = { x: 0, y: 0 }; let food = { x: 0, y: 0 }; let spike = { x: 1000, y: 1000 }; let canvas = document.getElementById("screen").innerHTML; let lines = canvas.split("<br>"); let text = document.getElementById("score-counter").textContent; let score = +text.replace("score: ", ""); if (score != 2025){ for (let i = 0; i < lines.length; i++) { let currentLine = lines[i]; for (let j = 0; j < currentLine.length; j++) { let currentSymbol = currentLine[j]; if (currentSymbol == "@") { player.x = j; player.y = i; } if (currentSymbol == "+") { food.x = j; food.y = i; } if (currentSymbol == "*") { spike.x = j; spike.y = i; } } } if (player.y == food.y) { if (player.x > food.x) { if(spike.x == player.x-1 && spike.y == player.y){ if(player.y != 4){ movesStack = ["down","left","left","up"] }else{ movesStack = ["up","left","left","down"] } } else { move("left") } } else { if(spike.x == player.x+1 && spike.y == player.y){ if(player.y != 4){ movesStack = ["down","right","right","up"] } else { movesStack = ["up","right","right","down"] } } else { move("right") } } } else { if (player.y < food.y) { if(spike.y == (player.y)+1 && spike.x == player.x){ if(food.x > player.x){ movesStack = ["right","down"] } else { movesStack = ["left","down"] } } else { movesStack = ["down"] } } else { if(spike.y == (player.y)-1 && spike.x == player.x){ if(food.x > player.x){ movesStack = ["right","up"] } else { movesStack = ["left","up"] } } else { movesStack = ["up"] } } } } }else{ move(movesStack.shift()); } }, 220); function move(input){ let text = document.getElementById("score-counter").textContent; let score = +text.replace("score: ", ""); if (score != 2025){ document.getElementById(input).click(); } } |
submitted at
2 likes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | function findFactors(target) { const factors = []; for (let i = 1; i <= Math.sqrt(target); i++) { if (target % i === 0) { factors.push([i, target / i]); } } return factors; } console.log("Ƹ\\૮₍ ˶ᵔ ᵕ ᵔ˶ ₎ა/Ʒ -> Hiya! I'm Warhammer Butterscotch"); while (true) { let thing = +prompt("Enter your number, and I'll sprinkle some magic on it!: "); const original = thing; let equation = []; let last = ""; console.log("*ੈ✩‧₊˚༺☆༻*ੈ✩‧₊˚"); console.log(` /)__/) Ƹ\\( ˶• ༝ •˶)/Ʒ o( ⊃━☆*⛥*゚・。*.₊˚❀༉‧₊˚.`,thing); console.log("*ੈ✩‧₊˚༺☆༻*ੈ✩‧₊˚"); for (let x = 0; x < 100; x++) { let choice = Math.floor(Math.random() * 10); switch (choice) { case 1: let value = thing - Math.floor(Math.random() * (thing - 0.1)); if (value !== 0) { equation.push(value, "+"); thing -= value; } break; case 2: if (equation.length > 1) { let location = Math.floor(Math.random() * equation.length); if (isNaN(equation[location])) location--; let factors = findFactors(equation[location]); if (factors.length > 1) { let [a, b] = factors[Math.floor(Math.random() * (factors.length - 1)) + 1]; equation.splice(location, 1, "(", a, "*", b, ")"); } } break; } let currentEquation = equation.join("") + thing + "=" + original; if (currentEquation !== last) { console.log("Ƹ\\૮₍ ˶ᵔ ᵕ ᵔ˶ ₎ა/Ʒ 。*.₊ " + currentEquation); } last = currentEquation; } console.log("*ੈ✩‧₊˚༺☆༻*ੈ✩‧₊˚"); console.log("Hiya, your equation is done! Ƹ\\૮₍ ˃ ⤙ ˂ ₎ა/Ʒ Hope you like it!"); console.log(equation.join("") + thing + "=" + original); console.log("Go again? Ƹ\\૮₍´˶• . • ⑅ ₎ა/Ʒ"); let retry = prompt("(Y/N) => ").toLowerCase(); if (retry === "n" || retry === "no") break; } |
submitted at
0 likes
submitted at
1 like
1 2 3 4 5 6 7 8 9 10 11 | let z = String.fromCharCode(49).split(''), f = +prompt(":3c nums of its: ") while(f--){ Array.isArray(z) ? alert(z.join('')) : alert(z) let f = z[0], k= 0, p = "", i=0 while (i<z.length) { f != z[i] ? p += k+f : k f == z[i] ? k+= 1 : k= 1; f = z[i], i+=+1 } z = p += k+ f } |
post a comment