Skip to content

N-Erickson/blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

🎰 CyberJack SSH Casino

A blackjack game accessible directly through SSH.

🎲 Play Now

ssh cyberdeck.casino

That's it.

🏗️ Architecture

┌─────────────────┐         ┌──────────────────┐         ┌─────────────────┐
│                 │   SSH   │                  │  Exec   │                 │
│  Your Terminal  ├────────►│   Wish Proxy     ├────────►│  Blackjack.py   │
│                 │  :22    │  (Port 22)       │         │                 │
└─────────────────┘         └──────────────────┘         └─────────────────┘
                                     │
                                     │ Admin SSH
                                     │ :2022
                                     ▼
                            ┌──────────────────┐
                            │   Admin Access   │
                            │  (Port 2022)     │
                            └──────────────────┘

🚀 Deployment

Prerequisites

  • Oracle Cloud Free Tier instance (or any VPS)
  • Domain name

Quick Deploy

  1. Launch Oracle Cloud instance with Oracle Linux

  2. Run the setup script:

curl -sSL https://raw.githubusercontent.com/N-Erickson/blackjack/main/ocisetup.sh | sudo bash
  1. Point your domain to the server IP:

    • Add A record: @ → your-server-ip
  2. Play:

ssh cyberdeck.casino

🛠️ Technical Stack

  • Game Engine: Python 3
  • SSH Server: Wish (Go)
  • Terminal UI: ANSI escape codes
  • Hosting: Oracle Cloud Free Tier
  • Authentication: None required!

📊 How It Works

User Flow:
═════════

ssh cyberdeck.casino
    │
    ▼
┌─────────────────────────┐
│   DNS Resolution        │
│ cyberdeck.casino → IP   │
└───────────┬─────────────┘
            │
            ▼
┌─────────────────────────┐
│   Wish SSH Server       │
│   Listening on :22      │
│   • Accepts any user    │
│   • No password needed  │
└───────────┬─────────────┘
            │
            ▼
┌─────────────────────────┐
│   Python Subprocess     │
│   blackjack.py          │
│   • Full terminal I/O   │
│   • ANSI color support  │
└───────────┬─────────────┘
            │
            ▼
        🎰 PLAY! 🎰

🎮 Game Features

Betting System

  • Starting balance: $500
  • Minimum bet: $5
  • All bets in $5 increments

Blackjack Rules

  • Dealer hits soft 17
  • Blackjack pays 3:2
  • Double after split allowed
  • Split any pair (including 10-value cards)
  • No insurance or surrender

Terminal Features

  • Full color support with cyberpunk theme
  • ASCII card art
  • Responsive to terminal size

For users without native SSH clients:

Windows

# Built-in OpenSSH (Windows 10+)
ssh cyberdeck.casino

# Or use PuTTY
image

🎯 Roadmap

  • Multiplayer tables
  • Poker variant
  • Slot machines
  • High score tracking
  • Tournament mode
  • Web-based terminal
  • More casino games

About

Blackjack in your terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published