1. Script Editor
function getNextBet(history) { const moneySteps = [5, 7, 13, 26]; const count = history.length; if (count < 2) return { bet: null, amount: 0, msg: "รอข้อมูล" }; const results = history.map(row => row[4]); let predictedBet = null; const isSame = (len) => { if (count < len) return false; const last = results[count - 1]; if (last === 'T') return false; for (let i = 1; i <= len; i++) if (results[count - i] !== last) return false; return true; }; const isPingPong = (len) => { if (count < len) return false; for (let i = 1; i < len; i++) { if (results[count - i] === results[count - (i + 1)] || results[count - i] === 'T') return false; } return true; }; const lastResult = results[count - 1]; const opposite = (side) => side === 'P' ? 'B' : 'P'; if (isSame(12)) predictedBet = lastResult; else if (isSame(10) || isSame(8) || isSame(6) || isSame(4) || isSame(2)) predictedBet = opposite(lastResult); else if (isPingPong(8) || isPingPong(6) || isPingPong(4) || isPingPong(2)) predictedBet = opposite(lastResult); let loseCount = 0; for (let i = count - 1; i >= 0; i--) { if (history[i][5] === "L") loseCount++; else if (history[i][5] === "W") break; } let finalBet = predictedBet; if (predictedBet && loseCount === 2) finalBet = opposite(predictedBet); let stepIndex = loseCount % moneySteps.length; return { bet: finalBet, amount: finalBet ? moneySteps[stepIndex] : 0, msg: `Lose Streak: ${loseCount}` }; }
ไม้ต่อไป:
รอคำนวณ...
บันทึก P
บันทึก B
บันทึก T
Clear
2. History Log
รอบ
แทง
ผล
W/L
ได้เสีย
Balance