PHP Classes


Recommend this page to a friend!

      PHP Poker Engine  >  All threads  >  Tie-breakers  >  (Un) Subscribe thread alerts  
Summary:New release coming circa July 10 that includes tie-breakers
Author:Jayme Fishman
Date:2006-06-27 12:30:21
Update:2006-07-25 13:50:01
  1 - 10   11 - 15  

  1. Tie-breakers   Reply   Report abuse  
Jayme Fishman - 2006-06-27 12:30:21
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).

  2. Re: Tie-breakers   Reply   Report abuse  
Jayme Fishman - 2006-07-10 17:26:29 - In reply to message 1 from Jayme Fishman
This enhancement is almost done. It is taking a bit longer than I anticipated - the code has already jumped from approx 2500 lines to >13,000 lines. I should have it posted in a couple of days.

  3. Re: Tie-breakers   Reply   Report abuse  
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 !

  4. Re: Tie-breakers   Reply   Report abuse  
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.

  5. Re: Tie-breakers   Reply   Report abuse  
nonal - 2006-07-15 14:50:46 - In reply to message 4 from Jayme Fishman
i'm not sure where to post feedback, i have rated your project but i dont see a feedback setion , maybe i'm missing it or it is in forum directly?

  6. Re: Tie-breakers   Reply   Report abuse  
Jayme Fishman - 2006-07-15 16:32:54 - In reply to message 5 from nonal
Thanks for rating it (and trying to find the right link) - I think you can do it from the Freshmeat website that is linked from my site. Many thanks for your efforts!

  7. Re: Tie-breakers   Reply   Report abuse  
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.

  8. Re: Tie-breakers   Reply   Report abuse  
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[0], $kicker2 = $kickerArray[1], 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.


  9. Re: Tie-breakers   Reply   Report abuse  
Jayme Fishman - 2006-07-17 03:15:02 - In reply to message 7 from nonal
It is up there ... let me know what you think. Please read the documentation - it shows the kicker point system in detail. Also, please let me know if you find any bugs.

  10. Re: Tie-breakers   Reply   Report abuse  
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.

  1 - 10   11 - 15