Created
April 30, 2024 08:37
-
-
Save realytcracker/ad650dafe8af9cd10aac730386bf8e20 to your computer and use it in GitHub Desktop.
for being a degenerate in the javascript console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
console-slots.js by ytcracker | |
for being a degenerate in the javascript console | |
copy and paste this into your javascript console, type spin(), hit enter | |
keep pressing up and enter for hardcore degen mode | |
setInterval(spin, 500); for ultimate degen mode | |
*/ | |
const emojis = ['π','π','π©΅','πͺ','π΅','π°','β','π']; | |
var tokens = 1000; // change this value for unlimited money hack | |
function spin() { | |
if (tokens <= 0) { | |
console.log(`YOU ARE BROKE!`); | |
return; | |
} | |
tokens = tokens - 5; | |
const reel1 = pickEmoji(); | |
const reel2 = pickEmoji(); | |
const reel3 = pickEmoji(); | |
console.log(`${reel1} ${reel2} ${reel3}`); | |
if (reel1 === reel2 && reel1 === reel3) { | |
const payout = calculateWin(reel1); | |
tokens = tokens + payout; | |
console.log(`YOU WIN ${payout} TOKENS!`); | |
} else if (reel1 === 'π' && reel2 === 'π') { | |
const payout = 10; | |
tokens = tokens + payout; | |
console.log(`YOU WIN ${payout} TOKENS!`); | |
} else if (reel1 === 'π') { | |
const payout = 5; | |
tokens = tokens + payout; | |
console.log(`YOU WIN ${payout} TOKENS!`); | |
} else { | |
const payout = 0; | |
console.log('YOU LOSE!'); | |
} | |
console.log(`YOU HAVE ${tokens} TOKENS.`); | |
} | |
function pickEmoji() { | |
return emojis[Math.floor(Math.random() * emojis.length)]; | |
} | |
function calculateWin(symbol) { | |
switch(symbol) { | |
case 'π': | |
return 1000; | |
break; | |
case 'β': | |
return 500; | |
break; | |
case 'π°': | |
return 250; | |
break; | |
case 'π΅': | |
return 100; | |
break; | |
case 'πͺ': | |
return 50; | |
break; | |
case 'π©΅': | |
return 25; | |
break; | |
case 'π': | |
return 20; | |
break; | |
case 'π': | |
return 15; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment