Poker game logic

has anybody ever tried to make a poker game
if you have, please help me.
if you have not, please help me if you can.
how would you check weather there is a winning hand.
the possibilities are Royal Flush, Straight Flush, 4 of a kind, full house, flush, straight, 3 of a kind, 2 pair, pair.
pseudocode would be very nice.
also, if you know a website where i could find some examples, that would also be very nice.
Thanks.

Although I dislike using ints for enums, I might do it here on the groups that maps from Object to int aren't readily available, and constantly boxing and unboxing is nice. Anyway...
Each Card should have a getSuit() method and a getValue() method. Have two arrays, int[] suitCount = new int[4], and int[] valueCount = new int[13]. Go through the five cards incrementing the various indices. Then e.g. you have a flush if one of the suitCount elements is 5; a full house if one of the valueCount elements is 3 and one is 2, etc. Straights are slightly more work - you could check them by initialising an int straightCount = 0 and then for i = 0 to 13 (because A counts high and low) if valueCount[i % 13] == 1 then {straightCount++; if straightCount == 5 you have a straight} else straightCount = 0.

Similar Messages

  • Poker game logic(again)

    i think that this will be the last thread that i will start on the subject of poker.
    if you have not looked at the other poker game logic threads, it might help.
    if figured out ways to check for repeaded cards(2,3,4,2&2,2&3) and how to do the flush. I am only having trouble figuring out if ther is one of the straights(cards in ascending order).
    you can check the suit and the rank of each card and there are 5. how do you figure if they are in a particular order?
    THANX!

    Sort the card array by face value of card. then
    boolean straight()
    if( ((a[0]+1) == a[1]) && ((a[1]+1) == a[2]) && ... etc. )
    return true;
    You will have to account for ace-2-3-4-5 too though. or 10-j-q-k-ace depending on the value you assign an ace.

  • Optimal communication strategy for poker game

    Hi,
    I'm designing a client/server poker game, and I'm trying to decide on the best protocol for client/sever comms. It's a personal project, so it doesn't need to be 100% robust or extensible.
    I was thinking of the following model:
    Client(s) and server communicate via Object Input/Output Streams over a socket. Client opens a Listener thread which listens in a while(true) loop, and Server also listens in a while(true) and processes incoming messages. The communication workflow will follow a request-response model.
    I will create my own Message class(String sender, int msgType, Object msgValue), and both listening classes will use switch(msgType) statements to process requests.
    Does anybody have any recomendations/stipulations regarding this model? There are a couple of issues I can think of:
    1. Use of while(true) loops should be avoided
    2. What happens to forever-listening ObjectInputSrteams when the client disconnects unsafely?
    3. How should the server handle client disconnects? Is it sufficient to use the onWindowClose method in the client GUI?
    Any feedback appreciated, thanks in advance,
    Sean

    Why not use RMI instead of plain sockets? The server part can be a
    simple facade to the real poker server (which can be a simple POJO).
    The 'business logic' (the poker game itself) is handled by the real
    poker server while all communication stuff is handled by RMI. That way
    the clients don't have to be aware of the fact that they're talking to some
    thing remote and it frees you from implementing that communication
    layer with all its burden.
    kind regards,
    Jos

  • 2 player turn based game logic in c# for snake and ladder

    Hello programmers,
    I am developing a snake and ladder game in xaml and C#.(windows 8.1 app)
    my question is:
    1) I am unable to think about the solution for player turn, I have build the game logic for single player and its working fine. please provide some solutions or the concept.
    2) I have build the same game logic with two different ways, one with nested if else and the next with array which one would be good for performance.
    and I also want to know about windows Azure for online score and multi player game service.

    Hi,
    I am not very familiar with the multiplayer Game development. For multiplayer games, you'll need to set up a matchmaking server and have the clients connect to it. It can then pair them off and facilitate communications. If the clients have publicly available
    network addresses then it can introduce them and they can talk directly to each other.There isn't anything built in for this so you'll need to either build your own or find a third party implementation. If you are using Unity3d then check out
    http://docs.unity3d.com/Documentation/Components/net-MasterServer.html
    Also, you can use Xbox services, and I find an article below:
    https://msdn.microsoft.com/en-us/library/bb975801.aspx
    For windows Azure problem, you should go to windows Azure forum.
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Poker game experiencing lag problems

    I've recently written a semi-functional Poker game however I'm experiencing problems with the game slowing down drastically as game play continues. I only have some basic high school programming knowledge so please forgive me for my extremely poor coding practice. Included are are the source files and jar. Any help would be appreciated. Thanks

    Ducky24 wrote:
    Upon using the Net Beans profiler I am finding myself quite shocked. The results show that invoke my formatJButton some 181000 times however I have no idea why it is invoked such.You have your swingComponent() method being called from inside of your paintComponent() method, and that seems like a bad idea to me. Every time your screen redraws, it will call this method, and it seems to me that it should be the other way around -- Your swingComponent should be involved with changing things and then call revalidate() and repaint() to relayout and redraw things.
    Again, I can't force myself to look at all of your code, but I wonder if you should be using a CardLayout here to swap JPanels rather than removing and repositioning and such.

  • Why can,t i load the poker game fantasy poker

    why cant i not load the fantasy poker game poker

    Hello,
    What type of computer and internet connection are you using?
    MrMatthew - HP Support Forums Moderator
    Click the Kudos star as a way to say "thank you" for helpful posts.
    Be sure to come back and click the 'Accept as Solution' button on the post that solved your issue - it may help someone else.

  • HT203433 I want to buy chips for a poker game and it keeps telling me to visit itunes/support

    I want to buy chips for a poker game and it keeps telling me to visit www.apple.com/support/support/itens/ww/. My credit card doesn't have a hold and it is a good credit card.  please someone help

    You need to contact itunes support.

  • Poker game help needed!

    I am a beginning Java programmer. I am trying to teach myself and found an example of code for a Java poker program when I was looking online for things to do. It uses classes/methods (which I am still learning), and consists of: Card, Deck, and Hand (and PokerHand). Help with any of the sections would be excellent!
    * Card
    * Member Variables:
    *   INSERT DESCRIPTION OF MEMBER VARIABLES
    * Private Methods:
    *   INSERT DESCRIPTION OF PRIVATE METHODS (IF ANY)
    * Public Methods:
    *   INSERT DESCRIPTION OF PUBLIC METHODS (IF ANY)
    public class Card
        // constants representing the suits
        public static final int HEARTS = 0;
        public static final int CLUBS = 1;
        public static final int DIAMONDS = 2;
        public static final int SPADES = 3;
        // constants representing the named faces
        public static final int JACK = 11;
        public static final int QUEEN = 12;
        public static final int KING = 13;
        public static final int ACE = 14;
          public static final int CARD_PER_SUIT = 13;
        // member variabes
        // INSERT MEMBER VARIABLES HERE
         * Card Constructor
         * Takes as parameters the face and suit of the card
        public Card(int face, int suit)
            // INSERT CODE HERE
         * Card Constructor
         * Takes as parameter the card number
        public Card (int cardno)
         // INSERT CODE HERE
         * toString
         * Returns a String representation of the card
        public String toString()
            // return a String that contains a text representation of the card
                // INSERT CODE HERE
         * getFace
         * Returns the card's face value
        public int getFace()
            // return the face
            // INSERT CODE HERE
         * getSuit
         * Returns the card's suit value
        public int getSuit()
            // return the suit
            // INSERT CODE HERE
         * getCardNo
         * Returns the card number
          public int getCardNo()
                 // return the card number
               // INSERT CODE HERE
    } // end of class Card
    * Hand
    * Member Variables:
    *   INSERT DESCRIPTION OF MEMBER VARIABLES
    * Private Methods:
    *   INSERT DESCRIPTION OF PRIVATE METHODS (IF ANY)
    * Public Methods:
    *   INSERT DESCRIPTION OF PUBLIC METHODS (IF ANY)
    public class Hand
         public static final int HANDSIZE = 5;
         public static final int HIGH_CARD = 0;
         public static final int ONE_PAIR = 1;
         public static final int TWO_PAIRS = 2;
         public static final int THREE_OF_A_KIND = 3;
         public static final int STRAIGHT = 4;
         public static final int FLUSH = 5;
         public static final int FULL_HOUSE = 6;
         public static final int FOUR_OF_A_KIND = 7;
         public static final int STRAIGHT_FLUSH = 8;
         // member variables
         // INSERT MEMBER VARIABLES HERE
         // Hand Constructor
         // INSERT DESCRIPTION OF CONSTRUCTOR HERE
         public Hand()
              // instantiate a hand of cards
              // INSERT CODE HERE
         // resets a hand and throws away all cards in the hand
         // INSERT DESCRIPTION OF METHOD HERE
         public void resetHand()
              // INSERT CODE HERE
         // accepts a card to the hand
         // INSERT DESCRIPTION OF METHOD HERE
         public void TakeCard(Card card)
              // INSERT CODE HERE
         // How many cards does the hand have?
         // INSERT DESCRIPTION OF METHOD HERE
         public int getNumCards()
              // INSERT CODE HERE
         // return the card number of a card in a hand at a specified position
         // INSERT DESCRIPTION OF METHOD HERE
         public int getCard(int cardPosition)
              // INSERT CODE HERE
         // is this hand sorted?
         // INSERT DESCRIPTION OF METHOD HERE
         public boolean isSorted()
              // INSERT CODE HERE
         // sort the cards in this hand from low to high
         // INSERT DESCRIPTION OF METHOD HERE
         public void SortHand()
              // INSERT CODE HERE
         // returns a String that represents the hand
         // INSERT DESCRIPTION OF METHOD HERE
         public String toString()
              // INSERT CODE HERE
    * Deck
    * Member Variables:
    *   INSERT DESCRIPTION OF MEMBER VARIABLES
    * Private Methods:
    *   INSERT DESCRIPTION OF PRIVATE METHODS (IF ANY)
    * Public Methods:
    *   INSERT DESCRIPTION OF PUBLIC METHODS (IF ANY)
    public class Deck
         public static final int DECKSIZE = 52;
         public static final int SHUFFLE_TIMES = 1000000;
         // member variables
         /* INSERT MEMBER VARIABLES HERE */
         * Deck Constructor
         * INSERT DESCRIPTION OF CONSTRUCTOR HERE
         public Deck()
              // instantiate the deck of cards
                 /* INSERT CODE HERE */
         // shuffle the deck
         // INSERT DESCRIPTION OF METHOD HERE
         public void Shuffle(int n)
              /* INSERT CODE HERE */
         // deal a card from the deck
         // INSERT DESCRIPTION OF METHOD HERE
         Card Deal()
              // INSERT CODE HERE
         // how many cards are left in the deck?
         // INSERT DESCRIPTION OF METHOD HERE
         public int cardsLeft()
              // INSERT CODE HERE
         // INSERT DESCRIPTION OF METHOD HERE
         public String toString()
              // INSERT CODE HERE
         // INSERT DESCRIPTION OF METHOD HERE
         public void swap(int i, int j)
              // INSERT CODE HERE
    public class PokerHand
         public static void main (String[] args)
              Deck deck = new Deck();
              Hand hand;
              int i;
              String str;
              hand = new Hand();
              for (i = 0; i < Hand.HANDSIZE; i++) {
                   hand.TakeCard(deck.Deal());
              System.out.println("Player's hand (unsorted): ");
              System.out.println(hand.toString());
              hand.SortHand();
              System.out.println("Player's hand (sorted): ");
              System.out.println(hand.toString());
    }From what I can tell in the directions provided, what it has to do is display a list of the cards, both sorted and unsorted (in order of face value). I think it will be interesting (to my limited exposure), so, as said, any help with any of the classes would be appreciated. Thank you!

    Here's some old code - a game of Pontoon (aka BlackJack, 21 etc)
    a similar structure to your poker game, you'll just have to modify the hand values
    for pairs/straights etc, sorting and a few other things, but it should show you the
    relationship between the objects
    import java.util.*;
    import java.io.*;
    class Pontoon
      BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
      Deck deck = new Deck();
      public Pontoon()
        try
          String playAgain = "y";
          while(playAgain.equalsIgnoreCase("y"))
            playGame();
            System.out.print("\nAnother game? (y/n): ");
            playAgain = input.readLine();
        catch(Exception e){System.out.println("error - terminating");}
        System.exit(0);
      public void playGame() throws IOException
        Hand player = new Hand();
        Hand bank = new Hand();
        String anotherCard = "y";
        player.add(deck.drawCard());
        bank.add(deck.drawCard());
        player.add(deck.drawCard());
        bank.add(deck.drawCard());
        do
          for(int x = 0; x < 20; x++) System.out.println();
          if(player.getHandValue() > 21)
            for(int x = 0; x < 20; x++) System.out.println();
            bank.showHand(0,1);
            player.showHand(0,0);
            System.out.println("\nBank wins - player busted.\n");
            break;
          else
            for(int x = 0; x < 20; x++) System.out.println();
            bank.showHand(1,1);
            player.showHand(0,0);
            System.out.print("Draw another card? (y/n): ");
            anotherCard = input.readLine();
            if(anotherCard.equalsIgnoreCase("y"))
              player.add(deck.drawCard());
            else
              for(int x = 0; x < 20; x++) System.out.println();
              bank.showHand(0,1);
              while(bank.getHandValue() < 16)
                System.out.print("\npress [ENTER] to draw another card for bank.");
                String junk = input.readLine();
                bank.add(deck.drawCard());
                for(int x = 0; x < 20; x++) System.out.println();
                bank.showHand(0,1);
              if(bank.getHandValue() > 21)
                System.out.println("\nPlayer wins - bank busted.\n");
              else
                if(player.getHandValue() > bank.getHandValue())
                  System.out.println("\nPlayer wins - " + player.getHandValue() +
                                           " to " + bank.getHandValue() + ".\n");
                else if(player.getHandValue() < bank.getHandValue())
                  System.out.println("\nBank wins - " + bank.getHandValue() +
                                           " to " + player.getHandValue() + ".\n");
                else
                  System.out.println("\nDraw - " + player.getHandValue() +
                                           " to " + bank.getHandValue() + ".\n");
        }while(anotherCard.equalsIgnoreCase("y"));
        player = null;
        bank = null;
      public static void main(String[] args){new Pontoon();}
    class Hand
      java.util.List hand = new java.util.ArrayList();
      public Hand()
      public void add(Card card)
        hand.add(card);
      public int getHandValue()
        int handValue = 0;
        for(int x = 0; x < hand.size(); x++)
          handValue += ((Card)hand.get(x)).getValue();
        return handValue;
      public void showHand(int numberOfCards, int playerOrBanker)
        String whoseHand = playerOrBanker == 0? "Player":"Bank";
        System.out.println(whoseHand + "'s hand:");
        if(numberOfCards == 1)
          System.out.println(((Card)hand.get(0)).getName() + "\n");
        else
          for(int x = 0; x < hand.size(); x++)
            System.out.println(((Card)hand.get(x)).getName());
          System.out.println("\nHand total = " + getHandValue() + "\n");
    class Deck
      String[] faces = {"Ace","Two","Three","Four","Five","Six","Seven",
                             "Eight","Nine","Ten","Jack","Queen","King"};
      String[] suits = {"Hearts","Diamonds","Clubs","Spades"};
      final int DECKSIZE = 52;
      int cardsDealt;
      Card[] cards = new Card[DECKSIZE];
      java.util.List random = new java.util.ArrayList();
      public Deck()
        int value;
        for(int x = 0; x < cards.length; x++)
          value = (x % faces.length) + 1;
          if(value > 10) value = 10;
          else if(value == 1) value = 11;
          cards[x] = new Card(faces[x % faces.length],suits[x / faces.length],value);
          random.add(new Integer(x));
        shuffleDeck();
      private void shuffleDeck()
        java.util.Collections.shuffle(random);
        cardsDealt = 0;
      public Card drawCard()
        if(cardsDealt > 40) shuffleDeck();
        Card cardDrawn = cards[((Integer)random.get(cardsDealt)).intValue()];
        cardsDealt++;
        return cardDrawn;
    class Card
      private String name;
      private int value;
      public Card(String pFace, String pSuit, int pValue)
        name = pFace + " of " + pSuit;
        value = pValue;
      public String getName() {return name;}
      public int getValue() {return value;}
    }

  • Why I can not buy the poker game money..

    Why I can not buy the poker game money...

    More information would be useful.
    Not available in your country's App Store.
    No credit card information or invalid credit card information or some other problem with your card
    Some other reason

  • Rolling Images for poker Game

    Hello everybody,
    i m trying to make poker game in java. it is some what like this, there will three labels which will show continuos scrolling images or numbers. there will a button "HIT" button to stop moving images.after that those images will stop one by one.if all images are same then he will get message of congratulation. first of all i m trying to show numbers in labels. but it should look like it is rolling. with settext method it is directly printing the number. can anybody suggest me how to print number in Jlabel with rolling effect? . Thanks in advance

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    public class SpinningGeeks extends JPanel implements ActionListener,
                                                         Runnable {
        BufferedImage image;
        Rectangle[] rects;
        int[] yPos;
        int dy = 3;
        Random seed = new Random();
        boolean[] runs = new boolean[3];
        Thread thread;
        long delay = 25;
        boolean stopping = false;
        public void actionPerformed(ActionEvent e) {
            String ac = e.getActionCommand();
            if(ac.equals("START"))
                start();
            if(ac.equals("STOP"))
                stopping = true;
        public void run() {
            int[] ds = new int[yPos.length];
            for(int j = 0; j < yPos.length; j++) {
                ds[j] = dy -1 + seed.nextInt(3);
            int runIndex = 0;
            boolean countingDown = false;
            long time = 0;
            while(runs[runs.length-1]) {
                try {
                    Thread.sleep(delay);
                } catch(InterruptedException e) {
                    break;
                if(stopping && !countingDown) {
                    int remainder = yPos[runIndex] % rects[runIndex].height;
                    boolean atEdge = remainder < ds[runIndex]/2;
                    if(atEdge) {
                        // Stop here, start waiting 2 seconds before
                        // moving on to stop the next image.
                        countingDown = true;
                        time = 0;
                        runs[runIndex] = false;
                        runIndex++;
                        if(runIndex > runs.length-1) {
                            continue;
                } else if(countingDown) {
                    // Wait 2 seconds before stopping the next image.
                    time += delay;
                    if(time > 2000) {
                        countingDown = false;
                // Advance all images that have not been stopped.
                for(int j = 0; j < yPos.length; j++) {
                    if(runs[j]) {
                        yPos[j] += ds[j];
                        if(yPos[j] > image.getHeight()) {
                            yPos[j] = 0;
                repaint();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            int pad = 5;
            int x = (getWidth() - (3*rects[0].width + 2*pad))/2;
            int y = (getHeight() - rects[0].height)/2;
            for(int j = 0; j < rects.length; j++) {
                rects[j].setLocation(x, y);
                x += rects[j].width + pad;
            Shape origClip = g2.getClip();
            for(int j = 0; j < yPos.length; j++) {
                x = rects[j].x;
                y = rects[j].y - yPos[j];
                // Comment-out next line to see what's going on.
                g2.setClip(rects[j]);
                g2.drawImage(image, x, y, this);
                if(yPos[j] > image.getHeight() - rects[j].height) {
                    y += image.getHeight();
                    g2.drawImage(image, x, y, this);
            g2.setClip(origClip);
            g2.setPaint(Color.red);
            for(int j = 0; j < rects.length; j++) {
                g2.draw(rects[j]);
        private void start() {
            if(!runs[runs.length-1]) {
                Arrays.fill(runs, true);
                stopping = false;
                thread = new Thread(this);
                thread.setPriority(Thread.NORM_PRIORITY);
                thread.start();
        private void stop() {
            runs[runs.length-1] = false;
            if(thread != null) {
                thread.interrupt();
            thread = null;
        private JPanel getContent(BufferedImage[] images) {
            // Make a film strip assuming all images have same size.
            int w = images[0].getWidth();
            int h = images.length*images[0].getHeight();
            int type = BufferedImage.TYPE_INT_RGB;
            image = new BufferedImage(w, h, type);
            Graphics2D g2 = image.createGraphics();
            int y = 0;
            for(int j = 0; j < images.length; j++) {
                g2.drawImage(images[j], 0, y, this);
                y += images[j].getHeight();
            g2.dispose();
            // Initialize clipping rectangles.
            rects = new Rectangle[3];
            for(int j = 0; j < rects.length; j++) {
                rects[j] = new Rectangle(w, images[0].getHeight());
            // Initialize yPos array.
            yPos = new int[rects.length];
            for(int j = 0; j < yPos.length; j++) {
                yPos[j] = 2*j*images[0].getHeight();
            return this;
        private JPanel getControls() {
            String[] ids = { "start", "stop" };
            JPanel panel = new JPanel();
            for(int j = 0; j < ids.length; j++) {
                JButton button = new JButton(ids[j]);
                button.setActionCommand(ids[j].toUpperCase());
                button.addActionListener(this);
                panel.add(button);
            return panel;
        public static void main(String[] args) throws IOException {
            String[] ids = { "-c---", "--g--", "---h-", "----t", "-cght" };
            BufferedImage[] images = new BufferedImage[ids.length];
            for(int j = 0; j < images.length; j++) {
                String path = "images/geek/geek" + ids[j] + ".gif";
                images[j] = javax.imageio.ImageIO.read(new File(path));
            SpinningGeeks test = new SpinningGeeks();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(test.getContent(images));
            f.add(test.getControls(), "Last");
            f.setSize(400,300);
            f.setLocation(200,200);
            f.setVisible(true);
    }geek images from [Using Swing Components Examples|http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html]

  • My calendar is in arabic langauge,how can i make it english?even the chios amount in my poker game it shows squares not numbers.but my ipad is in english already.

    my calendar is in arabic langauge,how can i make it english?even the chips amount in my poker game it shows squares not numbers.but my ipad is in english already.

    Make sure you have set the REGION to one where English is spoken.

  • Multithreaded Poker game *lost*

    Hi,
    I have an assignment in which I am to make a poker game, one server and four clients.
    "Up to 4 players should be able to connect to your server and play. All four players need to be logged into the server before cards are dealt.
    Players should have to enter their name and each player should be able to see all the players that are connected to the server.
    You can represent playing cards however you wish.
    You don�t have to implement betting, only logging into the server, cards being dealt, the draw and the determination of the winner.
    Server communication with the players and player communication with the server should be handled by separate threads."
    To be honest, I am lost. I just don't understand how it should work.
    Based on the example in the book, I created a server-client classes with client-thread.
    When the client connects, a gui window object is created from the client class.
    I can talk to clients, and clients can talk to me.
    I tried to echo the messages that I get from clients, so that the others can see what has been posted, but I can get it.
    Before I even start trying to create the game itself, I should know how to handle it.
    Can you please just explain to me where to start?
    I uploaded what I've got sofar. Can you please take a look? I am desperate :-(
    www.figuric.com/java/src.rar
    Thank you!

    Has anyone an idea, please?
    Thanks!

  • Flex BlazeDS based Poker game

    I am working on a Flex Java based poker game where multiple tables need to be created and people are placed on the tables depending on the table availability. I am facing issues adding people from resource pool to the tables. Any one worked on something similar? Any tutorials, examples or code snippets would be helpful.

    Rjoshicool, I think people are misinterpreting your explanation (simply because of the crossover of terminology) and you are on the right track.
    If I understand it correctly:
    You have a multiple number of poker Games. These are Tournaments rather than individual games.
    Each tournament has multiple poker tables associated with it and multiple players on each poker table. All players are associated with a tournament, game and table. This association is going to change over time and for the tournament as a whole.
    Database tables:
    You will need at least
    A tournament table, a poker_table table, player table, game_table. You are going to need a load of other tables to hold information about anscillary items perhaps - for example there may be a league, poker_team, etc. I don't know.
    In a multiple user system you need to take care of people disconnecting unexpectedly, wanting to get back to a game if accidentally disconnected, wanting to pause play, chat, etc.
    Most importantly you must be able to prevent concurrent updates of the database tables since you have multiple players effectively updating the state of a game/table.
    It can all get quite complex, quickly.

  • Wanting to make a poker game for a message board

    I'm trying to start a java app that will be a poker game (texas holdem) where members of a message board can join and play each other. Is there a good tutorial on how to embed this type of project into a message boar/forum?
    thanks for any information.

    Most message boards use some kind of server side technology (servlet, jsp, asp,...) and most games use some kind of client side technology (applets, activex,...), so there's probably not a lot out there about it. It should be possible and sounds kind of interesting though.

  • Poker Game

    This is the rule of the game :
    The player is dealt two cards, the 'hole'. Five 'community' cards are then dealt. The player hand is then the best possible five card hand that can be made with the two hole cards and the five community cards.
    Is anyone here have the scripts ?please help me.....

    Try poker-eval pretty much covers what you want and is fast. But it is written in C has almost zero documentation and is a bit of a pain to get set up as a DLL.
    Alternatively there is a C# project on codesource that has ported it from C. It's a bit slower but easier to get working.
    Additionally there are many Java progs around (several on SourceForge) these tend to be a lot slower than poker-eval. According to what I've read the reason that poker-eval is faster is that it uses large lookup tables for evaluating and comparing hands rather than calculating on the fly such things as the best 5 card hand from the 7 cards provided.

Maybe you are looking for

  • Flash exporting help

    Hello! So I just upgraded from a PowerBook to a MacPro. On my PowerBook, I used to be able to export directly from Final Cut Pro to a .flv file through Quicktime Conversion. Now on my MacPro, the plug in won't work, but I have been trying to do chang

  • Deploying WAR file.,......VERY urgent

    hi I have an external WAR file i want to convert it and to deploy to server. This war file contains some jsp files ,images etc.(This war file is working properly in Tomcat5.0) It is urgently needed and also please send me the step by step procedure.

  • Deadline monitoring is not working

    HI, i had requirement to change the text displayed in the decision step type. I copied that task using pftc and changed the description and i replaced the new task number with old one. the deadline monitoring is not working for the new task . Please

  • Filter Gallery

    1.) In CS6, the Filter Gallery seems like a great way to quickly preview lots of different effects. However, it does not seem to be working with all of my installed filters. Is there a reason why it only works with some filters OR is there some optio

  • Question: Photoshop application components missing

    After installing Photoshop via Creative Cloud on a Mac, I now am getting the message :  "Some of the application components are missing from the Application directory, Please reinstall the application. " Could someone please give me simple instructio