PHP String Functions: Parse Poker HandHistory output
$100-500 USD
Abgesagt
Veröffentlicht vor etwa 14 Jahren
$100-500 USD
Bezahlt bei Lieferung
Parse HandHistory logfile for personal rake (sripting system PHP) for my poker website based on a virtual currency (chips).
There will run a daily cronjob at the end of the day: with a php file using the API system I called the LogsHandHistory file to retrieve the output of the ring games played yesterday. (script code can be sent sent to you per PM/mail)
**What should be done is parsing through this output and take the rake for each hand in the ring games and then divide that evenly by all the players that were dealt cards in the hand (i.e., were not sitting out or waiting for big blind), and then for every chip "personal rake" a player should gain 1 point.
The points will be saved in a variable in my MySQL database.
**
Example output will look something like this:
Result=Ok
Hand #13-5 - 2010-03-27 20:40:57
Game: No Limit Hold'em (400 - 2000) - Blinds 10/20
Site: [login to view URL]
Table: Full Ring A
Seat 1: Admin (1031)
Seat 5: Pokerf (1191)
Seat 8: Speedy24 (757) - sitting out
Admin has the dealer button
Admin posts small blind 10
Pokerf posts big blind 20
** Hole Cards **
Admin raises to 40
Pokerf raises to 60
Admin raises to 80
Pokerf calls 20
** Flop ** [Jh 2h Jd]
Pokerf bets 20
Admin calls 20
** Turn ** [7h]
Pokerf bets 20
Admin calls 20
** River ** [3d]
Pokerf bets 20
Admin raises to 40
Pokerf calls 20
** Pot Show Down ** [Jh 2h Jd 7h 3d]
Admin shows [Jc 9d] (Three of a Kind, Jacks +97)
Pokerf shows [Th Ah] (a Flush, Ace high +JT72)
Pokerf wins Pot (311) with a Flush
Rake (9)
** Deck ** [Th Jc Ah 9d Jh 2h Jd 7h 3d]
(In this example Pokerf would gain 4.5 points and Admin would gain 4.5 points)
software:
I am using the Poker Mavens software (<[login to view URL]>)
API information:
<[login to view URL]>
<[login to view URL]>