Vegas Games
A VS Code extension that lets you play classic Vegas games right in your editor. For entertainment purposes only — no real money involved.
Preview

Games
- Blackjack — Beat the dealer to 21. Supports hit, stand, double down, and split.
- Texas Hold'em Poker — No-limit poker against AI opponents with configurable difficulty.
- Baccarat — Bet on Player, Banker, or Tie with standard third-card rules.
- Slots — 5-reel slot machine with adjustable bet size and paytable display.
- Roulette — European or American roulette with a full betting board.
- Pai Gow Poker — Face-up 7-card split against the dealer with House Way option.
- Craps — Dice table with Pass/Don't Pass, Come/Don't Come, Place, Field, and proposition bets.
- Dragon Tiger — Fast high-card showdown with Dragon, Tiger, and Tie betting.
Getting Started
- Install the extension in VS Code.
- Click the games icon in the Activity Bar to open the sidebar, or run the command Vegas Games: Open Vegas Games from the Command Palette (
Ctrl+Shift+P).
- Pick a game from the lobby and start playing.
Your chip balance persists across sessions automatically.
You also receive a daily bonus of 1,000 chips when you open the extension on a new day.
Settings
Open VS Code Settings and search for "Vegas Games" to configure:
| Setting |
Default |
Description |
| Sound Effects |
On |
Enable/disable sound effects |
| Background Music |
Off |
Enable/disable background music |
| Volume |
50 |
Master volume (0-100) |
| Starting Balance |
1000 |
Chip balance for new games |
| Roulette Type |
European |
European (single zero) or American (double zero) |
| Blackjack Decks |
6 |
Number of decks (1, 2, 4, 6, or 8) |
| Poker AI Difficulty |
Normal |
Easy, Normal, or Hard |
| Slots Display Mode |
Sequential |
Reels stop one by one (Sequential) or all at once (Instant) |
| Theme |
Classic |
Classic green felt, Neon Vegas, or Dark Luxury |
| Auto-Save Balance |
On |
Save chip balance between sessions |
Development
Prerequisites
Build
npm install
npx tsc -p ./
Run
Press F5 in VS Code to launch an Extension Development Host with the extension loaded.
Project Structure
vegas-games-extension/
├── package.json Extension manifest
├── tsconfig.json TypeScript config
├── src/
│ └── extension.ts Extension entry point, webview provider, HTML shell
├── out/
│ ├── extension.js Compiled output (main entry)
│ └── extension.js.map Source map → src/extension.ts
└── media/
├── css/
│ └── main.css All styles
├── icons/
│ ├── icon.png Extension icon (256×256)
│ └── games.svg Activity bar icon
└── js/
├── main.js Lobby, navigation, balance, settings
├── audio.js Sound effects (Web Audio API)
├── blackjack.js Blackjack game logic
├── poker.js Texas Hold'em Poker game logic
├── baccarat.js Baccarat game logic
├── slots.js Slots game logic
├── roulette.js Roulette game logic
├── paigow.js Pai Gow Poker game logic
├── craps.js Craps game logic
└── dragontiger.js Dragon Tiger game logic
Source maps: out/extension.js.map maps extension.js back to src/extension.ts. Paths in the map are relative to the map file (../src/extension.ts).
Author
Alpha Romer Coma — alpharomercoma@proton.me
License
MIT
For fun only. No real money gambling.