Sabacc for the bold
  • JavaScript 66.1%
  • CSS 24%
  • HTML 9.9%
Find a file
2026-02-24 00:31:26 -05:00
fonts Added new fonts and organized them 2023-09-15 21:51:30 -04:00
.gitattributes Initial commit 2023-09-06 20:48:47 -04:00
.gitignore Initial commit 2023-09-06 20:48:47 -04:00
index.html Swapped the sylop symbol with something more universal 2024-04-17 13:30:36 -04:00
LICENSE Initial commit 2023-09-06 20:48:47 -04:00
README.md Update README.md 2026-02-24 00:31:26 -05:00
script.js Removed dead progressbar code 2023-09-15 23:27:34 -04:00
styles.css Swapped the sylop symbol with something more universal 2024-04-17 13:30:36 -04:00

Corellian Spike

The world's first digital Sabacc game.

Written in vanilla JS.

Play online

MVP Progress

Game Setup

  • Generating a deck of Sabacc cards
  • A configurable number of players are generated, delt a hand, and given starting credits
  • The top of the deck is discarded
  • Players automatically ante up

Game Progression

  • Turns progress after player actions
  • Stages progress after players take their turns
  • Rounds progress at at the end of rounds
  • The UI is updated after state changes

Drawing Phase

  • Standing
  • Drawing a card from the deck and chosing to keep or discard that card
  • Discarding from your hand and drawing from the deck
  • Discarding from your hand and drawing from the discard

Betting Phase

  • Standing
  • Making a bet
  • Calling the bet
  • Raising the bet
  • Junking (folding)
  • Going all in
    • Basic implementaion added, but does not account for side pots yet. Currently the player with the highest credits can cheese the game by always going all in.
  • Raise limit

Spike Phase

  • Rolling the dice
  • Re-dealing cards to players after a spike

Game End

  • Game ends after third round
  • Comparing hands and determining a winner
  • Special win conditions (which hands beat which)
    • Also currently does not have logic to handle multiple players with the same winning score
  • Distributing the winnning pot(s) to the winner
  • Player hands are reset, but credits are not
  • Players without enough credits to ante are eliminated
  • A new game is started after the final round

User Interface

  • Only show the current player's hand
  • Only show actions that the current player is allowed to take
  • User-friendly desktop layout
  • User-friendly mobile layout
  • Card designs that look like real Sabacc cards and show staves
    • Basic version implemented
  • Star Wars inspired theme (colors & fonts)

To launch the http server in Github Codespaces, use the command: http-server