473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

poker tournament in php (cant increase blinds)

I am working on a site where you can play a poker tournament on. I am able to play poker on it fine as long as i set the blind levels like so
Expand|Select|Wrap|Line Numbers
  1. $SB = 25;
  2. $BB = 50;
  3.  
Then my game actually starts fine and I can change it to whatever I want and it instantly changes on my game.

However, In order to play a proper tournament the blinds must go up in a certain amount of time.

I would like for it to go up every 15 minuets. But every approach I have used in PHP has failed.

My latest test was similar to the following
Expand|Select|Wrap|Line Numbers
  1. $timea=date(i);
  2.  
  3. if($timea>=0) && ($timea<=14)
  4. $tablemulti=1;
  5. if(timea>=15) && ($timea<=29)
  6. $tablemulti=2;
  7. if(timea>=30) && ($timea<=44)
  8. $tablemulti=3;
  9. if(timea>=45) && ($timea<=59
  10. $tablemulti=4;
  11.  
  12. $SB= 25*$tablemulti;
  13. $BB= 50*$tablemulti;
  14.  
This approach basically tried to multiply the blinds when the server time hit the time i wanted the blinds to increase and I would have to start the tournament at the beginning of the hour.

This failed and led to my game sitting right before blinds were going to be posted.

I have ran out of ideas for this project and was hoping I could get some advice to help me on this situation.

Any input would be greatly appreciated and if anyone needs any more information let me know.
Aug 30 '10 #1
2 1129
While playing game, does this file get executed regularly? Or it is like a daemon?
Sep 1 '10 #2
kovik
1,044 Expert 1GB
I can't imagine this being completely PHP-based. I'm assuming that you are using PHP to send information to another medium, correct?

Give us more details on how your client-side application works. Chances are, since you want this to happen based on time, you'll need to do some handling in your client-side application.
Sep 1 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: JE | last post by:
Hi all! I am working on a Java program for managing a (real-life) sports tournament. There are 10 teams involved, which all are to play against every other team exactly once. Thus, each team...
2
by: Krick | last post by:
I was talking to a co-worker today. He used to work in computers way, way, back in the days when computers had little to no memory, operating systems hadn't been invented yet, and everything was...
1
by: noremy | last post by:
Hi! I have one request;) I have searched in google for a tournament tree implementation, but found nothing(really);( Does anyone have any source for a tournament tree? I don't really care what...
1
by: Bryan | last post by:
Well, I've got 2 tables I'm wanting to pull date from sorted by most points asc. Here's the structure... tnumbers table (holds all tournament points: tid, mid, points rollcall table: mid,...
7
by: ibtc209 | last post by:
I just started programming in C, and I need some help with this problem. Your program will read the information about one MiniPoker hand, namely the rank and suit of the hand’s first card, and...
27
by: Simon Biber | last post by:
I was reading http://en.wikipedia.org/wiki/Poker_probability which has a good description of how to count the frequency of different types of poker hands using a mathematical approach. A sample...
13
by: kinghippo423 | last post by:
Hello Everyone, I did a poker program in Java that essencially finds the strenght of a poker hand created Randomly. My program is doing OK...but I'm pretty sure it can be optimised. This is my...
9
by: teejayem | last post by:
I am looking for some help! I am currently developing a new game for an online community. The game is called Pokino which ishalf bingo and half poker. Wierd eh?! Anyway... The final part...
7
by: Extremity | last post by:
Hi, I am taking a intro to C++ course so my knowledge base only limits to areas such as if/else, functions, and recursions. We are creating a program which will determine the probability of Poker...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.