OddsCalculator.xyz — Project Wiki
Live URL: https://oddscalculator.xyz/
Repository: https://github.com/SlickFreekDesign/Learn1
Local Path: D:\GitHub\Learn1
Last Updated: 2026-06-18
1. Project Overview
OddsCalculator.xyz is a Jamstack static site built with Eleventy (11ty) that provides free, real-time probability and odds calculators for gambling and betting. All calculations run client-side in the browser — no server processing, ensuring speed and privacy.
Mission
Demystify the complex mathematics behind odds and probability. Provide fast, accurate, easy-to-use calculators for poker, casino games, sports betting, and lottery.
Key Differentiators
- 100% client-side — no data sent to servers
- Privacy-first — no tracking of inputs or betting history
- Free — no registration or credit card required
- Dark theme with yellow accents (#FFD700), Bento Grid navigation
- Mobile-first responsive design
2. Tech Stack
| Layer |
Technology |
| Static Generator |
Eleventy 3.x (11ty) |
| Templating |
Nunjucks (.njk) |
| Styling |
Vanilla CSS (2409 lines, CSS variables) |
| Logic |
Vanilla JavaScript (ES6+) |
| Math Rendering |
MathJax 3 |
| Testing |
Jest |
| Linting |
ESLint + Prettier |
| Analytics |
Google Tag Manager (GTM-PNW4537W) |
| Hosting |
(Cloudflare Pages, like adscalculator.xyz) |
3. Calculators & Tools
Poker Games
| Calculator |
Description |
| Texas Hold'em |
Monte Carlo equity simulator, up to 10 players |
| Omaha (PLO) |
4-card Omaha equity calculator |
| Seven Card Stud |
Classic stud equity calculator |
| 2-7 Triple Draw |
Lowball equity calculator |
| OFC Poker (Pineapple) |
13-card board organization & foul check |
Casino Games
| Calculator |
Description |
| Blackjack |
Basic Strategy engine (Hit/Stand/Double/Split) |
| Roulette |
Probability analysis for roulette bets |
General
| Calculator |
Description |
| Sports Betting |
Payouts, ROI, parlays/accumulators |
| Expected Value |
+EV vs -EV decision tool |
| Lottery Odds |
Jackpot probability calculator |
| Odds Conversion |
Decimal ↔ Fractional ↔ American ↔ Probability |
4. Blog
Published Posts (4)
| Title |
Date |
| What is Expected Value (EV) and Why is it the "Holy Grail" of Betting? |
May 11, 2026 |
| A Beginner's Guide to Pot Odds |
Dec 20, 2025 |
| The Psychology of Chasing Losses |
Dec 18, 2025 |
| Is There Any 'Skill' in Playing the Lottery? |
Dec 15, 2025 |
Blog Post Format
- Layout:
layouts/post.njk (extends base.njk)
- Frontmatter:
layout, title, description, date, tags: "post"
- Content: Markdown with MathJax support
- Language: English
- Tone: Educational, professional, acknowledges gambling risks
5. Key Technical Details
Permalink Strategy
permalink: 'oddscalculator-xyz.html'
Web Workers
Heavy poker simulations (Monte Carlo) run in poker-worker.js to avoid blocking the UI thread. 10,000+ iterations per simulation.
State Persistence (persistence.js)
- Uses
localStorage for automatic state saving
- Saves: player count, simulation count, card arrays, bets, stakes, settings
Poker Hand Evaluator (poker-utils.js)
- Evaluates 5-7 card hands using standard poker hierarchy
- Special handling for "Wheel" straight (A-2-3-4-5)
- Omaha rule: exactly 2 from hand + exactly 3 from board
Blackjack Strategy (blackjack.js)
- Pre-defined "Basic Strategy" matrix (not real-time simulation)
- Returns:
H (Hit), S (Stand), D (Double), P (Split), J (Double/Stand)
- Multi-card hands auto-disable Double and Split options
6. SEO & Meta
- Canonical URLs:
https://oddscalculator.xyz/wiki/oddscalculator-xyz/
- Open Graph + Twitter Card tags
- JSON-LD:
WebSite schema on all pages, BlogPosting schema on blog posts
- GTM ID:
GTM-PNW4537W
- Sitemap:
src/sitemap.njk
7. Static Pages
| Page |
URL |
Description |
| About Us |
/about/ |
Mission, philosophy, features |
| Contact |
/contact/ |
Contact form |
| FAQ |
/faq/ |
4 questions |
| Glossary |
/glossary/ |
5 terms |
| Privacy Policy |
/privacy-policy/ |
Legal |
| Terms of Service |
/terms-of-service/ |
Legal |
| AdsCalculator.xyz |
Footer cross-link |
"Other Tools" |
8. Content Gaps — Next Posts
- How to read betting odds (beginner guide)
- Kelly Criterion explained
- Variance and bankroll management
- Poker hand rankings guide
- Sports betting strategies (arbitrage, value betting)
- Roulette strategies (Martingale, Fibonacci) — and why they fail
- Blackjack card counting basics
- Lottery expected value by game type
9. Known Issues & TODOs
- Blog posts lack thumbnails
- Only 4 blog posts published — content gap analysis needed
- No
alt text on many images
structure.txt (687KB) in root — should be in .gitignore
- No
404.html page
polyfill.io CDN compromised in past — consider removing
- MathJax loaded from CDN (privacy concern)
10. Relationship to AdsCalculator.xyz
- Cross-linked in footer: "Other Tools" section
- Shared design language (dark theme, Bento Grid, sidebar navigation)
- Same developer (SlickFreekDesign GitHub account)
- Both Eleventy static sites, client-side calculations only
- Both use
persistence.js state management pattern