One of you has the kind of face that says, “I lost all my chips, but my instincts were solid.”
※ This test is for entertainment only and does not measure real gambling habits or addiction.
Gambling can lead to financial loss and addiction. Choose healthy, balanced ways to spend your free time.
test.eonis.kr
(function(){
const maxCount=10;
let count=5;
let images=[];
const countGrid=document.getElementById(‘countGrid’);
const uploadGrid=document.getElementById(‘uploadGrid’);
const startBtn=document.getElementById(‘startBtn’);
const loadingBox=document.getElementById(‘loadingBox’);
const resultSection=document.getElementById(‘resultSection’);
const rankList=document.getElementById(‘rankList’);
const loadingMsg=document.getElementById(‘loadingMsg’);
const progressBar=document.getElementById(‘progressBar’);
const slot=document.getElementById(‘slot’);
const types=[‘All-In Ace’,’One-Big-Score Type’,’Dopamine Rocket’,’Underdog Believer’,’Emotional All-In’,’Competitive Beast’,’Slot Machine’s Chosen One’,’Poker Face’,’Calculated Bettor’,’Spectator Type’];
const tazza=[‘A relentless, never-let-go streak — once you’re in, you’re in until the very end.’,’The confidence of a born competitor — your self-belief is already maxed out.’,’You own the room — the kind of person who can completely change the energy at the table.’,’Quietly calculating — you watch, wait, and make one perfectly timed move.’,’Your charm does half the work — you might talk your way into a win before the cards even land.’,’Somewhere between fearless and reckless — huge competitive drive, questionable ability to walk away.’,’Supporting-character energy — you came to stop the action and somehow ended up playing.’,’Elite observation skills — you read everyone else’s expression before making a move.’];
const comments=[‘You look like someone who says “just one more hand” seven times in a row.’,’Your confidence rises faster than your bank balance.’,’Even after losing, you’re probably saying, “Honestly, my instincts were great tonight.”’,’That dangerous look says you’ll jump in the second your friend starts winning.’,’You may build your chip stack slower than you knock it down.’,’The casino staff would remember your face before the night was over.’,’You think you’re being careful, but your hand is already hovering over the all-in button.’,’You trust luck more than science — and it shows.’,’You start out telling everyone to be careful, then make the biggest bet at the table.’,’You came for the free drinks and left with a life lesson.’,’Your pride may disappear before your money does.’,’You definitely said you were just watching, and now you’re sitting in the best seat.’];
const loadingTexts=[‘🧠 Analyzing everyone’s vibe…’,’👀 Measuring dangerous eye contact…’,’💸 Checking for one-big-score instincts…’,’🎰 Calculating all-in potential…’,’😨 Checking walk-away ability…’,’🔥 Ranking the group…’,’⚠️ Major dopamine detected…’,’🏆 Building the final leaderboard…’];
function initCounts(){
countGrid.innerHTML=”;
for(let i=2;i<=maxCount;i++){
const btn=document.createElement('button');
btn.type='button';
btn.className='count-btn'+(i===count?' active':'');
btn.textContent=i+' players';
btn.addEventListener('click',function(){
count=i;
images=images.slice(0,count);
initCounts();
renderUploads();
});
countGrid.appendChild(btn);
}
}
function checkStart(){
const uploaded=images.filter(Boolean).length;
startBtn.disabled = uploaded < count;
}
function renderUploads(){
uploadGrid.innerHTML='';
for(let i=0;i<count;i++){
const box=document.createElement('label');
box.className='upload-box';
if(images[i]){
box.innerHTML='‘;
}else{
box.innerHTML=’+‘;
}
const input=box.querySelector(‘input’);
input.addEventListener(‘change’,function(e){
const file=e.target.files[0];
if(!file)return;
const reader=new FileReader();
reader.onload=function(ev){
images[i]=ev.target.result;
renderUploads();
};
reader.readAsDataURL(file);
});
const remove=box.querySelector(‘.remove-img’);
if(remove){
remove.addEventListener(‘click’,function(e){
e.preventDefault();
e.stopPropagation();
images[i]=null;
renderUploads();
});
}
uploadGrid.appendChild(box);
}
checkStart();
}
function makeResults(){
const validImages=images.filter(Boolean);
const arr=validImages.map(function(src,i){
return {
src:src,
idx:i+1,
score:Math.floor(52+Math.random()*47),
type:types[Math.floor(Math.random()*types.length)],
tazza:tazza[Math.floor(Math.random()*tazza.length)],
comment:comments[Math.floor(Math.random()*comments.length)],
stats:{
‘승부욕’:Math.floor(40+Math.random()*60),
‘도파민’:Math.floor(40+Math.random()*60),
‘참을성’:Math.floor(Math.random()*70),
‘손절력’:Math.floor(Math.random()*80)
}
};
});
arr.sort(function(a,b){return b.score-a.score});
return arr;
}
function showResults(){
const results=makeResults();
rankList.innerHTML=”;
results.forEach(function(r,i){
const medal=i===0?’🥇’:i===1?’🥈’:i===2?’🥉’:(i+1)+’th’;
const statHtml=Object.entries(r.stats).map(function(item){
return ‘
‘;
rankList.appendChild(card);
});
}
startBtn.addEventListener(‘click’,function(){
if(images.filter(Boolean).length =8){
clearInterval(timer);
loadingBox.style.display=’none’;
showResults();
resultSection.style.display=’block’;
resultSection.scrollIntoView({behavior:’smooth’,block:’start’});
}
},750);
});
document.getElementById(‘saveBtn’).addEventListener(‘click’,function(){
const target=document.getElementById(‘captureArea’);
if(typeof html2canvas===’undefined’){
alert(‘The save feature is still loading. Please try again in a moment.’);
return;
}
html2canvas(target,{scale:2,backgroundColor:’#080414′,useCORS:true}).then(function(canvas){
const link=document.createElement(‘a’);
link.download=’gambling-king-test-results.png’;
link.href=canvas.toDataURL(‘image/png’);
link.click();
});
});
document.getElementById(‘shareBtn’).addEventListener(‘click’,function(){
if(navigator.share){
navigator.share({
title:’Do You Have What It Takes to Be the Gambling King?’,
text:’This is hilarious with friends 😂 Find out who looks most likely to go all in first.’,
url:location.href
});
}else{
alert(‘This browser doesn’t support sharing. Use Copy link instead.’);
}
});
document.getElementById(‘copyBtn’).addEventListener(‘click’,function(){
if(navigator.clipboard){
navigator.clipboard.writeText(location.href).then(function(){alert(‘Link copied!’);});
}else{
prompt(‘Copy the link below:’,location.href);
}
});
document.getElementById(‘retryBtn’).addEventListener(‘click’,function(){
location.reload();
});
initCounts();
renderUploads();
})();