I need a code that will convert poker hand histories that are stored in a funny html format into a format I can import with the commercial software PokerTracker. The input can be found here:
[login to view URL]~games/poker/man-machine/Results/session3/mark-ijay-1/
As an example, the output "hand history" of the left hand column (see below for explanation) for hand #500 should look like:
Full Tilt Poker Game #0000000001: Table FakeTable (heads up) -
$1000/$2000 - Limit Hold'em - 23:59:00 ET - 2008/09/02
Seat 1: Polaris ($300,472)
Seat 2: newhizzle ($100,522)
newhizzle posts the small blind of $500
Polaris posts the big blind of $1000
The button is in seat #2
*** HOLE CARDS ***
newhizzle raises to $2000
Polaris raises to $3000
newhizzle raises to $4000
Polaris calls $1000
*** FLOP *** [6d Qh 3s]
Polaris checks
newhizzle bets $1000
Polaris calls $1000
*** TURN *** [6d Qh 3s] [5h]
Polaris checks
newhizzle bets $2000
Polaris raises to $4000
newhizzle raises to $6000
Polaris calls $2000
*** RIVER *** [6d Qh 3s 5h] [2d]
Polaris checks
newhizzle bets $2000
Polaris calls $2000
*** SHOW DOWN ***
newhizzle shows [Ks Kc]
Polaris shows [Ac Qc]
newhizzle wins the pot ($26000)
*** SUMMARY ***
Total pot $26000 | Rake $0.00
Board: [6d Qh 3s 5h 2d]
Seat 1: Polaris (big blind) mucked
Seat 2: newhizzle (small blind) collected ($26000)
The Full Tilt Poker Game # must decrease by one for each hand and the time stamp must decrease by 1 minute for each hand. In total, we will give you 7 links with 500 "hands" displayed across several pages. There are two columns on the webpage--each column represents a unique match between two players-- a computer named "Polaris" and a human player. The "hole cards" of Polaris' opponent are displayed and it should be understood that Polaris holds the "hole cards" of the other opponent. To illustrate this, consider hand #500, in the match vs. "newhizzle", newhizzle holds KsKq and Polaris holds Ac Qc. In the match vs. "doughnutz", doughnutz holds AcQc and Polaris holds KsKc. Thus,for each link the output should be 1000 hand histories.
## Deliverables
We will provide many additional sample FullTilt hand histories so that you can understand how the output format works.