Per my initial documentation with release 1.0 tie-breakers were out of scope. I have begun to code the enhancement that will automatically break the ties. It adds a series of sub-switches that create kickers in all relevant situations. The kickers will have point values. I have not fully tested it yet but believe I should be able to complete it by around July 10).
nonal - 2006-07-14 14:35:17 - In reply to message 2 from Jayme Fishman
hi, thank you for your work, i already tested and added a graphical interfaces with your first version of the class, i was wondering if the tie breaker would be released this weekend or later.
Very good project !
Jayme Fishman - 2006-07-15 14:05:14 - In reply to message 3 from nonal
I ran into a snag (the subswitches became so large that they were consuming thousands of extra lines of code) - but I have a solution that I have not tested yet - it is taking a bit longer than I would have liked. I am shooting for end of this weekend with no promises for a hard date (I want to finish it quickly but I only code after the kids are in bed and am a novice so it takes a little longer).
I will get it posted the second it is finished. Thanks so much for your interest.
If you like the project (seems like you do from your note) could you please provide official feedback on the site? I don't have any at the moment - but 320+ users have downloaded it. Any comments would be most welcome.
nonal - 2006-07-15 21:38:52 - In reply to message 6 from Jayme Fishman
You are welcome, thank to you for your effort.
About your class actual code, it is very easy to add some method to have a graphical output of your work, about the point system i think that you have figured out that it is needed to change it to be able to have a tie breaker working, also some method to display each card like in a real table game and a method to have each player final hand (with the 5 cards for each player or at least for the bigest hand).
I have added those method and i was about to make the tie breaker and a class to handle the beting system but i must admit that i'm more concerned about the way to secure each player hand in php/mysql a way to protect efficiently the code and the output, i have used a lot ajax to be able to have a fast game with no reload of page so if you can make the tie breaker i think i might be able to setup fast a test site with nl texas holdem tables.
If i understood you well you are adding subswitch to the actual point system to handle tie what i think is a good solution, i tried to find a way to add some method to handle those tie instead of adding to many line to this class but i must admit that nothing came to my mind yet, if i find an alternate way i'll let you know but i dont think there is many solution here.
I understand very well that with kids to care about it is hard to provide code and because of that i want to thank you again for your work and your time on this project.
Jayme Fishman - 2006-07-16 20:43:19 - In reply to message 7 from nonal
I am shooting for late tonight but could slip into the start of this week if I encounter any problems. I found a faster way than using all subswitches. I created a "master index" array that contains the correct heirachy of a hand A, K, Q, J ... 2. Then I stepped through the array for the actual hand looking for those values. When it finds one it pushes it into a new "kicker array." This is a "sort" that puts them in the right order. The kickers are then set in the switches to $kicker1 = $kickerArray, $kicker2 = $kickerArray, etc. Finally, methods are added to "getKickerPoints" - these have their owns switches that assign points based on the kicker (1,2,3,4) and its relative value (A,K,Q,J) before returning the points - this way saves a tremendous amount of code. It also works for Flushes and High cards that have 4 kickers ... the subswitches were getting CRAZY. They were too large to manage. I will show it all in the next code drop. I would be excited to see your additions in action.
nonal - 2006-07-17 13:52:27 - In reply to message 9 from Jayme Fishman
hi thank you for the release, i may have missed something because according to your documentation and file explaination it should be the file phpPokerEnginev3 that replace phpPokerEngine.php and contain switch with point system and tie breaker but i dont see any class or any switch and i'm wondering if i missunderstood something or if it is just an error.