Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Vegas Poker

Las Vegas style video poker on an M5Stack CardputerZero running Gh0st OS.

  • Loose Vegas pay tables, the full-pay machines:
    • Jacks or Better 9/6 (99.54% return with perfect play)
    • Bonus Poker 8/5 (99.17%)
    • Double Double Bonus 9/6 (98.98%)
  • A fresh shuffle of one 52-card deck every hand, from the kernel's random source, so every card is equally likely, as on a regulated machine.
  • 1, 5, 25 or 100 credits per coin, 1 to 5 coins. Only 5 coins pays the 4,000 coin royal flush, so bet max.
  • Played for free credits only: points with no cash value, nothing to buy or cash out. Start with 2,500 credits; your credits are saved between games.
  • Card backs to unlock as your credits reach each line:
Credits Card back
Start Classic Red
10,000 Royal Blue
20,000 Emerald
50,000 Black & Gold
100,000 High Roller

A new back goes on as soon as you unlock it; switch any time with K or in the menu. Backs stay unlocked if you run out and take a fresh 2,500 credits.

Install

Build on a Mac or Linux computer with Rust installed.

sh build-deb.sh            # -> dist/vegas-poker_<version>_arm64.deb

Or build and install in one step over SSH (Settings > SSH on the CardputerZero first):

CARDPUTER_USER=yourname sh install.sh 192.168.1.77

Vegas Poker appears on the home screen. To remove it: sudo apt-get remove vegas-poker.

Play

Key Does
Space or 7 Deal / Draw
5 or B Bet one (1 to 5 coins)
6 or M Bet max and deal
↑ / ↓ (F / X) Bet up / down
← / → (Z / C) Move between cards
Enter Hold the card under the cursor (deals when waiting)
W E R T Y Hold card 1 to 5
Tab Pay table (your bet's column lit)
G Game: Jacks or Better, Bonus Poker, Double Double Bonus
D Credits per coin: 1, 5, 25, 100
K Card back
S Stats: hands, royals, best win, highest credits
8 Menu (New 2,500 credits is here)

Leaving in the middle of a hand, before the draw, gives the bet back.

Pay tables (per coin; royal on 5 coins = 4,000)

Hand Jacks 9/6 Bonus 8/5 Double Double 9/6
Royal Flush 250 250 250
Straight Flush 50 50 50
4 Aces + 2, 3 or 4 25 80 400
4 2s-4s + A, 2, 3 or 4 25 40 160
4 Aces 25 80 160
4 2s, 3s, 4s 25 40 80
4 5s thru Ks 25 25 50
Full House 9 8 9
Flush 6 5 6
Straight 4 4 4
3 of a Kind 3 3 3
Two Pair 2 2 1
Jacks or Better 1 1 1

Saved data

In ~/.config/cardputerzero/config.json, under vegaspoker.*.

Tests

cargo test

Ranks all 2,598,960 five-card hands against the textbook counts and checks every pay table.

Screenshots for the store

Run the app on your computer; each frame is saved as a 320x170 PNG:

mkdir -p frames
printf 'wait 300\nspace\nwait 900\nq\nw\nwait 300\n' | cargo run -- --sim frames
printf 'wait 300\ntab\nwait 300\n' | cargo run -- --sim frames

Copy the ones you like to screenshots/deal.png and screenshots/paytable.png.

Publishing

sh publish.sh

Same as WX Radar: push this folder to github.com/robmac21/vegas-poker first (public), with the two screenshots in place.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages