@@ -0,0 +1,2779 @@
+public class P54_PokerHands %7B%0A    // Project Euler - Problem 54 - Poker hands%0A    // In the card game poker, a hand consists of five cards and are ranked, from lowest to highest, %0A    // in the following way:%0A    //   - High Card: Highest value card.%0A    //   - One Pair: Two cards of the same value.%0A    //   - Two Pairs: Two different pairs.%0A    //   - Three of a Kind: Three cards of the same value.%0A    //   - Straight: All cards are consecutive values.%0A    //   - Flush: All cards of the same suit.%0A    //   - Full House: Three of a kind and a pair.%0A    //   - Four of a Kind: Four cards of the same value.%0A    //   - Straight Flush: All cards are consecutive values of same suit.%0A    //   - Royal Flush: Ten, Jack, Queen, King, Ace, in same suit.%0A    // The cards are valued in the order: 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King, Ace.%0A    // If two players have the same ranked hands then the rank made up of the highest value wins;%0A    // for example, a pair of eights beats a pair of fives (see example 1 below).%0A    // But if two ranks tie, for example, both players have a pair of queens,%0A    // then highest cards in each hand are compared (see example 4 below);%0A    // if the highest cards tie then the next highest cards are compared, and so on.%0A    // Consider the following five hands dealt to two players:%0A    // Hand Player 1                           Player 2                             Winner%0A    // 1    5H 5C 6S 7S KD (Pair of Fives)     2C 3S 8S 8D TD (Pair of Eights)      Player 2%0A    // 2    5D 8C 9S JS AC (Highest card Ace)  2C 5C 7D 8S QH (Highest card Queen)  Player 1%0A    // 3    2D 9C AS AH AC (Three Aces)        3D 6D 7D TD QD (Flush with Diamonds) Player 2%0A    // 4    4D 6S 9H QH QC (Pair of Queens,    3D 6D 7H QD QS (Pair of Queens,%0A    //                      Highest card Nine)                 Highest card Seven)  Player 1%0A    // 5    2H 2D 4C 4D 4S (Full House,        3C 3D 3S 9S 9D (Full House,%0A    //                      With Three Fours)                  with Three Threes)   Player 1%0A    // The file, poker.txt, contains one-thousand random hands dealt to two players.%0A    // Each line of the file contains ten cards (separated by a single space):%0A    // the first five are Player 1's cards and the last five are Player 2's cards.%0A    // You can assume that all hands are valid (no invalid characters or repeated cards),%0A    // each player's hand is in no specific order, and in each hand there is a clear winner.%0A    // How many hands does Player 1 win?%0A%0A    public static void main(String%5B%5D args) %7B%0A        int solution = P54_PokerHands.scoreHands();%0A        String message = %22Player 1 wins %25,d hands.%5Cn%22;%0A        System.out.printf(message, solution);%0A    %7D%0A%0A    private static int scoreHands() %7B%0A        return 0;%0A    %7D%0A%7D%0A

add stub solution for Project Euler problem 54