• by v64 on 8/14/2024, 9:50:24 PM

    Thank you for taking the time to clean this up and release it. I've never played DD Poker, but have experienced the loss of other games when servers go down and the software stops being updated.

    I realize source releases aren't always possible, so it's a great gift to the community when one can make it happen and they put in the effort to do so.

  • by SloopJon on 8/15/2024, 3:46:05 PM

    This was a bit of a bear to get running on my Mac. Everything depends on ddpoker.rc, which doesn't behave as expected unless an OSNAME environment variable is defined. I don't have that on macOS 14 (Sonoma) Mac using either zsh or bash. I hopped onto a 10.13 (High Sierra) hackintosh, and it doesn't have that variable either.

    For the person who was having trouble getting this to work on an M1 Mac (flagged, really?), try this (after installing Java 8 and Maven using Homebrew):

        % git clone https://github.com/dougdonohoe/ddpoker.git
        ...
        % cd ddpoker
        % export OSNAME=darwin
        % source ddpoker.rc
        JAVA_HOME changed, version now openjdk version "1.8.0_422"
        % mvn-package-no-tests
        ...
        % poker
    
    I built this before figuring out the OSNAME thing, so I can't actually vouch for the build step working out of the box.

    Anyway, thank you very much, Doug. This looks really cool.

  • by dlachausse on 8/14/2024, 3:36:04 AM

    Thank you for taking the time to open source this! It’s fun peeking at the source code of old games from bygone eras and more open source games are definitely a good thing.

  • by jonrosner on 8/14/2024, 3:46:55 PM

    Wow thanks a lot! We played DD Poker during the Pandemic. It really saved us from going insane:)

  • by dudinax on 8/14/2024, 5:44:20 AM

    Any plans to release the source for War Age of Imperialism?

    I bought and played the heck out of that game years ago but never could get anyone to try it multiplayer.

    Thanks for the great games!

  • by romac on 8/14/2024, 5:46:36 AM

    I wonder if this could be made to work in the browser using CheerpJ?

    https://cheerpj.com

  • by fnord77 on 8/15/2024, 2:52:28 AM

    ah, good old Java Swing. Spent years working on big Swing projects.

    BTW, you want to wrap statements like this in a logger.isDebugEnabled() especially in the paint loop because otherwise you always incur the cost of string concat, debug or not!

    > logger.debug("REPAINT COMPONENT "+(CNT++)+" ("+ImageComponent.getDebugColorName()+") portion " + bounds_.x +","+bounds_.y+" " +bounds_.width+"x"+bounds_.height);

  • by indigodaddy on 8/15/2024, 6:20:56 AM

    “Even though DD Poker and the backend servers was shutdown in July 2017, folks continue to play it by manually sharing game URLs”

    Anyone have more details about how the above works?

  • by dougdonohoe on 8/17/2024, 9:03:25 PM

    I just added functionality to allow users to specify a DD Poker backend server in the UI (see https://github.com/dougdonohoe/ddpoker/issues/1). This makes it easier for users to connect to a private DD Poker server in their community.

  • by namanyayg on 8/14/2024, 5:04:52 AM

    I've never worked with Java before.

    Out of curiosity, do you think the game's architecture and tech stack would be easily portable to a more modern setup, or would it require a significant rewrite?

  • by cjcole on 8/15/2024, 1:29:50 AM

    Thanks!

    (My son loves to play.)

    BTW, the old Windows installer runs great under Crossover on Apple Silicon.

    I'm going to try running this native. I'll file issues for what I can't readily fix.

  • by TheDudeMan on 8/15/2024, 2:38:43 AM

    Could you say a bit about how the poker AI works? I know it's not modern, but just curious. Thanks.