Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...

Okay, I decided to post Sabacc lol

Discussion in 'Other Games' started by Biff, Aug 12, 2026.

  1. Biff

    Biff The Bird Man & Fledgeling Day Counter

    Messages:
    487
    Likes Received:
    770
    Trophy Points:
    89
    Yeah, so I finnished this a week(?) or so back and I finally am getting around to posting it. Uh, in terms of instructions, I think I'm just gonna quote from the readme so, here goes:

    What is Sabacc?
    Sabacc is a card game from the hit franchise StarWars. There are multiple variations, and this is Corellian Spike. If any of these rules are wrong: I am not a big Star Wars fan (I've watched the nine movies once), if you pass me insults, I'll hurl them at my friend who does like Star Wars, and who explained the game to me (when we made the original python version). Also this is a non gambling version lol.
    Canonically, Han Solo won the Millennium Falcon by playing it. It consists of 62 cards, 30 positive, 30 negative, and two zeros. The cards have values from -10 to 10, and for each value, there are three cards (Square, Circle, and Triangle). The only exception to this is Zero which has no stave, only 2 identical cards. The goal is to get as close to zero as possible.

    How To Play?
    Your objective is to get your hand as close to zero as possible. You can draw new cards, stay with your hand, discard one of your cards and draw, or swap one of your cards for the discard every turn. There are three turns to build your hand. Because everytime you discard a card, you take another the number of cards in your hand CANNOT go down, and can only increase or stay the same. Similarly, the Discard isn't a pile as you can't go down, only ever seeing the top most card. If the dice roll doubles, everyone changes all of their card, and the dice are rolled once after every round. At the end of the three rounds whoever is closer to zero wins.

    Managing Inputs on a Computer
    • To stay, click the dice.
    • To draw, click the draw pile (vertically centered, horizontally on the left)
    • To Discard one of your cards and draw, click the card in you hand you want to discard, then click the draw pile
    • To swap one of your cards with the discard, click the card you want to swap, then click the Discard (vertically central, horizontally right)

      As a note, if you click a card in your hand, a blue circle should appear in the upper right. this lets you know which card you've picked. If you decide not to discard a card, you can click any empty space. To change the card you are discarding, you can click another card. If the card you clicked doesn't have the blue circle, it will not be discarded.
    For managing inputs, the 1.4 QOL update added Keybinds. The keybinds are as follows:

    • 1-5: The numbers one through five can be used to select one of the card in your hand
    • Space: The space bar can be used to deselect cards
    • Ctrl+S: functions like clicking the draw pile, drawing if their is no card selected and discarding if there is
    • Ctrl+G: functions like clicking the dice, invoking stay
    • Ctrl+K: Functions like clicking the discard
    • Ctrl+R: is only usable after a game has ended to return to the launcher
    • Ctrl+Z: returns the screen to its original size (1000 by 900 pixels)
    • Ctrl+X: reformats the height to fit the original aspect ratio (9 pixels of height for every 10 of width)
    Board Layout
    At the top is your opponent's cards, all face down. At the bottom are all your cards. Vertically centered, there are three things. The leftmost is two slightly offset, facedown cards. this is the draw pile. In the center is two grey squares with symbols. These are the dice. If, when rolled at the end of a round, both role the same symbol, all players must draw new cards (but the total number of cards you have will remain unchanged). In the horizontal center, right around the top of the Discard vertically, is the round and turn indicator. There are three rounds, and as with any other game, you can only go on your turn. Finally, vertically centered, and to the right is a face up card. This is the Discard.
    ________________________________
    Determining Card's Values
    Non-Zero Cards
    All cards have a main color, and an accent color. For cards 1-6, the main color is like a wheat/tan, and the accent color is determined by whether the card is positive or negative. If the card is negative, it's accent color is red, and if the card is positive, its accent color is green. For 7-10, the main color is either red or green if it is negative or positive respectively, and the accent color is wheat. Basically if the card is green, its positive, and if its red its negative.

    Determining a card's value is a little different. For cards 1-6, the value is counted out by the stave (which itself is irrelevant except for drawing the card) For example, a six square card will have six squares, and a three triangle will have three triangles. By counting the number of these on the card, you can determine its value. As a note, for cards 1-8, they have a 'banner' at the top and bottom which should not be counted whn determining a card's value because the only thing they do is indicate the stave. For cards 7-10, they have special symbols that must be memorised. These symbols are, in order as follows.
    Seven:
    7.png
    Eight:
    8.png
    Nine:
    9.png
    Ten:
    10.png
    Zero
    Zero.png
    ________________________________
    How to win?
    1. Get as close to zero as possible. If tied,
    2. Whoever has both Zeros, and if no one does,
    3. Whoever has the most cards in their hand, unless they have the same number,
    4. In which case whoever has the card with the highest absolute value wins, and, if both are equal,
    5. It's a tie!

    In singleplayer, you play against a computer. That computer's algorithm to determine its turn is as follows:

    1. If a swap with the Discard will bring it closer to zero, it takes it.
    2. If it is already at a hand value of -1 to 1, it will stay
    3. If the hand's value is less than 10, it draws a card
    4. If no action has then been taken, the card with the highest absolute value is discarded, and a new card is drawn in its place
    ________________________________
    Misc. Stuff
    Yeah, the EXE only works on windows, though I have included the Jar and source code if anyone wants them to compile themselves/check, etc.
    If you try to run the exe, you will get a popup saying "Microsoft Defender SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk". Clicking "More Info" will allow you to run it. Why does this happen? Not because it is actually unsafe or because windows defender scanned it, but because the executable is unsigned (you gotta pay money for that!). And what do you expect downloading from a sketchy link from a person on the internet? In all seriousness, if you're worried about safety, follow AmbassadorDazz's advice and also I included the source code which you can look through then compile for yourself with java 25.
    Uh, multiplayer is only LAN, which more or less means you and the other play would have to connect to the same router
    Anything else need to be said before I upload it? Uh? Oh yeah. Here is AmbassadorDazz's caution from a previous code thread:


    "As is usual with all software downloaded from the internet, run this at your own risk. I highly recommend you spin up a VM (Virtual Machine) if you want to do so, or a sandbox, to protect your computer from potentially malicious programs. Not saying this is
    malicious, I'm just giving people an advice to exercise an abundance of caution."
    ________________________________
    Here's the zip downlaod link: https://drive.google.com/file/d/1-Yw9v_3VEvMd3UQzJx1PbvUXJZzrzWGd/view?usp=sharing.
    App Image means the Windows Executable, but it is containes itself within a Zip file, so you will have to unzip that as well to run it!
     
    Last edited: Aug 12, 2026
    Elytry and Haml0rd like this.