Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Please help Me out with this poker Problem

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Please help Me out with this poker Problem

    HOW THE GAME IS PLAYED:

    * The dealer gives 5 cards to each player in the game.
    * The players change some of their cards if they want.
    * The players bets or folds their cards. The bets can be done in any order.
    * The dealer shows the bets of the other players in the game in the order that they were made.
    * When the betting is finished the hands of the players that has not folded their cards are compared to each other and the winner as well as the winning hand is shown to all players by the dealer.



    UseI used the following programs to write my own poker game.

    * PokerServer: Reads in information from the commandprompt and starts the poker server (dealer).
    * PokerImplement: Uses the information from PokerServer, runs the server side of the application and communicates with the poker clients (players).
    * PokerClient: Reads in information from the commandprompt and starts the poker client (player).
    * PokerClientApp: Uses the information from PokerClient, runs the client side of the application and communicates with the poker server (dealer).
    * Cards: Contains the constructors and metods need to create and shuffle a card deck, extract cards from the deck and to determine which of two 5-card hands is the winner.
    * All java files are Zipped here..

    Download


    My job in this part is to use to create a multicast group where all the players can recieve the same information from the dealer at once.



    The players must see all the other players requests to change cards and bets in the exact order (Total order) as it came in to the dealer. To achieve this the following must be used:



    * The game will need a sequence number for every message that is incremented by one for every new multicast message. The sequence numbers are used to ensure that request messages are delivered in the same order to all the multicast destinations.
    * A history buffer, which holds a list of messages, already sent to the destinations, together with their sequence numbers.
    * This means that the use of acknowlegment messages is not allowed.


    I should not set sockets' time-to-live (TTL) to more than 1. That way, my multicast packets will not be transmitted beyond the local router.




    I can only run the previously specified programs with the client (player) and server (dealer) on the same computer. Otherwise the parts on the client side that calls methods on the server side will not work yet.


    Please help me out with the program. By finishing this i can get my bachelors completed. I am stuck with this lab. Eventhough i am good at java, i am unable to understand and implement the logic..as per my knowledge i have created some class files. please go through that and give me the complete code that can be executed. I need this favour. If u do so i would be the most happiest person and most thankful to you. You guys can send me source at ghanta dot sairam at live dot com


    Thanking you sir,

    sairam ghanta


  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Please help Me out with this poker Problem

    no responses????????