No Fold Em Hold Em

  1. Gotta Know When To Hold'em And When To Fold Em
  2. When To Hold Em When To Fold Em
No Fold'em Hold'em
Time Limit: 1000MSMemory Limit: 65536K
Total Submissions: 108Accepted: 33

Description

Hold'em or Fold'em, that is the question: a game of intelligence, courage, and luck! We hope to offer a REALISTIC Poker experience to you. Here you can play with millions of players from dozens of countries to hit and win a MEGA POT! Hurry up, let's start playing! Features ♠ Handheld Device: Designed to offer a convenient and interesting experience in a handheld device. ♠ Free Mega Bonus. In the Poker Digest ``Letters From Our Readers' section, Vol. 22, there was a letter from a reader asking for help in no fold'em hold'em because of her or his seemingly constant losing sessions. This article is in response to that letter and perhaps presents a different slant on the matter. NL Hold’em Starting Hand Charts. One aspect of the game of No-Limit Hold’em that causes beginning players much grief is deciding which hands to play and which hands to dump. NL Hold’em is much more difficult than Limit Hold’em because the value of a hand depends on so many factors other than just the cards in your hand.

  1. A description of a table that is full of calling stations and loose players, so named because they rarely fold even poor hands. Example 'They were playing no fold 'em hold 'em and twice I got my aces cracked by 93 offsuit!'
  2. Hold'em or Fold'em. 25,013 likes 3,595 talking about this. Hold'em or Fold'em; a game of intelligence, courage, and luck! We offer the MOST REALISTIC Poker experience by giving YOU the ability to.

The recent Texas Hold'em craze has spawned a bunch of on-line Poker sites. These sites tend to breed a group of poor players whose primary strategy is to never fold or throw away a hand. These players will always play and bet on every card on every hand no matter what the cost or what cards they have. You have decided to take advantage of these stupid players by developing your own poker site that allows you to always beat these players.

Hold

The way your site will work is: there are only two players in each game: you and your opponent (this is called a heads-up game). Each of the two players will get two “hole cards”; these cards are dealt face down so, presumably, only the player can see them. Four of the five community cards (cards shared by both players) will be dealt face up on the table. We will dispense with any betting for the purpose of this problem: it is irrelevant since each player will always call every bet right to the “river” (the fifth and final community card). You will always be seated at position 1, and your opponent at position 2. The program knows what seat you are sitting at and the hole cards for both players, therefore, it can compute all the cards that remain in the deck that will maximize the amount of money you would get playing the hand – folding is not an option. In the event there is no card that would allow you to win or tie the hand, you will be forced to take a loss on that hand (after all, it looks good if you lose sometimes).

Input

The first line of input contains an integer N which is the number of data sets that follow (1 N 100) . Each data set consists of three lines. The first line of each dataset specifies your two hole cards. The second line is your opponent's hole cards. The third line is the four community cards. A card is specified by two characters: it's rank (A,2,3,4,5,6,7,8,9,T,J,Q,K) and it's suit (S,D,H,C) for Spades, Diamonds, Hearts, and Clubs respectively. For example, the Ace of Hearts would be AH, the Nine of Spades would be 9S. Within a line, there are no spaces or invalid characters. All input will be valid.

Output

For each data set, your program will output (on a new line) the data set number followed by a colon, followed by a space, and a list of card(s) that will maximize the amount of money you could get playing the hand. If no card will allow you to win or tie, just display LOSER instead of the cards. Each card should be separated by a single space. Your program will display up to 15 cards on each output line. If more than one output line is required for a dataset, additional lines should be indented by exactly 3 spaces. Cards should be output in suit order (S,D,H,C) and rank order within each suit (Ace high).

Fold

Sample Input

Gotta Know When To Hold'em And When To Fold Em

Sample Output

When To Hold Em When To Fold Em

Source