Sabacc for the bold
- JavaScript 66.1%
- CSS 24%
- HTML 9.9%
| fonts | ||
| .gitattributes | ||
| .gitignore | ||
| index.html | ||
| LICENSE | ||
| README.md | ||
| script.js | ||
| styles.css | ||
Corellian Spike
The world's first digital Sabacc game.
Written in vanilla JS.
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