r/JavaScriptTips • u/Playful_Ease_5772 • Aug 20 '25
Cricket league mod
<!DOCTYPE html>
<html> <head> <title>Mini Cricket Game</title> <style> body { text-align: center; font-family: Arial, sans-serif; background: #f0f8ff; } #score { font-size: 22px; margin: 15px; } button { font-size: 18px; margin: 8px; padding: 10px 20px; border-radius: 8px; cursor: pointer; } </style> </head> <body>
<h1>š Mini Cricket League</h1> <div id="score">Score: 0 | Wickets: 0</div>
<button onclick="bat()">Bat!</button> <button onclick="reset()">Restart</button>
<script> let score = 0; let wickets = 0; function bat() { if (wickets >= 3) { alert("All out! Final Score: " + score); return; } let run = Math.floor(Math.random() * 7); // 0 to 6 runs if (run === 0) { wickets++; alert("Oh no! Wicket!"); } else { score += run; alert("You scored " + run + " runs!"); } document.get
1
1
u/Ok-Dragonfruit3642 Aug 21 '25
Cricket league Mod Menu apk send placesĀ