An open API service indexing awesome lists of open source software.

https://github.com/warengonzaga/pcso-2d-lotto-generator

A mobile-first PCSO 2D lotto number generator with buffer system and Rambolito mode support
https://github.com/warengonzaga/pcso-2d-lotto-generator

lotto pcso pcso-lotto

Last synced: 5 months ago
JSON representation

A mobile-first PCSO 2D lotto number generator with buffer system and Rambolito mode support

Awesome Lists containing this project

README

          

# PCSO 2D Lotto Generator

**Mobile-first web app for generating PCSO 2D lotto combinations with intelligent buffer system**

[![License](https://img.shields.io/github/license/warengonzaga/pcso-2d-lotto-generator)](https://github.com/warengonzaga/pcso-2d-lotto-generator/blob/main/LICENSE)
[![GitHub Stars](https://img.shields.io/github/stars/warengonzaga/pcso-2d-lotto-generator)](https://github.com/warengonzaga/pcso-2d-lotto-generator/stargazers)
[![GitHub Forks](https://img.shields.io/github/forks/warengonzaga/pcso-2d-lotto-generator)](https://github.com/warengonzaga/pcso-2d-lotto-generator/network/members)

[๐Ÿš€ Live Demo](https://warengonzaga.github.io/pcso-2d-lotto-generator) โ€ข [๐Ÿ“– Documentation](./AGENTS.md) โ€ข [๐Ÿ› Report Bug](https://github.com/warengonzaga/pcso-2d-lotto-generator/issues) โ€ข [โœจ Request Feature](https://github.com/warengonzaga/pcso-2d-lotto-generator/issues)

---

## ๐Ÿ“‹ Table of Contents

- [Features](#-features)
- [Quick Start](#-quick-start)
- [How It Works](#-how-it-works)
- [Usage Guide](#-usage-guide)
- [Tech Stack](#-tech-stack)
- [Contributing](#-contributing)
- [License](#-license)
- [Support](#-support)

## โœจ Features

| Feature | Description |
|---------|-------------|
| ๐ŸŽฏ **PCSO 2D Range** | Official Philippine lotto numbers (0-31) |
| ๐Ÿ”ข **Smart Buffer System** | Generate ยฑ1 or ยฑ2 number variations automatically |
| ๐ŸŽฒ **Rambolito Mode** | Position-independent winning (7-26 = 26-7) |
| ๐Ÿ’ฐ **Live Cost Tracker** | Real-time bet calculation (โ‚ฑ20/combo) |
| โž• **Unlimited Combos** | Add as many combinations as you need |
| ๐Ÿ“‹ **Export Tools** | Copy to clipboard or download as .txt |
| ๐Ÿ“ฑ **Mobile-First UI** | Responsive design with dark mode theme |
| โšก **Client-Side Only** | No backend needed, runs in your browser |

## ๐Ÿš€ Quick Start

### ๐ŸŒ Online Access

**๐Ÿ‘‰ [Launch App](https://warengonzaga.github.io/pcso-2d-lotto-generator)**

No installation needed! Use it directly in your browser.

### ๐Ÿ’ป Local Development

```bash
# Clone repository
git clone https://github.com/warengonzaga/pcso-2d-lotto-generator.git
cd pcso-2d-lotto-generator

# Install dependencies
npm install

# Start development server
npm start

# Open browser at http://localhost:3000
```

## ๐Ÿง  How It Works

### Buffer System Logic

The buffer generates nearby number variations:

| Buffer | Output Example (for number 15) |
|--------|-------------------------------|
| **0** | `15` (exact only) |
| **1** | `14, 15, 16` (ยฑ1 variation) |
| **2** | `13, 14, 15, 16, 17` (ยฑ2 variations) |

### Rambolito Mode Behavior

| Rambolito | Buffer | Result |
|-----------|--------|--------|
| โœ… Enabled | Any | Position-independent (7-26 = 26-7) |
| โŒ Disabled | 0 | Exact position only (7-26 โ‰  26-7) |
| โŒ Disabled | โ‰ฅ1 | Generates both positions + buffered variations |

### Output Format

```
07 26 20 R
โ”‚ โ”‚ โ”‚ โ””โ”€ Rambolito flag (if enabled)
โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€ Bet amount (โ‚ฑ20)
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Second number
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ First number
```

## ๐Ÿ“ฑ Usage Guide

1. **Enter Numbers** - Input your two lucky numbers (0-31)
2. **Set Bet Amount** - Configure cost per combination (default: โ‚ฑ20)
3. **Choose Buffer** - Select 0, 1, or 2 for variation range
4. **Toggle Rambolito** - Enable/disable position-independent mode
5. **Add More** - Click "Add Combination" for additional sets
6. **Generate** - Hit "Generate Numbers" to create combinations
7. **Export** - Copy to clipboard or download as text file

**๐Ÿ’ก Pro Tip:** Use Buffer 1-2 with Rambolito disabled to maximize coverage while managing costs.

## ๐Ÿ› ๏ธ Tech Stack

| Layer | Technology |
|-------|-----------|
| **Frontend** | Vanilla JavaScript, HTML5, CSS3 |
| **Backend** | Node.js + Express |
| **Styling** | Dark mode with neon purple aesthetic |
| **Hosting** | GitHub Pages (static) |
| **Philosophy** | No frameworks, pure web fundamentals |

๐Ÿ“‚ Project Structure

```
pcso-2d-lotto-generator/
โ”œโ”€โ”€ public/
โ”‚ โ”œโ”€โ”€ css/
โ”‚ โ”‚ โ””โ”€โ”€ style.css # Dark theme styles
โ”‚ โ”œโ”€โ”€ js/
โ”‚ โ”‚ โ”œโ”€โ”€ generator.js # Core buffer logic
โ”‚ โ”‚ โ””โ”€โ”€ app.js # UI interactions
โ”‚ โ””โ”€โ”€ index.html # Main HTML
โ”œโ”€โ”€ server.js # Express server
โ”œโ”€โ”€ AGENTS.md # AI agent instructions
โ””โ”€โ”€ package.json
```

## ๐Ÿค Contributing

Contributions are welcome! This project follows the **[Clean Commit Convention](https://github.com/wgtechlabs/clean-commit)** by @wgtechlabs.

### Commit Types

| Emoji | Type | Example |
|-------|------|---------|
| ๐Ÿ“ฆ | `new` | `๐Ÿ“ฆ new: add export to CSV feature` |
| ๐Ÿ”ง | `update` | `๐Ÿ”ง update: improve buffer calculation` |
| ๐Ÿ—‘๏ธ | `remove` | `๐Ÿ—‘๏ธ remove: unused lodash dependency` |
| ๐Ÿ”’ | `security` | `๐Ÿ”’ security: patch XSS vulnerability` |
| ๐Ÿงช | `test` | `๐Ÿงช test: add buffer edge cases` |
| ๐Ÿ“– | `docs` | `๐Ÿ“– docs: update readme examples` |

See [AGENTS.md](./AGENTS.md) for complete guidelines and all 9 commit types.

### Workflow

```bash
# 1. Fork and clone
git clone https://github.com/YOUR_USERNAME/pcso-2d-lotto-generator.git

# 2. Create feature branch
git checkout -b feature/amazing-feature

# 3. Make changes and commit
git commit -m '๐Ÿ“ฆ new: add amazing feature'

# 4. Push and create PR
git push origin feature/amazing-feature
```

**Before submitting:**
- โœ… Test on mobile (375px width minimum)
- โœ… Verify buffer logic with edge cases
- โœ… Check cost calculations
- โœ… Follow clean-commit convention

## ๐Ÿ“„ License

GNU General Public License v3.0 - see [LICENSE](LICENSE) file for details.

## ๐Ÿ‘จโ€๐Ÿ’ป Author

**Waren Gonzaga**
- ๐ŸŒ Website: [warengonzaga.com](https://warengonzaga.com)
- ๐Ÿ’ผ GitHub: [@warengonzaga](https://github.com/warengonzaga)

## โš ๏ธ Disclaimer

This tool is for **entertainment and convenience purposes only**. Please play responsibly.

- The author is not responsible for any losses incurred from using this application
- Gambling can be addictive - seek help if needed
- This is not affiliated with or endorsed by PCSO

## ๐Ÿ’– Support

If you find this project helpful:

- โญ Star this repository
- ๐Ÿ”„ Share with fellow lotto players
- ๐Ÿ› [Report issues](https://github.com/warengonzaga/pcso-2d-lotto-generator/issues)
- ๐Ÿ’ก [Suggest features](https://github.com/warengonzaga/pcso-2d-lotto-generator/issues)
- ๐Ÿค Contribute improvements

---

**Made with โค๏ธ for Filipino lotto players**

[โฌ† Back to Top](#pcso-2d-lotto-generator)