Search:

Type: Posts; User: aesguitar

Search: Search took 0.20 seconds.

  1. Replies
    18
    Views
    2,052

    Re: Problem with my poker program

    Alrighty then.
  2. Replies
    18
    Views
    2,052

    Re: Problem with my poker program

    Here's the updated code:



    package help;

    import java.util.ArrayList;

    public class Test {
  3. Replies
    18
    Views
    2,052

    Re: Problem with my poker program

    OOOHHHH, I see what you mean. Give me a few minutes
  4. Replies
    18
    Views
    2,052

    Re: Problem with my poker program

    I think that's what I did. It looks at the index, and then based off of that, it looks for the combinations afterwards.



    //that's what these if statements are for
    if(l<x)
    {
    ...
    }
  5. Replies
    18
    Views
    2,052

    Re: Problem with my poker program

    My bad for that, before every check for a win if statement is another if statement that checks for where the index is. Do you see any outstanding issues with the code now?
  6. Replies
    18
    Views
    2,052

    Re: Problem with my poker program

    It checks for that here:



    if(hCard.get(l) != hCard.get(l-1)&&hCard.get(l) == hCard.get(l+1)) //checks if the next card is equal to the last and is equal to the next ...
  7. Replies
    18
    Views
    2,052

    Re: Problem with my poker program

    That's what this block of code does:



    int l = 0;
    while( l <= hCard.size()-1)//finds the first matching pair
    {
    if(hCard.get(l) != hCard.get(l+1))
    l++;
    else
  8. Replies
    18
    Views
    2,052

    Re: Problem with my poker program

    The logic I'm using is:

    If there is a pair, look at the next cardB.
    If cardB is not equal to cardA, then see if the next 2 cards are the same as cardB.
    If they are, then it is a full...
  9. Replies
    18
    Views
    2,052

    Re: Problem with my poker program

    I added comments, could you help me now?
  10. Replies
    18
    Views
    2,052

    Problem with my poker program

    This section of code is where I am testing the algorithm to catch a winning hand i.e. two pair, flush, straight, etc... It is able to find everything except a full house following an XXYYY pattern...
Results 1 to 10 of 10